mirror of
https://github.com/openhwgroup/cva6.git
synced 2025-04-22 21:27:10 -04:00
RVFI : For synchronous trap, check mcause MSB also (#2674)
This commit is contained in:
parent
f7dd49efa5
commit
d4b337851c
1 changed files with 2 additions and 2 deletions
|
@ -284,8 +284,8 @@ module cva6_rvfi
|
|||
ex_commit_cause == riscv::ENV_CALL_UMODE));
|
||||
rvfi_instr_o[i].valid <= valid;
|
||||
rvfi_instr_o[i].insn <= mem_q[commit_pointer[i]].instr;
|
||||
// when trap, the instruction is not executed
|
||||
rvfi_instr_o[i].trap <= exception;
|
||||
// when synchronous trap, the instruction is not executed
|
||||
rvfi_instr_o[i].trap <= exception && !ex_commit_cause[31];
|
||||
|
||||
if (exception && ex_commit_cause[31]) begin
|
||||
rvfi_intr[i] <= 'b101;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue