Moved integer registers, PC and flags_* variables into new cpu_state structure. Reduces recompiled code size slightly, small speedup (1-3%).

This commit is contained in:
SarahW 2016-04-20 21:39:41 +01:00
commit c81a91fd72
52 changed files with 1494 additions and 1408 deletions

View file

@ -16,7 +16,7 @@ static int opPSxxW_imm(uint32_t fetchdat)
int op = fetchdat & 0x38;
int shift = (fetchdat >> 8) & 0xff;
pc += 2;
cpu_state.pc += 2;
MMX_ENTER();
switch (op)
@ -53,7 +53,7 @@ static int opPSxxW_imm(uint32_t fetchdat)
break;
default:
pclog("Bad PSxxW (0F 71) instruction %02X\n", op);
pc = oldpc;
cpu_state.pc = oldpc;
x86illegal();
return 0;
}
@ -193,7 +193,7 @@ static int opPSxxD_imm(uint32_t fetchdat)
int op = fetchdat & 0x38;
int shift = (fetchdat >> 8) & 0xff;
pc += 2;
cpu_state.pc += 2;
MMX_ENTER();
switch (op)
@ -224,7 +224,7 @@ static int opPSxxD_imm(uint32_t fetchdat)
break;
default:
pclog("Bad PSxxD (0F 72) instruction %02X\n", op);
pc = oldpc;
cpu_state.pc = oldpc;
x86illegal();
return 0;
}
@ -352,7 +352,7 @@ static int opPSxxQ_imm(uint32_t fetchdat)
int op = fetchdat & 0x38;
int shift = (fetchdat >> 8) & 0xff;
pc += 2;
cpu_state.pc += 2;
MMX_ENTER();
switch (op)
@ -376,7 +376,7 @@ static int opPSxxQ_imm(uint32_t fetchdat)
break;
default:
pclog("Bad PSxxQ (0F 73) instruction %02X\n", op);
pc = oldpc;
cpu_state.pc = oldpc;
x86illegal();
return 0;
}