From be14a841656abcf905c834b693e5fc2ae38d8e31 Mon Sep 17 00:00:00 2001 From: AngelaGonzalezMarino <135128652+AngelaGonzalezMarino@users.noreply.github.com> Date: Thu, 23 May 2024 11:50:37 +0200 Subject: [PATCH] Add the condition for updating the tlb only after a miss is incurred (#2120) --- core/cva6_mmu/cva6_tlb.sv | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/core/cva6_mmu/cva6_tlb.sv b/core/cva6_mmu/cva6_tlb.sv index 551ee06aaa..522004d3ea 100644 --- a/core/cva6_mmu/cva6_tlb.sv +++ b/core/cva6_mmu/cva6_tlb.sv @@ -285,8 +285,7 @@ module cva6_tlb tags_n[i].valid = 1'b0; end // normal replacement - end else if (update_i.valid & replace_en[i]) begin - // end else if (update_i.valid & replace_en[i] && !lu_hit_o) begin //to add this fix + end else if (update_i.valid & replace_en[i] & !lu_hit_o) begin //update tag tags_n[i] = { update_i.asid,