+ #ifdef ICACHE_EMULATION
+ /* Without the CPU_INTERPRETER condition, this will make Lightrec crash.
+ * Hopefully a better solution than this mess is found. - Gameblabla
+ */
+ if (Config.icache_emulation && Config.Cpu == CPU_INTERPRETER)
+ {
+ psxRegs.code = SWAPu32(*Read_ICache(psxRegs.pc));
+ }
+ else
+ #endif
+ {
+ 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
+ extern void (*psxCP2[64])(void *cp2regs);
+ psxCP2[psxRegs.code & 0x3f](&psxRegs.CP2D);
+ }
+