Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Several bugfixes #2049

Merged
merged 4 commits into from
Nov 4, 2024
Merged

Several bugfixes #2049

merged 4 commits into from
Nov 4, 2024

Commits on Nov 2, 2024

  1. Remove global variable from aarch64 tcg target

    This obviously breaks trying to run two unicorn instances at once on
    aarch64. It appears a similar variable had already been moved to the
    state struct for i386 tcg target.
    tbodt committed Nov 2, 2024
    Configuration menu
    Copy the full SHA
    67af3fe View commit details
    Browse the repository at this point in the history
  2. Reenable writing to jit region while calling tb_add_jump

    On arm macs, every place that writes to jit code needs to have
    tb_exec_unlock called first. This is already in most necessary places,
    but not this one.
    tbodt committed Nov 2, 2024
    Configuration menu
    Copy the full SHA
    15031a7 View commit details
    Browse the repository at this point in the history
  3. Don't forget to call restore_jit_state in uc_context_restore

    Every time UC_INIT is used, restore_jit_state must be used on the return
    path, or occasional assertion failures will pop up on arm macs.
    tbodt committed Nov 2, 2024
    Configuration menu
    Copy the full SHA
    d6b2f43 View commit details
    Browse the repository at this point in the history
  4. Restore pc before calling into tlb fill hook

    In my application it is important to have correct pc values available
    from this hook.
    tbodt committed Nov 2, 2024
    Configuration menu
    Copy the full SHA
    dd62e60 View commit details
    Browse the repository at this point in the history