From: Paul Cercueil Date: Mon, 18 Sep 2023 16:39:40 +0000 (+0200) Subject: lightrec: Emulate BREAK X-Git-Tag: r24l~174 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a95fc05a0d459771793550bffefafe1ec0afe669;hp=80bc142638988fa7ba87aa17af1ccfcfc21d1e99;p=pcsx_rearmed.git lightrec: Emulate BREAK Some games (F1 2000, maybe others) require BREAK to be emulated properly. Signed-off-by: Paul Cercueil --- diff --git a/libpcsxcore/lightrec/plugin.c b/libpcsxcore/lightrec/plugin.c index e87396dc..1fe04f65 100644 --- a/libpcsxcore/lightrec/plugin.c +++ b/libpcsxcore/lightrec/plugin.c @@ -525,6 +525,8 @@ static void lightrec_plugin_execute_internal(bool block_only) if (flags & LIGHTREC_EXIT_SYSCALL) psxException(R3000E_Syscall << 2, 0, (psxCP0Regs *)regs->cp0); + if (flags & LIGHTREC_EXIT_BREAK) + psxException(R3000E_Bp << 2, 0, (psxCP0Regs *)regs->cp0); else if (flags & LIGHTREC_EXIT_UNKNOWN_OP) { u32 op = intFakeFetch(psxRegs.pc); u32 hlec = op & 0x03ffffff;