Browse Source

Require vector extension when attempting vxsat writes

Accidentally removed in c9468f6e02.

See #1660.
pull/1678/head
rbuchner 2 years ago
parent
commit
48cf35d027
  1. 2
      riscv/csrs.cc

2
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);
}

Loading…
Cancel
Save