aboutsummaryrefslogtreecommitdiff
path: root/encoding.h
diff options
context:
space:
mode:
authorWeiwei Li <liweiwei@iscas.ac.cn>2022-07-04 15:55:12 +0800
committerWeiwei Li <liweiwei@iscas.ac.cn>2022-07-04 16:00:16 +0800
commit0bf5089cb2eb19ba5e701b2a789190e23d1fb582 (patch)
treebcace617e579fa7476486a580d087e5cfbf2a874 /encoding.h
parent2a184560624f4ad61c92a8e9fab883e6dc6b364f (diff)
downloadriscv-opcodes-0bf5089cb2eb19ba5e701b2a789190e23d1fb582.zip
riscv-opcodes-0bf5089cb2eb19ba5e701b2a789190e23d1fb582.tar.gz
riscv-opcodes-0bf5089cb2eb19ba5e701b2a789190e23d1fb582.tar.bz2
add field definition for MIP/SIP csrs added by Sscofpmf extension
Diffstat (limited to 'encoding.h')
-rw-r--r--encoding.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/encoding.h b/encoding.h
index b1bb384..65d8e55 100644
--- a/encoding.h
+++ b/encoding.h
@@ -134,6 +134,7 @@
#define MIP_VSEIP (1 << IRQ_VS_EXT)
#define MIP_MEIP (1 << IRQ_M_EXT)
#define MIP_SGEIP (1 << IRQ_S_GEXT)
+#define MIP_LCOFIP (1 << IRQ_LCOF)
#define MIP_S_MASK (MIP_SSIP | MIP_STIP | MIP_SEIP)
#define MIP_VS_MASK (MIP_VSSIP | MIP_VSTIP | MIP_VSEIP)
@@ -271,6 +272,7 @@
#define IRQ_M_EXT 11
#define IRQ_S_GEXT 12
#define IRQ_COP 12
+#define IRQ_LCOF 13
#define IRQ_HOST 13
/* page table entry (PTE) fields */