From 18d777095b07dd6b32d3586fab21153f5a7fab57 Mon Sep 17 00:00:00 2001 From: Rairii <2650838+Wack0@users.noreply.github.com> Date: Wed, 8 Nov 2023 16:06:11 +0000 Subject: [PATCH] MMU: on DSI exception, don't set store bit on read --- Source/Core/Core/PowerPC/MMU.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Core/Core/PowerPC/MMU.cpp b/Source/Core/Core/PowerPC/MMU.cpp index dcb1b75654..aef3dd714e 100644 --- a/Source/Core/Core/PowerPC/MMU.cpp +++ b/Source/Core/Core/PowerPC/MMU.cpp @@ -1283,7 +1283,7 @@ void MMU::GenerateDSIException(u32 effective_address, bool write) constexpr u32 dsisr_page = 1U << 30; constexpr u32 dsisr_store = 1U << 25; - if (effective_address != 0) + if (write) m_ppc_state.spr[SPR_DSISR] = dsisr_page | dsisr_store; else m_ppc_state.spr[SPR_DSISR] = dsisr_page;