summaryrefslogtreecommitdiffstats
path: root/hw/unicore32/puv3.c
diff options
context:
space:
mode:
authorRichard Henderson2019-03-23 03:46:31 +0100
committerRichard Henderson2019-06-10 16:03:42 +0200
commit31266e68d2921d2a2f73176349e94e28842fadd8 (patch)
tree2c51849ef73cee2969dd79f9d6ea675d7bef38b5 /hw/unicore32/puv3.c
parenttarget/tricore: Use env_cpu (diff)
downloadqemu-31266e68d2921d2a2f73176349e94e28842fadd8.tar.gz
qemu-31266e68d2921d2a2f73176349e94e28842fadd8.tar.xz
qemu-31266e68d2921d2a2f73176349e94e28842fadd8.zip
target/unicore32: Use env_cpu, env_archcpu
Cleanup in the boilerplate that each target must define. Replace uc32_env_get_cpu with env_archcpu. The combination CPU(uc32_env_get_cpu) should have used ENV_GET_CPU to begin; use env_cpu now. Reviewed-by: Alistair Francis <alistair.francis@wdc.com> Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'hw/unicore32/puv3.c')
-rw-r--r--hw/unicore32/puv3.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/unicore32/puv3.c b/hw/unicore32/puv3.c
index b42e600f74..132e6086ee 100644
--- a/hw/unicore32/puv3.c
+++ b/hw/unicore32/puv3.c
@@ -56,7 +56,7 @@ static void puv3_soc_init(CPUUniCore32State *env)
/* Initialize interrupt controller */
cpu_intc = qemu_allocate_irq(puv3_intc_cpu_handler,
- uc32_env_get_cpu(env), 0);
+ env_archcpu(env), 0);
dev = sysbus_create_simple("puv3_intc", PUV3_INTC_BASE, cpu_intc);
for (i = 0; i < PUV3_IRQS_NR; i++) {
irqs[i] = qdev_get_gpio_in(dev, i);