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:
commit
8064fecbb8
|
@ -1283,7 +1283,7 @@ void MMU::GenerateDSIException(u32 effective_address, bool write)
|
||||||
constexpr u32 dsisr_page = 1U << 30;
|
constexpr u32 dsisr_page = 1U << 30;
|
||||||
constexpr u32 dsisr_store = 1U << 25;
|
constexpr u32 dsisr_store = 1U << 25;
|
||||||
|
|
||||||
if (effective_address != 0)
|
if (write)
|
||||||
m_ppc_state.spr[SPR_DSISR] = dsisr_page | dsisr_store;
|
m_ppc_state.spr[SPR_DSISR] = dsisr_page | dsisr_store;
|
||||||
else
|
else
|
||||||
m_ppc_state.spr[SPR_DSISR] = dsisr_page;
|
m_ppc_state.spr[SPR_DSISR] = dsisr_page;
|
||||||
|
|
Loading…
Reference in New Issue