unicorn-engine / unicorn

Unicorn CPU emulator framework (ARM, AArch64, M68K, Mips, Sparc, PowerPC, RiscV, S390x, TriCore, X86)
http://www.unicorn-engine.org
GNU General Public License v2.0
7.34k stars 1.31k forks source link

load_helper only call cpu_loop_exit() when emulation is running #1834

Closed PhilippTakacs closed 1 year ago

PhilippTakacs commented 1 year ago

The load_helper is sometimes called from register writes. When the load fails check if emulation is running before jump out of the emulated code.

see #1828

wtdcode commented 1 year ago

Merged, thanks!