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.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/riscv/insns/hsv_d.h b/riscv/insns/hsv_d.h
new file mode 100644
index 0000000..6d41fb8
--- /dev/null
+++ b/riscv/insns/hsv_d.h
@@ -0,0 +1,5 @@
+require_extension('H');
+require_rv64;
+require_privilege(get_field(STATE.hstatus, HSTATUS_HU) ? PRV_S : PRV_U);
+require_novirt();
+MMU.guest_store_uint64(RS1, RS2);