Fixed old recompiler compiling in a kludgy way because it appears there's no STORE_IMM_ADDR_W.

This commit is contained in:
OBattler
2025-04-22 09:46:58 +02:00
parent 69e7c8634c
commit b15f25ffa4
4 changed files with 6 additions and 6 deletions

View File

@@ -819,7 +819,7 @@ codegen_generate_call(uint8_t opcode, OpFn op, uint32_t fetchdat, uint32_t new_p
int pc_off = 0;
int test_modrm = 1;
int c;
uint16_t op87 = 0x0000;
uint32_t op87 = 0x00000000;
op_ea_seg = &cpu_state.seg_ds;
op_ssegs = 0;
@@ -1010,7 +1010,7 @@ generate_call:
}
if (op87 != 0x0000) {
STORE_IMM_ADDR_W((uintptr_t) &x87_op, op87);
STORE_IMM_ADDR_L((uintptr_t) &x87_op, op87);
}
if (recomp_op_table && recomp_op_table[(opcode | op_32) & 0x1ff]) {

View File

@@ -1858,7 +1858,7 @@ codegen_generate_call(uint8_t opcode, OpFn op, uint32_t fetchdat, uint32_t new_p
int pc_off = 0;
int test_modrm = 1;
int c;
uint16_t op87 = 0x0000;
uint32_t op87 = 0x00000000;
op_ea_seg = &cpu_state.seg_ds;
op_ssegs = 0;
@@ -2051,7 +2051,7 @@ generate_call:
}
if (op87 != 0x0000) {
STORE_IMM_ADDR_W((uintptr_t) &x87_op, op87);
STORE_IMM_ADDR_L((uintptr_t) &x87_op, op87);
}
if (recomp_op_table && recomp_op_table[(opcode | op_32) & 0x1ff]) {

View File

@@ -113,7 +113,7 @@ uint8_t is_smint = 0;
uint16_t io_port = 0x0000;
uint32_t io_val = 0x00000000;
uint16_t x87_op = 0x0000;
uint32_t x87_op = 0x00000000;
int opcode_has_modrm[256] = {
1, 1, 1, 1, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, /*00*/

View File

@@ -784,7 +784,7 @@ typedef struct {
uint32_t smhr;
} cyrix_t;
extern uint16_t x87_op;
extern uint32_t x87_op;
extern uint32_t addr64;
extern uint32_t addr64_2;