Browse Source

Merge pull request #2114 from riscv-software-src/wrs-trap

WRS instructions should trap when Zawrs is not implemented
pull/2127/head
Andrew Waterman 10 months ago
committed by GitHub
parent
commit
217cbc5077
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 2
      riscv/insns/wrs_nto.h
  2. 2
      riscv/insns/wrs_sto.h

2
riscv/insns/wrs_nto.h

@ -1,3 +1,5 @@
require_extension(EXT_ZAWRS);
if (get_field(STATE.mstatus->read(), MSTATUS_TW)) {
require_privilege(PRV_M);
} else if (STATE.v) {

2
riscv/insns/wrs_sto.h

@ -1 +1,3 @@
require_extension(EXT_ZAWRS);
// WRS.STO stalls for a short duration

Loading…
Cancel
Save