+// cp0 is passed separately for lightrec to be less messy
+void psxException(u32 code, u32 bd, psxCP0Regs *cp0) {
+ psxRegs.code = PSXMu32(psxRegs.pc);
+
+ if (!Config.HLE && ((((psxRegs.code) >> 24) & 0xfe) == 0x4a)) {
+ // "hokuto no ken" / "Crash Bandicot 2" ...
+ // BIOS does not allow to return to GTE instructions
+ // (just skips it, supposedly because it's scheduled already)
+ // so we execute it here
+ psxCP2Regs *cp2 = (void *)(cp0 + 1);
+ psxCP2[psxRegs.code & 0x3f](cp2);
+ }
+