ooo nasty bug. used tlb_hit.way instead of tlb_hit.valid
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Mon, 6 Dec 2021 17:40:12 +0000 (17:40 +0000)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Mon, 6 Dec 2021 17:40:12 +0000 (17:40 +0000)
src/soc/experiment/dcache.py

index 38aeebbadf1e3f0ed69bca6e2df82a459e575685..d0829f4df8ac56dbcf96b5b018a66730e24261c4 100644 (file)
@@ -583,7 +583,7 @@ class DCachePendingHit(Elaboratable):
                 comb += hit_set[j].eq(s_hit)
                 with m.If(s_tag == reload_tag):
                     comb += rel_matches[j].eq(1)
-            with m.If(tlb_hit.way):
+            with m.If(tlb_hit.valid):
                 comb += is_hit.eq(hit_set[tlb_hit.way])
                 comb += hit_way.eq(hit_way_set[tlb_hit.way])
                 comb += rel_match.eq(rel_matches[tlb_hit.way])