File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -777,11 +777,13 @@ static void sparc_restore_state_to_opc(CPUState *cs,
777
777
}
778
778
}
779
779
780
+ #ifndef CONFIG_USER_ONLY
780
781
static bool sparc_cpu_has_work (CPUState * cs )
781
782
{
782
783
return (cs -> interrupt_request & CPU_INTERRUPT_HARD ) &&
783
784
cpu_interrupts_enabled (cpu_env (cs ));
784
785
}
786
+ #endif /* !CONFIG_USER_ONLY */
785
787
786
788
static int sparc_cpu_mmu_index (CPUState * cs , bool ifetch )
787
789
{
@@ -988,6 +990,7 @@ static const Property sparc_cpu_properties[] = {
988
990
#include "hw/core/sysemu-cpu-ops.h"
989
991
990
992
static const struct SysemuCPUOps sparc_sysemu_ops = {
993
+ .has_work = sparc_cpu_has_work ,
991
994
.get_phys_page_debug = sparc_cpu_get_phys_page_debug ,
992
995
.legacy_vmsd = & vmstate_sparc_cpu ,
993
996
};
@@ -1029,7 +1032,6 @@ static void sparc_cpu_class_init(ObjectClass *oc, void *data)
1029
1032
1030
1033
cc -> class_by_name = sparc_cpu_class_by_name ;
1031
1034
cc -> parse_features = sparc_cpu_parse_features ;
1032
- cc -> has_work = sparc_cpu_has_work ;
1033
1035
cc -> mmu_index = sparc_cpu_mmu_index ;
1034
1036
cc -> dump_state = sparc_cpu_dump_state ;
1035
1037
#if !defined(TARGET_SPARC64 ) && !defined(CONFIG_USER_ONLY )
You can’t perform that action at this time.
0 commit comments