File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -216,12 +216,17 @@ struct CPUState {
216
216
int32_t pmp_napot_grain ;
217
217
218
218
/* Supported modes:
219
- * 0 (INTERRUPT_MODE_AUTO) - chceck mtvec's LSB to detect mode: 0->direct, 1->vectored
219
+ * 0 (INTERRUPT_MODE_AUTO) - check mtvec's LSB to detect mode: 0->direct, 1->vectored, 3->clic
220
220
* 1 (INTERRUPT_MODE_DIRECT) - all exceptions set pc to mtvec's BASE
221
221
* 2 (INTERRUPT_MODE_VECTORED) - asynchronous interrupts set pc to mtvec's BASE + 4 * cause
222
222
*/
223
223
int32_t interrupt_mode ;
224
224
225
+ int32_t clic_interrupt_pending ;
226
+ uint32_t clic_interrupt_vectored ;
227
+ uint32_t clic_interrupt_level ;
228
+ uint32_t clic_interrupt_priv ;
229
+
225
230
CPU_COMMON
226
231
227
232
int8_t are_post_opcode_execution_hooks_enabled ;
Original file line number Diff line number Diff line change @@ -60,6 +60,10 @@ void cpu_reset(CPUState *env)
60
60
env -> mtvec = DEFAULT_MTVEC ;
61
61
env -> pc = DEFAULT_RSTVEC ;
62
62
env -> exception_index = EXCP_NONE ;
63
+ env -> clic_interrupt_pending = EXCP_NONE ;
64
+ env -> clic_interrupt_vectored = 0 ;
65
+ env -> clic_interrupt_level = 0 ;
66
+ env -> clic_interrupt_priv = 0 ;
63
67
set_default_nan_mode (1 , & env -> fp_status );
64
68
set_default_mstatus ();
65
69
env -> custom_instructions_count = custom_instructions_count ;
You can’t perform that action at this time.
0 commit comments