mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-01-23 09:11:12 +00:00
0d0d054382
The SPSR register is named within the Unicorn headers, but the code to access it is absent. This means that it will always read as 0 and ignore writes. This makes it harder to work with changes in processor mode, as the usual way to return from a CPU exception is a `MOVS pc, lr` for undefined instructions or `SUBS pc, lr, #4` for most other aborts - which implicitly restores the CPSR from SPSR. This change adds the access to the SPSR so that it can be read and written as the caller might expect. Backports commit 99097cab4c39fb3fc50eea8f0006954f62a149b2 from unicorn. |
||
---|---|---|
.. | ||
arm | ||
i386 | ||
m68k | ||
mips | ||
riscv | ||
sparc |