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

Fix pausing within Thumb2 ITE blocks (#853) #880

Merged
merged 1 commit into from
Mar 29, 2021

Conversation

flowergrass
Copy link
Contributor

A fix to issue #853 where restarting the emulator during ITE instructions would lead to incorrect operations.

While there seems to be code addressing the topic using condexec_bits, locating their underlying issue may be a better fix for another time. This solution ignores tracing instructions within ITE blocks (where condexec_mask should be greater than zero) and on IT instructions which prevents emulation from halting and breaking the code.

@aquynh
Copy link
Member

aquynh commented Sep 15, 2017

interesting, but this is just a stopgap solution. can you have a proper fix for this issue?

@flowergrass
Copy link
Contributor Author

A proper fix for the issue would require a greater understanding of unicorn and qemu itself. We've looked into it but don't have the resources to find another fix since the current solution addresses our issues.

AlexanderEichner added a commit to PSPReverse/unicorn that referenced this pull request Jun 4, 2020
…ine#880 which might affect executing the AMD secure OS causing a data abort
@aquynh aquynh merged commit 34ddafc into unicorn-engine:master Mar 29, 2021
@aquynh
Copy link
Member

aquynh commented Mar 29, 2021

merged, thanks!

@dpgeorge
Copy link

Thanks for merging!

wtdcode added a commit to wtdcode/unicorn that referenced this pull request Jul 13, 2021
maiyao1988 pushed a commit to maiyao1988/unicorn that referenced this pull request Jan 22, 2022
…icorn-engine#880)"

because it will make hook_code for it block invaild
回退这个版本修改会导致在it block里面调用emu stop会导致it
block有问题,这是原有bug,但是不能这样修改

This reverts commit 34ddafc.
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.

3 participants