From a95fc05a0d459771793550bffefafe1ec0afe669 Mon Sep 17 00:00:00 2001 From: Paul Cercueil Date: Mon, 18 Sep 2023 18:39:40 +0200 Subject: [PATCH] lightrec: Emulate BREAK Some games (F1 2000, maybe others) require BREAK to be emulated properly. Signed-off-by: Paul Cercueil --- libpcsxcore/lightrec/plugin.c | 2 ++ 1 file changed, 2 insertions(+) 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; -- 2.39.5