sh2 drc bugfix for aarch64/mips

This commit is contained in:
kub 2019-10-12 00:26:11 +02:00
parent e7ee7bc00a
commit a6c0ab7d99
6 changed files with 20 additions and 19 deletions

View file

@ -979,7 +979,7 @@ static void emith_ldst_offs(int sz, int rd, int rn, int o9, int ld, int mode)
#define emith_save_caller_regs(mask) do { \
int _c, _r1, _r2; u32 _m = mask & 0x3ffff; \
if (__builtin_parity(_m) == 1) _m |= 0x40000; /* hardware align */ \
for (_c = HOST_REGS, _r1 = -1; _m && _c >= 0; _m &= ~(1 << _c), _c--) \
for (_c = HOST_REGS-1, _r1 = -1; _m && _c >= 0; _m &= ~(1 << _c), _c--)\
if (_m & (1 << _c)) { \
_r2 = _r1, _r1 = _c; \
if (_r2 != -1) { \