Merge pull request #13865 from Pokechu22/dsi-mention-mmu

Mention enable MMU in the DSI Exception message (Invalid read from ###/Invalid write to ###)
This commit is contained in:
Pokechu22
2025-08-15 10:11:47 -07:00
committed by GitHub

View File

@@ -1273,8 +1273,20 @@ void MMU::GenerateDSIException(u32 effective_address, bool write)
// DSI exceptions are only supported in MMU mode.
if (!m_system.IsMMUMode())
{
PanicAlertFmt("Invalid {} {:#010x}, PC = {:#010x}", write ? "write to" : "read from",
effective_address, m_ppc_state.pc);
if (write)
{
PanicAlertFmtT(
"Invalid write to {0:#010x}, PC = {1:#010x}; the game probably would have crashed on "
"real hardware.\n\nFor accurate emulation, enable MMU in advanced settings.",
effective_address, m_ppc_state.pc);
}
else
{
PanicAlertFmtT(
"Invalid read from {0:#010x}, PC = {1:#010x}; the game probably would have crashed on "
"real hardware.\n\nFor accurate emulation, enable MMU in advanced settings.",
effective_address, m_ppc_state.pc);
}
if (m_system.IsPauseOnPanicMode())
{
m_system.GetCPU().Break();