aboutsummaryrefslogtreecommitdiff
path: root/riscv/encoding.h
diff options
context:
space:
mode:
authorChih-Min Chao <chihmin.chao@sifive.com>2020-08-03 00:06:39 -0700
committerChih-Min Chao <chihmin.chao@sifive.com>2020-08-03 21:57:26 -0700
commit7775c6fb7cc1b29bf529fee9fb900cef513222c1 (patch)
treee5ff08c8b1b55aaa3b347532b80145e7875c9099 /riscv/encoding.h
parentf5e4f0cf329c13a9dea4bbc36c535572186e9c41 (diff)
downloadspike-7775c6fb7cc1b29bf529fee9fb900cef513222c1.zip
spike-7775c6fb7cc1b29bf529fee9fb900cef513222c1.tar.gz
spike-7775c6fb7cc1b29bf529fee9fb900cef513222c1.tar.bz2
op: hyperviosr: fix exception code and name
Signed-off-by: Chih-Min Chao <chihmin.chao@sifive.com>
Diffstat (limited to 'riscv/encoding.h')
-rw-r--r--riscv/encoding.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/riscv/encoding.h b/riscv/encoding.h
index 1ad6ec2..f621db3 100644
--- a/riscv/encoding.h
+++ b/riscv/encoding.h
@@ -2128,8 +2128,8 @@
#define CAUSE_MISALIGNED_STORE 0x6
#define CAUSE_STORE_ACCESS 0x7
#define CAUSE_USER_ECALL 0x8
-#define CAUSE_HYPERVISOR_ECALL 0x9
-#define CAUSE_SUPERVISOR_ECALL 0xa
+#define CAUSE_SUPERVISOR_ECALL 0x9
+#define CAUSE_VIRTUAL_SUPERVISOR_ECALL 0xa
#define CAUSE_MACHINE_ECALL 0xb
#define CAUSE_FETCH_PAGE_FAULT 0xc
#define CAUSE_LOAD_PAGE_FAULT 0xd
@@ -3211,8 +3211,8 @@ DECLARE_CAUSE("load access", CAUSE_LOAD_ACCESS)
DECLARE_CAUSE("misaligned store", CAUSE_MISALIGNED_STORE)
DECLARE_CAUSE("store access", CAUSE_STORE_ACCESS)
DECLARE_CAUSE("user_ecall", CAUSE_USER_ECALL)
-DECLARE_CAUSE("hypervisor_ecall", CAUSE_HYPERVISOR_ECALL)
DECLARE_CAUSE("supervisor_ecall", CAUSE_SUPERVISOR_ECALL)
+DECLARE_CAUSE("virtual_supervisor_ecall", CAUSE_VIRTUAL_SUPERVISOR_ECALL)
DECLARE_CAUSE("machine_ecall", CAUSE_MACHINE_ECALL)
DECLARE_CAUSE("fetch page fault", CAUSE_FETCH_PAGE_FAULT)
DECLARE_CAUSE("load page fault", CAUSE_LOAD_PAGE_FAULT)