kuznia-rdzeni / coreblocks

RISC-V out-of-order core for education and research purposes
https://kuznia-rdzeni.github.io/coreblocks/
BSD 3-Clause "New" or "Revised" License
36 stars 14 forks source link

Fix instruction cache refilling bug #636

Closed xThaid closed 6 months ago

xThaid commented 6 months ago

While working on the superscalar frontend, I found a bug when occurred when refilling a cache line.

Exact way to reproduce it:

I added a test for this case I also (hopefully) simplified the flow in the instruction cache.