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:
Harshil Patel
2023-11-29 08:39:02 -08:00
committed by GitHub
parent 3fe5e58f28
commit 089b82b2e9

View File

@@ -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);
}