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

Unicorn initialization parameters change for ARM #304

Open
elouet opened this issue Feb 10, 2022 · 1 comment
Open

Unicorn initialization parameters change for ARM #304

elouet opened this issue Feb 10, 2022 · 1 comment

Comments

@elouet
Copy link

elouet commented Feb 10, 2022

For the ARM architecture, it appears that the following line no longer works
err = uc_open (UC_ARCH_ARM, bits==64? UC_MODE_64: UC_MODE_32, &uh);
instead I tried
err = uc_open (bits==64? UC_ARCH_ARM64: UC_ARCH_ARM, UC_MODE_ARM, &uh);
which works better. My version of unicorn (build from latest source) won't intialize with the former statement.

@elouet
Copy link
Author

elouet commented Feb 10, 2022

we may want to look into the second parameters which allows for THUMB mode, but then what happens with mixed modes, I'm not sure.

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

No branches or pull requests

1 participant