arch-riscv: fix tlb bug (#610)
- one tlb miss was getting counted twice by the lookup function. Change-Id: I5fee08bd6e936896704e7dbbd242720b8d23b547
This commit is contained in:
@@ -292,7 +292,7 @@ TLB::doTranslate(const RequestPtr &req, ThreadContext *tc,
|
||||
delayed = true;
|
||||
return fault;
|
||||
}
|
||||
e = lookup(vaddr, satp.asid, mode, false);
|
||||
e = lookup(vaddr, satp.asid, mode, true);
|
||||
assert(e != nullptr);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user