mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-24 14:49:42 -06:00
MMU: Always use data read for the PTE lookup in TranslatePageAddress.
This commit is contained in:
@ -1464,11 +1464,13 @@ MMU::TranslateAddressResult MMU::TranslatePageAddress(const EffectiveAddress add
|
|||||||
|
|
||||||
for (int i = 0; i < 8; i++, pteg_addr += 8)
|
for (int i = 0; i < 8; i++, pteg_addr += 8)
|
||||||
{
|
{
|
||||||
const u32 pteg = ReadFromHardware<flag, u32, true>(pteg_addr);
|
constexpr XCheckTLBFlag pte_read_flag =
|
||||||
|
IsNoExceptionFlag(flag) ? XCheckTLBFlag::NoException : XCheckTLBFlag::Read;
|
||||||
|
const u32 pteg = ReadFromHardware<pte_read_flag, u32, true>(pteg_addr);
|
||||||
|
|
||||||
if (pte1.Hex == pteg)
|
if (pte1.Hex == pteg)
|
||||||
{
|
{
|
||||||
UPTE_Hi pte2(ReadFromHardware<flag, u32, true>(pteg_addr + 4));
|
UPTE_Hi pte2(ReadFromHardware<pte_read_flag, u32, true>(pteg_addr + 4));
|
||||||
|
|
||||||
// set the access bits
|
// set the access bits
|
||||||
switch (flag)
|
switch (flag)
|
||||||
|
Reference in New Issue
Block a user