Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #12277 from Wack0/patch-1
MMU: on DSI exception, don't set store bit in DSISR on read
  • Loading branch information
AdmiralCurtiss committed Nov 8, 2023
2 parents 8140d6b + 18d7770 commit 8064fec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Core/Core/PowerPC/MMU.cpp
Expand Up @@ -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;
Expand Down

0 comments on commit 8064fec

Please sign in to comment.