From 6e8875c3f753fcb7b5d6a9296f0364dc72ba1501 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Thu, 13 May 2021 16:39:33 +0100 Subject: [PATCH] whoops TLBIE must *clear* the valid bit not set it. TLBUpdate --- src/soc/experiment/dcache.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/soc/experiment/dcache.py b/src/soc/experiment/dcache.py index cc3b2efc..82b115bb 100644 --- a/src/soc/experiment/dcache.py +++ b/src/soc/experiment/dcache.py @@ -465,7 +465,7 @@ class DTLBUpdate(Elaboratable): pass # clear all back in parent with m.Elif(self.tlbie): with m.If(self.tlb_hit): - comb += db_out.bit_select(self.tlb_hit_way, 1).eq(1) + comb += db_out.bit_select(self.tlb_hit_way, 1).eq(0) comb += self.v_updated.eq(1) with m.Elif(self.tlbwe): -- 2.30.2