mirror of
https://github.com/openhwgroup/cva6.git
synced 2025-04-23 13:47:13 -04:00
fix sfence.vma decoder (#921)
This commit is contained in:
parent
4ab5ef93b7
commit
01c89b7606
1 changed files with 1 additions and 1 deletions
|
@ -158,7 +158,7 @@ module decoder import ariane_pkg::*; (
|
|||
if (instr.instr[31:25] == 7'b1001) begin
|
||||
// check privilege level, SFENCE.VMA can only be executed in M/S mode
|
||||
// otherwise decode an illegal instruction
|
||||
illegal_instr = (priv_lvl_i inside {riscv::PRIV_LVL_M, riscv::PRIV_LVL_S}) ? 1'b0 : 1'b1;
|
||||
illegal_instr = (priv_lvl_i inside {riscv::PRIV_LVL_M, riscv::PRIV_LVL_S}) ? illegal_instr : 1'b1;
|
||||
instruction_o.op = ariane_pkg::SFENCE_VMA;
|
||||
// check TVM flag and intercept SFENCE.VMA call if necessary
|
||||
if (priv_lvl_i == riscv::PRIV_LVL_S && tvm_i)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue