projects
/
riscv-isa-sim.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
WIP on priv spec v1.9
[riscv-isa-sim.git]
/
riscv
/
insns
/
scall.h
diff --git
a/riscv/insns/scall.h
b/riscv/insns/scall.h
index e8a055556c4cb24b067a0e118463ce2eaad02171..a933e4d2fa87fc1b5d09030b9ac23fe5b5833ba8 100644
(file)
--- a/
riscv/insns/scall.h
+++ b/
riscv/insns/scall.h
@@
-1,4
+1,4
@@
-switch (
get_field(STATE.mstatus, MSTATUS_PRV)
)
+switch (
STATE.prv
)
{
case PRV_U: throw trap_user_ecall();
case PRV_S: throw trap_supervisor_ecall();