File tree Expand file tree Collapse file tree 4 files changed +8
-7
lines changed Expand file tree Collapse file tree 4 files changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -186,10 +186,10 @@ static const struct SysemuCPUOps openrisc_sysemu_ops = {
186
186
187
187
static const struct TCGCPUOps openrisc_tcg_ops = {
188
188
.initialize = openrisc_translate_init ,
189
- .cpu_exec_interrupt = openrisc_cpu_exec_interrupt ,
190
189
.tlb_fill = openrisc_cpu_tlb_fill ,
191
190
192
191
#ifndef CONFIG_USER_ONLY
192
+ .cpu_exec_interrupt = openrisc_cpu_exec_interrupt ,
193
193
.do_interrupt = openrisc_cpu_do_interrupt ,
194
194
#endif /* !CONFIG_USER_ONLY */
195
195
};
Original file line number Diff line number Diff line change @@ -312,8 +312,6 @@ struct OpenRISCCPU {
312
312
313
313
314
314
void cpu_openrisc_list (void );
315
- void openrisc_cpu_do_interrupt (CPUState * cpu );
316
- bool openrisc_cpu_exec_interrupt (CPUState * cpu , int int_req );
317
315
void openrisc_cpu_dump_state (CPUState * cpu , FILE * f , int flags );
318
316
hwaddr openrisc_cpu_get_phys_page_debug (CPUState * cpu , vaddr addr );
319
317
int openrisc_cpu_gdb_read_register (CPUState * cpu , GByteArray * buf , int reg );
@@ -331,6 +329,9 @@ int print_insn_or1k(bfd_vma addr, disassemble_info *info);
331
329
#ifndef CONFIG_USER_ONLY
332
330
extern const VMStateDescription vmstate_openrisc_cpu ;
333
331
332
+ void openrisc_cpu_do_interrupt (CPUState * cpu );
333
+ bool openrisc_cpu_exec_interrupt (CPUState * cpu , int int_req );
334
+
334
335
/* hw/openrisc_pic.c */
335
336
void cpu_openrisc_pic_init (OpenRISCCPU * cpu );
336
337
Original file line number Diff line number Diff line change 28
28
29
29
void openrisc_cpu_do_interrupt (CPUState * cs )
30
30
{
31
- #ifndef CONFIG_USER_ONLY
32
31
OpenRISCCPU * cpu = OPENRISC_CPU (cs );
33
32
CPUOpenRISCState * env = & cpu -> env ;
34
33
int exception = cs -> exception_index ;
@@ -96,7 +95,6 @@ void openrisc_cpu_do_interrupt(CPUState *cs)
96
95
} else {
97
96
cpu_abort (cs , "Unhandled exception 0x%x\n" , exception );
98
97
}
99
- #endif
100
98
101
99
cs -> exception_index = -1 ;
102
100
}
Original file line number Diff line number Diff line change @@ -9,15 +9,17 @@ openrisc_ss.add(files(
9
9
' exception_helper.c' ,
10
10
' fpu_helper.c' ,
11
11
' gdbstub.c' ,
12
- ' interrupt.c' ,
13
12
' interrupt_helper.c' ,
14
13
' mmu.c' ,
15
14
' sys_helper.c' ,
16
15
' translate.c' ,
17
16
))
18
17
19
18
openrisc_softmmu_ss = ss.source_set()
20
- openrisc_softmmu_ss.add(files (' machine.c' ))
19
+ openrisc_softmmu_ss.add(files (
20
+ ' interrupt.c' ,
21
+ ' machine.c' ,
22
+ ))
21
23
22
24
target_arch += {' openrisc' : openrisc_ss}
23
25
target_softmmu_arch += {' openrisc' : openrisc_softmmu_ss}
You can’t perform that action at this time.
0 commit comments