Revert 32-bit EA load/stores workaround, problem was 0xffffffff read from

[PgChk]+4 which yields to 3 on 32-bit arches and something > 32-bit on AMD64
This commit is contained in:
gbeauche 2003-12-05 12:38:44 +00:00
parent e517594a51
commit 4755f118df

View File

@ -301,22 +301,22 @@ DEFINE_OP(fsubs_F0_F1, fsub, (F0, F1));
/**
* Load/Store instructions on 32-bit EA
* Load/Store instructions
**/
#define im PARAM1
#define DEFINE_OP(BITS,REG,SIZE,OFFSET) \
void OPPROTO op_load_u##BITS##_##REG##_A0_##OFFSET(void) \
{ \
REG = (uint32)(uint##BITS)vm_read_memory_##SIZE((uint32)(A0 + OFFSET)); \
} \
void OPPROTO op_load_s##BITS##_##REG##_A0_##OFFSET(void) \
{ \
REG = (int32)(int##BITS)vm_read_memory_##SIZE((uint32)(A0 + OFFSET)); \
} \
void OPPROTO op_store_##BITS##_##REG##_A0_##OFFSET(void) \
{ \
vm_write_memory_##SIZE((uint32)(A0 + OFFSET), REG); \
#define DEFINE_OP(BITS,REG,SIZE,OFFSET) \
void OPPROTO op_load_u##BITS##_##REG##_A0_##OFFSET(void) \
{ \
REG = (uint32)(uint##BITS)vm_read_memory_##SIZE(A0 + OFFSET); \
} \
void OPPROTO op_load_s##BITS##_##REG##_A0_##OFFSET(void) \
{ \
REG = (int32)(int##BITS)vm_read_memory_##SIZE(A0 + OFFSET); \
} \
void OPPROTO op_store_##BITS##_##REG##_A0_##OFFSET(void) \
{ \
vm_write_memory_##SIZE(A0 + OFFSET, REG); \
}
DEFINE_OP(32,T0,4,0);