rendered paste bodyIndex: pcsx2/x86/ix86-32/iCore-32.cpp===================================================================--- pcsx2/x86/ix86-32/iCore-32.cpp (revision 1972)+++ pcsx2/x86/ix86-32/iCore-32.cpp (working copy)@@ -118,6 +118,7 @@ int _getFreeX86reg(int mode) { int tempi = -1;+ int noframe = 1; // mode & MODE_NOFRAME u32 bestcount = 0x10000; int maxreg = (mode&MODE_8BITREG)?4:iREGCNT_GPR;@@ -126,7 +127,7 @@ int reg = (g_x86checknext+i)%iREGCNT_GPR; if( reg == 0 || reg == ESP ) continue; if( reg >= maxreg ) continue;- if( (mode&MODE_NOFRAME) && reg==EBP ) continue;+ if( noframe && reg==EBP ) continue; if (x86regs[reg].inuse == 0) { g_x86checknext = (reg+1)%iREGCNT_GPR;@@ -136,7 +137,7 @@ for (int i=1; i<maxreg; i++) { if( i == ESP ) continue;- if( (mode&MODE_NOFRAME) && i==EBP ) continue;+ if( noframe && i==EBP ) continue; if (x86regs[i].needed) continue; if (x86regs[i].type != X86TYPE_TEMP) {@@ -243,7 +244,7 @@ // don't alloc EAX and ESP,EBP if MODE_NOFRAME int oldmode = mode;- int noframe = mode & MODE_NOFRAME;+ int noframe = 1; // mode & MODE_NOFRAME; int maxreg = (mode & MODE_8BITREG) ? 4 : iREGCNT_GPR; mode &= ~(MODE_NOFRAME|MODE_8BITREG); int readfromreg = -1;