mirror of https://github.com/PCSX2/pcsx2.git
mVU: Disabled breaking execution on bad programs since it's not needed anymore and costs speed.
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@1276 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
parent
e8ae911664
commit
fa0e10557a
|
@ -47,6 +47,7 @@ namespace VU0micro
|
||||||
if ((VU0.VI[REG_VPU_STAT].UL & 1) == 0) return;
|
if ((VU0.VI[REG_VPU_STAT].UL & 1) == 0) return;
|
||||||
|
|
||||||
FreezeXMMRegs(1);
|
FreezeXMMRegs(1);
|
||||||
|
//Currently breaking mVU execution is disabled. Check mVUtestCycles<vuIndex>() in microVU_Compile.inl
|
||||||
if (useMVU0) runVUrec(VU0.VI[REG_TPC].UL, 50000, 0);
|
if (useMVU0) runVUrec(VU0.VI[REG_TPC].UL, 50000, 0);
|
||||||
else SuperVUExecuteProgram(VU0.VI[REG_TPC].UL & 0xfff, 0);
|
else SuperVUExecuteProgram(VU0.VI[REG_TPC].UL & 0xfff, 0);
|
||||||
FreezeXMMRegs(0);
|
FreezeXMMRegs(0);
|
||||||
|
|
|
@ -145,6 +145,7 @@ namespace VU1micro
|
||||||
memcpy_fast((u8*)&VU1, (u8*)backVUregs, sizeof(VURegs));
|
memcpy_fast((u8*)&VU1, (u8*)backVUregs, sizeof(VURegs));
|
||||||
memcpy_fast((u8*)VU1.Mem, (u8*)backVUmem, 0x4000);
|
memcpy_fast((u8*)VU1.Mem, (u8*)backVUmem, 0x4000);
|
||||||
|
|
||||||
|
//Currently breaking mVU execution is disabled. Check mVUtestCycles<vuIndex>() in microVU_Compile.inl
|
||||||
runVUrec(VU1.VI[REG_TPC].UL, 300000 /*0x7fffffff*/, 1);
|
runVUrec(VU1.VI[REG_TPC].UL, 300000 /*0x7fffffff*/, 1);
|
||||||
|
|
||||||
if ((memcmp((u8*)cmpVUregs, (u8*)&VU1, (16*32) + (16*16))) || (memcmp((u8*)cmpVUmem, (u8*)VU1.Mem, 0x4000))) {
|
if ((memcmp((u8*)cmpVUregs, (u8*)&VU1, (16*32) + (16*16))) || (memcmp((u8*)cmpVUmem, (u8*)VU1.Mem, 0x4000))) {
|
||||||
|
@ -274,6 +275,7 @@ namespace VU1micro
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
FreezeXMMRegs(1);
|
FreezeXMMRegs(1);
|
||||||
|
//Currently breaking mVU execution is disabled. Check mVUtestCycles<vuIndex>() in microVU_Compile.inl
|
||||||
if (useMVU1) runVUrec(VU1.VI[REG_TPC].UL, 3000000, 1);
|
if (useMVU1) runVUrec(VU1.VI[REG_TPC].UL, 3000000, 1);
|
||||||
else {
|
else {
|
||||||
if (VU1.VI[REG_TPC].UL >= VU1.maxmicro) {
|
if (VU1.VI[REG_TPC].UL >= VU1.maxmicro) {
|
||||||
|
|
|
@ -266,7 +266,8 @@ microVUt(void*) __fastcall mVUcompile(u32 startPC, uptr pState) {
|
||||||
// Sets Up Flag instances
|
// Sets Up Flag instances
|
||||||
int xStatus[4], xMac[4], xClip[4];
|
int xStatus[4], xMac[4], xClip[4];
|
||||||
int xCycles = mVUsetFlags<vuIndex>(xStatus, xMac, xClip);
|
int xCycles = mVUsetFlags<vuIndex>(xStatus, xMac, xClip);
|
||||||
mVUtestCycles<vuIndex>();
|
|
||||||
|
//mVUtestCycles<vuIndex>(); //uncomment to re-enable breaking on bad programms, costs a few fps
|
||||||
|
|
||||||
// Second Pass
|
// Second Pass
|
||||||
iPC = mVUstartPC;
|
iPC = mVUstartPC;
|
||||||
|
|
Loading…
Reference in New Issue