icache.py add req_hit_way as arg to icache_comb, actually ran file this
authorCole Poirier <colepoirier@gmail.com>
Fri, 2 Oct 2020 21:18:28 +0000 (14:18 -0700)
committerCole Poirier <colepoirier@gmail.com>
Fri, 2 Oct 2020 21:18:28 +0000 (14:18 -0700)
time to make sure it's correct, fixes https://bugs.libre-soc.org/show_bug.cgi?id=485#c37

src/soc/experiment/icache.py

index 75361d9bdc8781969e52e1e8c7a1ec29987ae941..85ac884d83a56fd822bfa4f39ec7482289cec864 100644 (file)
@@ -698,7 +698,7 @@ class ICache(Elaboratable):
             sync += itlb_valid_bits[wr_index].eq(1)
 
     # Cache hit detection, output to fetch2 and other misc logic
-    def icache_comb(self, m, use_previous, r, req_index, req_row,
+    def icache_comb(self, m, use_previous, r, req_index, req_row, req_hit_way,
                     req_tag, real_addr, req_laddr, cache_valid_bits,
                     cache_tags, access_ok, req_is_hit,
                     req_is_miss, replace_way, plru_victim, cache_out_row):
@@ -1120,7 +1120,7 @@ class ICache(Elaboratable):
                          real_addr, itlb_valid_bits, ra_valid, eaa_priv,
                          priv_fault, access_ok)
         self.itlb_update(m, itlb_valid_bits, itlb_tags, itlb_ptes)
-        self.icache_comb(m, use_previous, r, req_index, req_row,
+        self.icache_comb(m, use_previous, r, req_index, req_row, req_hit_way,
                          req_tag, real_addr, req_laddr, cache_valid_bits,
                          cache_tags, access_ok, req_is_hit, req_is_miss,
                          replace_way, plru_victim, cache_out_row)