Merge pull request #1644 from FioraAeterna/fixtlb

TLB: fix backwards exception check
This commit is contained in:
skidau 2014-12-04 13:19:03 +11:00
commit b1b7ae9f6a

View File

@ -754,7 +754,7 @@ static u32 LookupTLBPageAddress(const XCheckTLBFlag _Flag, const u32 vpa, u32 *p
static void UpdateTLBEntry(const XCheckTLBFlag _Flag, UPTE2 PTE2, const u32 vpa)
{
if (_Flag != FLAG_NO_EXCEPTION)
if (_Flag == FLAG_NO_EXCEPTION)
return;
tlb_entry *tlbe = tlb[_Flag == FLAG_OPCODE][(vpa>>HW_PAGE_INDEX_SHIFT)&HW_PAGE_INDEX_MASK];