Move some more variables into cpu_state structure. Minor speedup (~2%).

This commit is contained in:
SarahW 2016-08-17 21:28:16 +01:00
commit c664682758
43 changed files with 801 additions and 810 deletions

View file

@ -11,14 +11,14 @@
} \
else \
{ \
src.q = readmemq(easeg, eaaddr); if (abrt) return 1; \
src.q = readmemq(easeg, cpu_state.eaaddr); if (abrt) return 1; \
CLOCK_CYCLES(2); \
}
#define MMX_ENTER() \
if (!cpu_hasMMX) \
{ \
cpu_state.pc = oldpc; \
cpu_state.pc = cpu_state.oldpc; \
x86illegal(); \
return 1; \
} \
@ -33,7 +33,7 @@ static int opEMMS(uint32_t fetchdat)
{
if (!cpu_hasMMX)
{
cpu_state.pc = oldpc;
cpu_state.pc = cpu_state.oldpc;
x86illegal();
return 1;
}