mirror of
https://github.com/openhwgroup/cva6.git
synced 2025-04-24 14:17:16 -04:00
🐛 Fix problem with flushing the PTW
This commit is contained in:
parent
7b631fef91
commit
95e36dc3e2
1 changed files with 2 additions and 5 deletions
|
@ -313,13 +313,10 @@ module ptw #(
|
|||
// -------
|
||||
// should we have flushed before we got an rvalid, wait for it until going back to IDLE
|
||||
if (flush_i) begin
|
||||
// check if we are walking a store, if not then go back to IDLE because
|
||||
// all other operations are speculative
|
||||
// on a flush check whether we are waiting for a grant, if so: wait for it
|
||||
// if not go back to idle
|
||||
if ((CS == WAIT_GRANT) && data_gnt_i)
|
||||
NS = WAIT_RVALID;
|
||||
// keep the state if we are serving a store
|
||||
else if (flush_i && lsu_is_store_i)
|
||||
NS = CS;
|
||||
else
|
||||
NS = IDLE;
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue