DCache/ICache: Invalidate while filling, so if the fill is aborted, then at least...
[firearm.git] / DCache.v
index ab68448..356debc 100644 (file)
--- a/DCache.v
+++ b/DCache.v
@@ -86,7 +86,8 @@ module DCache(
                                if (cache_fill_pos == 15) begin /* Done? */
                                        cache_tags[idx] <= tag;
                                        cache_valid[idx] <= 1;
-                               end
+                               end else
+                                       cache_valid[idx] <= 0;
                        end
                end else if (wr_req && cache_hit)
                        cache_data[idx][addr[5:2]] = wr_data;
This page took 0.014257 seconds and 4 git commands to generate.