mirror of
https://github.com/openhwgroup/cva6.git
synced 2025-04-24 06:07:19 -04:00
🐛 Fix non-flushing AMOs
This commit is contained in:
parent
082ab36a03
commit
63070d856f
1 changed files with 3 additions and 1 deletions
|
@ -180,7 +180,7 @@ module miss_handler #(
|
|||
|
||||
IDLE: begin
|
||||
// lowest priority are AMOs, wait until everything else is served before going for the AMOs
|
||||
if (amo_req_i.req) begin
|
||||
if (amo_req_i.req && !busy_i) begin
|
||||
// 1. Flush the cache
|
||||
if (!serve_amo_q) begin
|
||||
state_d = FLUSH_REQ_STATUS;
|
||||
|
@ -203,6 +203,8 @@ module miss_handler #(
|
|||
// here comes the refill portion of code
|
||||
if (miss_req_valid[i] && !miss_req_bypass[i]) begin
|
||||
state_d = MISS;
|
||||
// we are taking another request so don't take the AMO
|
||||
serve_amo_d = 1'b0;
|
||||
// save to MSHR
|
||||
mshr_d.valid = 1'b1;
|
||||
mshr_d.we = miss_req_we[i];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue