aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--riscv/csrs.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/riscv/csrs.cc b/riscv/csrs.cc
index 95638d3..8d7737f 100644
--- a/riscv/csrs.cc
+++ b/riscv/csrs.cc
@@ -1452,6 +1452,8 @@ vxsat_csr_t::vxsat_csr_t(processor_t* const proc, const reg_t addr):
void vxsat_csr_t::verify_permissions(insn_t insn, bool write) const {
require_vector_vs;
+ if (!proc->extension_enabled('V'))
+ throw trap_illegal_instruction(insn.bits());
masked_csr_t::verify_permissions(insn, write);
}