mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-06 07:38:05 -04:00
sh2 drc bugfix for aarch64/mips
This commit is contained in:
parent
e7ee7bc00a
commit
a6c0ab7d99
6 changed files with 20 additions and 19 deletions
|
@ -1115,7 +1115,7 @@ enum { xAX = 0, xCX, xDX, xBX, xSP, xBP, xSI, xDI, // x86-64,i386 common
|
|||
#define emith_save_caller_regs(mask) do { \
|
||||
int _c; u32 _m = mask & 0xfc7; /* AX, CX, DX, SI, DI, 8, 9, 10, 11 */ \
|
||||
if (__builtin_parity(_m) == 1) _m |= 0x8; /* BX for ABI align */ \
|
||||
for (_c = HOST_REGS; _m && _c >= 0; _m &= ~(1 << _c), _c--) \
|
||||
for (_c = HOST_REGS-1; _m && _c >= 0; _m &= ~(1 << _c), _c--) \
|
||||
if (_m & (1 << _c)) emith_push(_c); \
|
||||
} while (0)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue