mirror of
https://github.com/PCSX2/pcsx2.git
synced 2026-10-30 19:16:52 +01:00
VIF: use outer cast in VU cycle checks
This commit is contained in:
1 parent
17b052430b
commit
72ecb0fce3
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -137,7 +137,7 @@ __fi void vif0SetupTransfer()
|
||||
__fi void vif0VUFinish()
|
||||
{
|
||||
// Sync up VU0 so we don't errantly wait.
|
||||
while ((static_cast<int>(cpuRegs.cycle) - static_cast<int>(VU0.cycle)) > 0 && (VU0.VI[REG_VPU_STAT].UL & 0x1))
|
||||
while (static_cast<int>(cpuRegs.cycle - VU0.cycle) > 0 && (VU0.VI[REG_VPU_STAT].UL & 0x1))
|
||||
CpuVU0->ExecuteBlock();
|
||||
|
||||
if (VU0.VI[REG_VPU_STAT].UL & 0x5)
|
||||
|
||||
+1
-1
@@ -230,7 +230,7 @@ __fi void vif1SetupTransfer()
|
||||
__fi void vif1VUFinish()
|
||||
{
|
||||
// Sync up VU1 so we don't errantly wait.
|
||||
while (!THREAD_VU1 && (static_cast<int>(cpuRegs.cycle) - static_cast<int>(VU1.cycle)) > 0 && (VU0.VI[REG_VPU_STAT].UL & 0x100))
|
||||
while (!THREAD_VU1 && static_cast<int>(cpuRegs.cycle - VU1.cycle) > 0 && (VU0.VI[REG_VPU_STAT].UL & 0x100))
|
||||
CpuVU1->ExecuteBlock();
|
||||
|
||||
if (VU0.VI[REG_VPU_STAT].UL & 0x500)
|
||||
|
||||
Reference in new issue
Block a user