1
0
mirror of https://github.com/antonblanchard/microwatt.git synced 2026-03-09 12:06:05 +00:00

litedram: L2 use latched refill_index

Not a huge difference since wb_req is itself a latch but
may as well

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
This commit is contained in:
Benjamin Herrenschmidt
2020-06-11 20:18:24 +10:00
parent 05bbbf0772
commit 15467fe536

View File

@@ -962,9 +962,9 @@ begin
-- Store new tag in selected way
for i in 0 to NUM_WAYS-1 loop
if i = refill_way then
tagset := cache_tags(req_index);
tagset := cache_tags(refill_index);
write_tag(i, tagset, req_tag);
cache_tags(req_index) <= tagset;
cache_tags(refill_index) <= tagset;
end if;
end loop;
state <= REFILL_WAIT_ACK;