diff options
| author | Philippe Mathieu-Daudé <philmd@linaro.org> | 2025-01-21 13:16:26 +0100 |
|---|---|---|
| committer | Philippe Mathieu-Daudé <philmd@linaro.org> | 2025-03-06 15:46:18 +0100 |
| commit | edee3da2e62ffa741083e1caa78203f91a7f1a87 (patch) | |
| tree | 4efa725acdf51bac1e9cd46101cb323a16c265d2 /target/rx/cpu.c | |
| parent | a770b10bafc3e67b16c258167e15f228298c2d35 (diff) | |
| download | focaccia-qemu-edee3da2e62ffa741083e1caa78203f91a7f1a87.tar.gz focaccia-qemu-edee3da2e62ffa741083e1caa78203f91a7f1a87.zip | |
target/rx: Ensure not being build on user emulation
Currently only system emulation is supported. Assert no target code is built for user emulation. Remove #ifdef'ry since more work is required before being able to emulate a user process. Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20250121142341.17001-3-philmd@linaro.org>
Diffstat (limited to 'target/rx/cpu.c')
| -rw-r--r-- | target/rx/cpu.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/target/rx/cpu.c b/target/rx/cpu.c index 7d5fcbf76a..17ede51cd1 100644 --- a/target/rx/cpu.c +++ b/target/rx/cpu.c @@ -192,13 +192,11 @@ static void rx_cpu_init(Object *obj) qdev_init_gpio_in(DEVICE(cpu), rx_cpu_set_irq, 2); } -#ifndef CONFIG_USER_ONLY #include "hw/core/sysemu-cpu-ops.h" static const struct SysemuCPUOps rx_sysemu_ops = { .get_phys_page_debug = rx_cpu_get_phys_page_debug, }; -#endif #include "accel/tcg/cpu-ops.h" @@ -209,11 +207,9 @@ static const TCGCPUOps rx_tcg_ops = { .restore_state_to_opc = rx_restore_state_to_opc, .tlb_fill = rx_cpu_tlb_fill, -#ifndef CONFIG_USER_ONLY .cpu_exec_interrupt = rx_cpu_exec_interrupt, .cpu_exec_halt = rx_cpu_has_work, .do_interrupt = rx_cpu_do_interrupt, -#endif /* !CONFIG_USER_ONLY */ }; static void rx_cpu_class_init(ObjectClass *klass, void *data) @@ -235,9 +231,7 @@ static void rx_cpu_class_init(ObjectClass *klass, void *data) cc->set_pc = rx_cpu_set_pc; cc->get_pc = rx_cpu_get_pc; -#ifndef CONFIG_USER_ONLY cc->sysemu_ops = &rx_sysemu_ops; -#endif cc->gdb_read_register = rx_cpu_gdb_read_register; cc->gdb_write_register = rx_cpu_gdb_write_register; cc->disas_set_info = rx_cpu_disas_set_info; |