mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-11 06:59:07 +01:00
Bugfix for the TLB cache used by the MMU. Thanks to drkIIRaziel for spotting it.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6138 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
f8e8f25408
commit
eb40f765c2
@ -697,9 +697,8 @@ u32 LookupTLBPageAddress(const XCheckTLBFlag _Flag, const u32 vpa, u32 *paddr)
|
|||||||
{
|
{
|
||||||
if ((_Address & ~0xfff) == (PowerPC::ppcState.itlb_va[i & 127]))
|
if ((_Address & ~0xfff) == (PowerPC::ppcState.itlb_va[i & 127]))
|
||||||
{
|
{
|
||||||
u32 result = PowerPC::ppcState.itlb_pa[i & 127] | (_Address & 0xfff);
|
*paddr = PowerPC::ppcState.itlb_pa[i & 127] | (_Address & 0xfff);
|
||||||
PowerPC::ppcState.itlb_last = i;
|
PowerPC::ppcState.itlb_last = i;
|
||||||
paddr = &result;
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -710,9 +709,8 @@ u32 LookupTLBPageAddress(const XCheckTLBFlag _Flag, const u32 vpa, u32 *paddr)
|
|||||||
{
|
{
|
||||||
if ((_Address & ~0xfff) == (PowerPC::ppcState.dtlb_va[i & 127]))
|
if ((_Address & ~0xfff) == (PowerPC::ppcState.dtlb_va[i & 127]))
|
||||||
{
|
{
|
||||||
u32 result = PowerPC::ppcState.dtlb_pa[i & 127] | (_Address & 0xfff);
|
*paddr = PowerPC::ppcState.dtlb_pa[i & 127] | (_Address & 0xfff);
|
||||||
PowerPC::ppcState.dtlb_last = i;
|
PowerPC::ppcState.dtlb_last = i;
|
||||||
paddr = &result;
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user