Merge pull request #1644 from FioraAeterna/fixtlb
TLB: fix backwards exception check
This commit is contained in:
commit
b1b7ae9f6a
|
@ -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];
|
||||
|
|
Loading…
Reference in New Issue