File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -82,12 +82,12 @@ static bool superh_io_recompile_replay_branch(CPUState *cs,
82
82
}
83
83
return false;
84
84
}
85
- #endif
86
85
87
86
static bool superh_cpu_has_work (CPUState * cs )
88
87
{
89
88
return cs -> interrupt_request & CPU_INTERRUPT_HARD ;
90
89
}
90
+ #endif /* !CONFIG_USER_ONLY */
91
91
92
92
static int sh4_cpu_mmu_index (CPUState * cs , bool ifetch )
93
93
{
@@ -254,6 +254,7 @@ static const VMStateDescription vmstate_sh_cpu = {
254
254
#include "hw/core/sysemu-cpu-ops.h"
255
255
256
256
static const struct SysemuCPUOps sh4_sysemu_ops = {
257
+ .has_work = superh_cpu_has_work ,
257
258
.get_phys_page_debug = superh_cpu_get_phys_page_debug ,
258
259
};
259
260
#endif
@@ -290,7 +291,6 @@ static void superh_cpu_class_init(ObjectClass *oc, void *data)
290
291
& scc -> parent_phases );
291
292
292
293
cc -> class_by_name = superh_cpu_class_by_name ;
293
- cc -> has_work = superh_cpu_has_work ;
294
294
cc -> mmu_index = sh4_cpu_mmu_index ;
295
295
cc -> dump_state = superh_cpu_dump_state ;
296
296
cc -> set_pc = superh_cpu_set_pc ;
You can’t perform that action at this time.
0 commit comments