TLB: fix backwards exception check

This commit is contained in:
Fiora 2014-12-03 06:00:23 -08:00
parent 22209bcc62
commit a4c6cf85e9

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