Skip to content

Commit

Permalink
Merge pull request #998 from YoannPruvost/dev_mstatus_fs_mismatch
Browse files Browse the repository at this point in the history
RVFI - Correction corner case conflict on mstatus_fs upades when integer load followed by fpu instr
  • Loading branch information
davideschiavone authored Jun 6, 2024
2 parents f814f55 + b281ced commit bdd5253
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bhv/cv32e40p_rvfi.sv
Original file line number Diff line number Diff line change
Expand Up @@ -1640,7 +1640,7 @@ insn_trace_t trace_if, trace_id, trace_ex, trace_ex_next, trace_wb;
trace_wb.m_rd_wdata[0] = r_pipe_freeze_trace.rf_wdata_wb;
end

if (r_pipe_freeze_trace.csr.fregs_we) begin
if(r_pipe_freeze_trace.csr.fregs_we && r_pipe_freeze_trace.rf_we_wb && r_pipe_freeze_trace.rf_addr_wb[5]) begin //Catching mstatus updates caused by flw
`CSR_FROM_PIPE(wb, mstatus_fs)
trace_wb.m_csr.mstatus_fs_we = 1'b1;
trace_wb.m_csr.mstatus_fs_wmask = '1;
Expand Down

0 comments on commit bdd5253

Please sign in to comment.