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

Conversation

tbodt
Copy link

@tbodt tbodt commented Nov 2, 2024

Submitted all together because creating separate pull requests would be annoying

tbodt added 4 commits November 1, 2024 23:26
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.
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.
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.
In my application it is important to have correct pc values available
from this hook.
@tbodt tbodt changed the base branch from master to dev November 2, 2024 06:26
@wtdcode
Copy link
Member

wtdcode commented Nov 4, 2024

LGTM, thanks and welcome!

@wtdcode wtdcode merged commit f71bc1a into unicorn-engine:dev Nov 4, 2024
36 checks passed
@tbodt tbodt deleted the bugfixes branch November 4, 2024 05:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants