psxinterpreter: unbreak load delay handling
authornotaz <notasas@gmail.com>
Tue, 15 Feb 2022 21:17:42 +0000 (23:17 +0200)
committernotaz <notasas@gmail.com>
Tue, 15 Feb 2022 21:27:03 +0000 (23:27 +0200)
Fixes: 943a507a4156b8f5b00e4431152e41eeb4dc6f3d

libpcsxcore/psxinterpreter.c

index 19a5fc4..e7e3269 100644 (file)
@@ -311,7 +311,7 @@ int psxTestLoadDelay(int reg, u32 tmp) {
 }
 
 void psxDelayTest(int reg, u32 bpc) {
-       u32 tmp = fetch(psxRegs.pc);
+       u32 tmp = fetch(bpc);
        branch = 1;
 
        switch (psxTestLoadDelay(reg, tmp)) {