Skip to content

Commit 6131730

Browse files
belanoaAndrea Belano
andauthored
Add accelerator interrupts mxip (#13)
Co-authored-by: Andrea Belano <andrea.belano@studio.unibo.it>
1 parent 1ae25a2 commit 6131730

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

encoding.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@
132132
#define MIP_SGEIP (1 << IRQ_S_GEXT)
133133
#define MIP_SCIP (1 << IRQ_S_CLUSTER)
134134
#define MIP_MCIP (1 << IRQ_M_CLUSTER)
135+
#define MIP_MXIP (1 << IRQ_M_ACC)
135136

136137
#define MIP_S_MASK (MIP_SSIP | MIP_STIP | MIP_SEIP)
137138
#define MIP_VS_MASK (MIP_VSSIP | MIP_VSTIP | MIP_VSEIP)
@@ -203,6 +204,7 @@
203204
#define IRQ_HOST 13
204205
#define IRQ_S_CLUSTER 17
205206
#define IRQ_M_CLUSTER 19
207+
#define IRQ_M_ACC 20
206208

207209
#define DEFAULT_RSTVEC 0x00001000
208210
#define CLINT_BASE 0x02000000

0 commit comments

Comments
 (0)