mirror of
https://github.com/kanjitalk755/macemu.git
synced 2024-12-25 02:29:49 +00:00
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:
parent
e517594a51
commit
4755f118df
@ -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 im PARAM1
|
||||||
#define DEFINE_OP(BITS,REG,SIZE,OFFSET) \
|
#define DEFINE_OP(BITS,REG,SIZE,OFFSET) \
|
||||||
void OPPROTO op_load_u##BITS##_##REG##_A0_##OFFSET(void) \
|
void OPPROTO op_load_u##BITS##_##REG##_A0_##OFFSET(void) \
|
||||||
{ \
|
{ \
|
||||||
REG = (uint32)(uint##BITS)vm_read_memory_##SIZE((uint32)(A0 + OFFSET)); \
|
REG = (uint32)(uint##BITS)vm_read_memory_##SIZE(A0 + OFFSET); \
|
||||||
} \
|
} \
|
||||||
void OPPROTO op_load_s##BITS##_##REG##_A0_##OFFSET(void) \
|
void OPPROTO op_load_s##BITS##_##REG##_A0_##OFFSET(void) \
|
||||||
{ \
|
{ \
|
||||||
REG = (int32)(int##BITS)vm_read_memory_##SIZE((uint32)(A0 + OFFSET)); \
|
REG = (int32)(int##BITS)vm_read_memory_##SIZE(A0 + OFFSET); \
|
||||||
} \
|
} \
|
||||||
void OPPROTO op_store_##BITS##_##REG##_A0_##OFFSET(void) \
|
void OPPROTO op_store_##BITS##_##REG##_A0_##OFFSET(void) \
|
||||||
{ \
|
{ \
|
||||||
vm_write_memory_##SIZE((uint32)(A0 + OFFSET), REG); \
|
vm_write_memory_##SIZE(A0 + OFFSET, REG); \
|
||||||
}
|
}
|
||||||
|
|
||||||
DEFINE_OP(32,T0,4,0);
|
DEFINE_OP(32,T0,4,0);
|
||||||
|
Loading…
Reference in New Issue
Block a user