libretro, more fixes and cleanups for windows and osx

This commit is contained in:
kub 2020-07-08 20:46:46 +02:00
parent 0198149a72
commit 6b67b6aa13
6 changed files with 61 additions and 96 deletions

View file

@ -733,7 +733,7 @@ enum { xAX = 0, xCX, xDX, xBX, xSP, xBP, xSI, xDI, // x86-64,i386 common
/* mov r <-> [ebp+#offs] */ \
if ((offs) == 0) { \
emith_deref_modrm(op, 0, r, rs); \
} else if (abs(offs) >= 0x80) { \
} else if ((s32)(offs) < -0x80 || (s32)(offs) >= 0x80) { \
emith_deref_modrm(op, 2, r, rs); \
EMIT(offs, u32); \
} else { \
@ -1075,7 +1075,7 @@ enum { xAX = 0, xCX, xDX, xBX, xSP, xBP, xSI, xDI, // x86-64,i386 common
#define PARAM_REGS { xCX, xDX, xR8, xR9 }
#define PRESERVED_REGS { xSI, xDI, xR12, xR13, xR14, xR15, xBX, xBP }
#define TEMPORARY_REGS { xAX, xR10, xR11 }
#define STATIC_SH2_REGS { SHR_SR,xBX , SHR_R(0),xR15 , SH2_R(1),xR14 }
#define STATIC_SH2_REGS { SHR_SR,xBX , SHR_R(0),xR15 , SHR_R(1),xR14 }
#define host_arg2reg(rd, arg) \
switch (arg) { \