Merge pull request #12277 from Wack0/patch-1

MMU: on DSI exception, don't set store bit in DSISR on read
This commit is contained in:
Admiral H. Curtiss 2023-11-08 19:44:44 +01:00 committed by GitHub
commit 8064fecbb8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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;