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.33k stars 1.31k forks source link

Fix PPC32 fault when timer-spr access #1910

Closed dotCirill closed 6 months ago

dotCirill commented 7 months ago

Issue #1909

Access to TB, DEC (time-related) Special Purpose Registers led to crash.

spr_read_decr, spr_write_decr and others are changed to spr_read_generic and spr_write_decr. So spr read/write won't call Qemu time-related functions.

wtdcode commented 6 months ago

Thanks & welcome!