aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYenHaoChen <howard25336284@gmail.com>2024-02-21 16:03:02 +0800
committerYenHaoChen <howard25336284@gmail.com>2024-02-21 16:03:02 +0800
commit5d6bde941ea9dbafe394cd81bcaf86fbe5f4eade (patch)
tree489479c8c90217d1d070b595cb49f98c829f6ef5
parent31a4c2a58f153792b01cd86f7db522fc3a9838d2 (diff)
downloadriscv-opcodes-5d6bde941ea9dbafe394cd81bcaf86fbe5f4eade.zip
riscv-opcodes-5d6bde941ea9dbafe394cd81bcaf86fbe5f4eade.tar.gz
riscv-opcodes-5d6bde941ea9dbafe394cd81bcaf86fbe5f4eade.tar.bz2
Add CSR fields of mtopi
-rw-r--r--encoding.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/encoding.h b/encoding.h
index 8a7f569..afc4962 100644
--- a/encoding.h
+++ b/encoding.h
@@ -257,6 +257,9 @@
#define HVICTL_IPRIOM 0x00000100
#define HVICTL_IPRIO 0x000000FF
+#define MTOPI_IID 0x0FFF0000
+#define MTOPI_IPRIO 0x000000FF
+
#define PRV_U 0
#define PRV_S 1
#define PRV_M 3