Skip to content

Commit 52df41e

Browse files
committed
target/rx: 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 3810e17 commit 52df41e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

target/rx/cpu.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,7 @@ static void rx_cpu_init(Object *obj)
196196
#include "hw/core/sysemu-cpu-ops.h"
197197

198198
static const struct SysemuCPUOps rx_sysemu_ops = {
199+
.has_work = rx_cpu_has_work,
199200
.get_phys_page_debug = rx_cpu_get_phys_page_debug,
200201
};
201202

@@ -226,7 +227,6 @@ static void rx_cpu_class_init(ObjectClass *klass, void *data)
226227
&rcc->parent_phases);
227228

228229
cc->class_by_name = rx_cpu_class_by_name;
229-
cc->has_work = rx_cpu_has_work;
230230
cc->mmu_index = riscv_cpu_mmu_index;
231231
cc->dump_state = rx_cpu_dump_state;
232232
cc->set_pc = rx_cpu_set_pc;

0 commit comments

Comments
 (0)