Skip to content

Commit

Permalink
RVFI - Correction corner case conflict on mstatus_fs upades when inte…
Browse files Browse the repository at this point in the history
…ger load followed by fpu instr
  • Loading branch information
Yoann Pruvost committed Jun 6, 2024
1 parent 7a6961a commit 54558a8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bhv/cv32e40p_rvfi.sv
Original file line number Diff line number Diff line change
Expand Up @@ -1640,7 +1640,8 @@ 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) 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 54558a8

Please sign in to comment.