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 23:39:34 +0000 (01:39 +0200)
Fixes: 943a507a4156b8f5b00e4431152e41eeb4dc6f3d

libpcsxcore/psxinterpreter.c

index 5d931a9..dd732b0 100644 (file)
@@ -318,7 +318,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)) {