Skip to content

Commit d55ea95

Browse files
committed
target/tricore: Move has_work() from CPUClass to SysemuCPUOps
Signed-off-by: Philippe Mathieu-Daudé <[email protected]> Reviewed-by: Richard Henderson <[email protected]> Message-Id: <[email protected]>
1 parent 82f0f44 commit d55ea95

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

target/tricore/cpu.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,7 @@ static bool tricore_cpu_exec_interrupt(CPUState *cs, int interrupt_request)
165165
#include "hw/core/sysemu-cpu-ops.h"
166166

167167
static const struct SysemuCPUOps tricore_sysemu_ops = {
168+
.has_work = tricore_cpu_has_work,
168169
.get_phys_page_debug = tricore_cpu_get_phys_page_debug,
169170
};
170171

@@ -193,7 +194,6 @@ static void tricore_cpu_class_init(ObjectClass *c, void *data)
193194
resettable_class_set_parent_phases(rc, NULL, tricore_cpu_reset_hold, NULL,
194195
&mcc->parent_phases);
195196
cc->class_by_name = tricore_cpu_class_by_name;
196-
cc->has_work = tricore_cpu_has_work;
197197
cc->mmu_index = tricore_cpu_mmu_index;
198198

199199
cc->gdb_read_register = tricore_cpu_gdb_read_register;

0 commit comments

Comments
 (0)