Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This commit is contained in:
Guillaume Chauvon 2025-03-20 11:47:05 +01:00 committed by GitHub
parent 20f8c41d4a
commit c2f400276c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1612,7 +1612,7 @@ module decoder
instruction_o.ex.cause = (CVA6Cfg.RVH && v_i) ? riscv::ENV_CALL_VSMODE : riscv::ENV_CALL_SMODE;
end else if (priv_lvl_i == riscv::PRIV_LVL_U && CVA6Cfg.RVU) begin
instruction_o.ex.cause = riscv::ENV_CALL_UMODE;
// we are in M-mode
// we are in M-mode
end else begin
instruction_o.ex.cause = riscv::ENV_CALL_MMODE;
end