From: notaz Date: Sat, 22 Feb 2025 23:12:53 +0000 (+0200) Subject: psxinterpreter: log bus error address X-Git-Tag: r25~10 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=26f32f12e95542adeea91b95f524a59be8c282f6;p=pcsx_rearmed.git psxinterpreter: log bus error address --- diff --git a/libpcsxcore/psxinterpreter.c b/libpcsxcore/psxinterpreter.c index e21e7efb..68d79321 100644 --- a/libpcsxcore/psxinterpreter.c +++ b/libpcsxcore/psxinterpreter.c @@ -756,6 +756,8 @@ static inline int checkLD(psxRegisters *regs, u32 addr, u32 m) { return 0; } if (unlikely(BUS_LOCKED_ADDR(addr))) { + log_unhandled("bus error read addr=%08x @%08x ra=%08x\n", + addr, regs->pc - 4, regs->GPR.n.ra); intException(regs, regs->pc - 4, R3000E_DBE << 2); return 0; } @@ -779,6 +781,8 @@ static inline int checkST(psxRegisters *regs, u32 addr, u32 m) { return 0; } if (unlikely(BUS_LOCKED_ADDR(addr))) { + log_unhandled("bus error write addr=%08x @%08x ra=%08x\n", + addr, regs->pc - 4, regs->GPR.n.ra); intException(regs, regs->pc - 4, R3000E_DBE << 2); return 0; }