Oops, try a little harder this time to ensure local monitor is cleared by sc.w errors _always_, even if lined up with trap entry stalls etc

This commit is contained in:
Luke Wren 2021-12-12 23:32:01 +00:00
parent 25b44d04cf
commit f1cda26bcc
1 changed files with 1 additions and 1 deletions

View File

@ -936,7 +936,7 @@ end
always @ (posedge clk or negedge rst_n) begin
if (!rst_n) begin
mw_local_exclusive_reserved <= 1'b0;
end else if (|EXTENSION_A && !m_stall) begin
end else if (|EXTENSION_A && (!m_stall || bus_dph_err_d)) begin
`ifdef FORMAL
// AMOs should handle the entire bus transfer in stage X.
assert(xm_memop != MEMOP_AMOADD_W);