From aa1501989e2ae769263eedcc8675fd905f90d09e Mon Sep 17 00:00:00 2001 From: Divyam Shankhdhar <00dcs00@gmail.com> Date: Tue, 24 Mar 2026 21:32:26 +0530 Subject: [PATCH] fix(rvfi): add missing page-fault and ecall cause decodings to tracer Resolves #3239 by adding missing exception decodings (Sv39 page faults and U/S-mode ecalls) mapped to their standard strings for better simulation logging. --- corev_apu/tb/rvfi_tracer.sv | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/corev_apu/tb/rvfi_tracer.sv b/corev_apu/tb/rvfi_tracer.sv index c680f8cd50..ae158d118d 100644 --- a/corev_apu/tb/rvfi_tracer.sv +++ b/corev_apu/tb/rvfi_tracer.sv @@ -179,6 +179,11 @@ module rvfi_tracer #( 32'h6: cause = "ST_ADDR_MISALIGNED"; 32'h7: cause = "ST_ACCESS_FAULT"; 32'hb: cause = "ENV_CALL_MMODE"; + 32'h8: cause = "ENV_CALL_UMODE"; + 32'h9: cause = "ENV_CALL_SMODE"; + 32'hc: cause = "INSTR_PAGE_FAULT"; + 32'hd: cause = "LOAD_PAGE_FAULT"; + 32'hf: cause = "STORE_PAGE_FAULT"; endcase; if (rvfi_i[i].insn[1:0] != 2'b11) begin $fwrite(f, "%s exception @ 0x%h (0x%h)\n", cause, pc64, rvfi_i[i].insn[15:0]);