From 089b82b2e95a326899af7c5ae95a3c690bbf785c Mon Sep 17 00:00:00 2001 From: Harshil Patel Date: Wed, 29 Nov 2023 08:39:02 -0800 Subject: [PATCH] arch-riscv: fix tlb bug (#610) - one tlb miss was getting counted twice by the lookup function. Change-Id: I5fee08bd6e936896704e7dbbd242720b8d23b547 --- src/arch/riscv/tlb.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/arch/riscv/tlb.cc b/src/arch/riscv/tlb.cc index ac8c8ae029..69317188f8 100644 --- a/src/arch/riscv/tlb.cc +++ b/src/arch/riscv/tlb.cc @@ -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); }