From 26f32f12e95542adeea91b95f524a59be8c282f6 Mon Sep 17 00:00:00 2001 From: notaz Date: Sun, 23 Feb 2025 01:12:53 +0200 Subject: [PATCH] psxinterpreter: log bus error address --- libpcsxcore/psxinterpreter.c | 4 ++++ 1 file changed, 4 insertions(+) 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; } -- 2.39.5