From: Luke Kenneth Casson Leighton Date: Thu, 13 May 2021 15:39:33 +0000 (+0100) Subject: whoops TLBIE must *clear* the valid bit not set it. TLBUpdate X-Git-Url: https://git.libre-soc.org/?p=soc.git;a=commitdiff_plain;h=6e8875c3f753fcb7b5d6a9296f0364dc72ba1501 whoops TLBIE must *clear* the valid bit not set it. TLBUpdate --- 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):