aboutsummaryrefslogtreecommitdiff
path: root/target/nios2
diff options
context:
space:
mode:
authorRichard Henderson <richard.henderson@linaro.org>2023-09-13 17:36:27 -0700
committerRichard Henderson <richard.henderson@linaro.org>2023-10-04 11:03:54 -0700
commit8fa08d7ec7d8c36fc2c96bd135cb09c086b26a14 (patch)
tree03044a649b433ed87138b1203a612185164b72d0 /target/nios2
parentb77af26e973705e8fd96cff102fc978ee44043da (diff)
downloadqemu-8fa08d7ec7d8c36fc2c96bd135cb09c086b26a14.zip
qemu-8fa08d7ec7d8c36fc2c96bd135cb09c086b26a14.tar.gz
qemu-8fa08d7ec7d8c36fc2c96bd135cb09c086b26a14.tar.bz2
accel/tcg: Remove cpu_set_cpustate_pointers
This function is now empty, so remove it. In the case of m68k and tricore, this empties the class instance initfn, so remove those as well. Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'target/nios2')
-rw-r--r--target/nios2/cpu.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/target/nios2/cpu.c b/target/nios2/cpu.c
index 5989763..15e499f 100644
--- a/target/nios2/cpu.c
+++ b/target/nios2/cpu.c
@@ -113,11 +113,9 @@ static void iic_set_irq(void *opaque, int irq, int level)
static void nios2_cpu_initfn(Object *obj)
{
+#if !defined(CONFIG_USER_ONLY)
Nios2CPU *cpu = NIOS2_CPU(obj);
- cpu_set_cpustate_pointers(cpu);
-
-#if !defined(CONFIG_USER_ONLY)
mmu_init(&cpu->env);
#endif
}