aboutsummaryrefslogtreecommitdiff
path: root/riscv/insns/hsv_d.h
diff options
context:
space:
mode:
Diffstat (limited to 'riscv/insns/hsv_d.h')
-rw-r--r--riscv/insns/hsv_d.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/riscv/insns/hsv_d.h b/riscv/insns/hsv_d.h
index 6d41fb8..2952c65 100644
--- a/riscv/insns/hsv_d.h
+++ b/riscv/insns/hsv_d.h
@@ -1,5 +1,5 @@
require_extension('H');
require_rv64;
-require_privilege(get_field(STATE.hstatus, HSTATUS_HU) ? PRV_S : PRV_U);
+require_privilege(get_field(STATE.hstatus, HSTATUS_HU) ? PRV_U : PRV_S);
require_novirt();
MMU.guest_store_uint64(RS1, RS2);