aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNeel Gala <neelgala@incoresemi.com>2024-02-21 14:00:54 +0530
committerGitHub <noreply@github.com>2024-02-21 14:00:54 +0530
commit275f72a80950c442edac63567ed019d3f7fba3d2 (patch)
tree489479c8c90217d1d070b595cb49f98c829f6ef5
parent31a4c2a58f153792b01cd86f7db522fc3a9838d2 (diff)
parent5d6bde941ea9dbafe394cd81bcaf86fbe5f4eade (diff)
downloadriscv-opcodes-275f72a80950c442edac63567ed019d3f7fba3d2.zip
riscv-opcodes-275f72a80950c442edac63567ed019d3f7fba3d2.tar.gz
riscv-opcodes-275f72a80950c442edac63567ed019d3f7fba3d2.tar.bz2
Merge pull request #232 from YenHaoChen/pr-mtopi
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