Skip to content

Commit

Permalink
RVFI - Extending mstatus_fs update to trace_id when fregs_we
Browse files Browse the repository at this point in the history
  • Loading branch information
Yoann Pruvost committed Nov 17, 2023
1 parent fb856d0 commit d6fdb29
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bhv/cv32e40p_rvfi.sv
Original file line number Diff line number Diff line change
Expand Up @@ -1182,6 +1182,9 @@ insn_trace_t trace_if, trace_id, trace_ex, trace_ex_next, trace_wb;

`CSR_FROM_PIPE(apu_resp, mstatus_fs)

if (r_pipe_freeze_trace.csr.mstatus_fs_we && (trace_id.m_order > trace_apu_resp.m_order)) begin
trace_id.m_csr.mstatus_fs_rdata = r_pipe_freeze_trace.csr.mstatus_fs_n;
end
if (r_pipe_freeze_trace.csr.mstatus_fs_we && (trace_ex.m_order > trace_apu_resp.m_order)) begin
trace_ex.m_csr.mstatus_fs_rdata = r_pipe_freeze_trace.csr.mstatus_fs_n;
end
Expand Down

0 comments on commit d6fdb29

Please sign in to comment.