Navigation Menu

Skip to content

Commit

Permalink
VU: Fix address masking in MTVU
Browse files Browse the repository at this point in the history
  • Loading branch information
refractionpcsx2 committed Jul 10, 2021
1 parent 93e5f86 commit 98b1965
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pcsx2/MTVU.cpp
Expand Up @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion pcsx2/VU1micro.cpp
Expand Up @@ -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;
Expand Down

0 comments on commit 98b1965

Please sign in to comment.