aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVed Shanbhogue <ved@rivosinc.com>2024-07-04 13:59:32 -0500
committerVed Shanbhogue <ved@rivosinc.com>2024-07-04 13:59:32 -0500
commit23a394b022e76d0d1c19a2fafc31b5efe59e6b87 (patch)
treeb5cb166a1f13839f0dfd52087e044202ddbe7f03
parentfeff9dc0e9e9e9cbc7fe814fd05fdc61454279c6 (diff)
downloadriscv-opcodes-23a394b022e76d0d1c19a2fafc31b5efe59e6b87.zip
riscv-opcodes-23a394b022e76d0d1c19a2fafc31b5efe59e6b87.tar.gz
riscv-opcodes-23a394b022e76d0d1c19a2fafc31b5efe59e6b87.tar.bz2
Add extended cause codes in DCSR
-rw-r--r--encoding.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/encoding.h b/encoding.h
index 8ea8852..953cf50 100644
--- a/encoding.h
+++ b/encoding.h
@@ -101,6 +101,9 @@
#define DCSR_CAUSE_STEP 4
#define DCSR_CAUSE_HALT 5
#define DCSR_CAUSE_GROUP 6
+#define DCSR_CAUSE_EXTCAUSE 7
+
+#define DCSR_EXTCAUSE_CRITERR 0
#define MCONTROL_TYPE(xlen) (0xfULL<<((xlen)-4))
#define MCONTROL_DMODE(xlen) (1ULL<<((xlen)-5))