VU: Fix address masking in MTVU

This commit is contained in:
refractionpcsx2 2021-07-10 03:31:04 +01:00
parent 93e5f86e24
commit 98b19656c9
2 changed files with 2 additions and 2 deletions

View File

@ -144,7 +144,7 @@ void VU_Thread::ExecuteRingBuffer()
vifRegs.itop = Read();
if (addr != -1)
vuRegs.VI[REG_TPC].UL = addr;
vuRegs.VI[REG_TPC].UL = addr & 0x7FF;
vuCPU->SetStartPC(vuRegs.VI[REG_TPC].UL << 3);
vuCPU->Execute(vu1RunCycles);
gifUnit.gifPath[GIF_PATH_1].FinishGSPacketMTVU();

View File

@ -69,7 +69,7 @@ void __fastcall vu1ExecMicro(u32 addr)
if(VU0.VI[REG_FBRST].UL & 0x800)
VU0.VI[REG_VPU_STAT].UL |= 0x0100;
vu1Thread.ExecuteVU(addr & 0x7FF, vif1Regs.top, vif1Regs.itop);
vu1Thread.ExecuteVU(addr, vif1Regs.top, vif1Regs.itop);
return;
}
static int count = 0;