diff options
author | Richard Henderson | 2019-03-23 02:38:42 +0100 |
---|---|---|
committer | Richard Henderson | 2019-06-10 16:03:42 +0200 |
commit | 5a7330b35cabc9e2fd3a8577b7004b63af8c57f3 (patch) | |
tree | 337ddcc69d9c329bb93fa483313a63ce1b0ee3ed /hw/mips/mips_int.c | |
parent | target/microblaze: Use env_cpu, env_archcpu (diff) | |
download | qemu-5a7330b35cabc9e2fd3a8577b7004b63af8c57f3.tar.gz qemu-5a7330b35cabc9e2fd3a8577b7004b63af8c57f3.tar.xz qemu-5a7330b35cabc9e2fd3a8577b7004b63af8c57f3.zip |
target/mips: Use env_cpu, env_archcpu
Cleanup in the boilerplate that each target must define.
Replace mips_env_get_cpu with env_archcpu. The combination
CPU(mips_env_get_cpu) should have used ENV_GET_CPU to begin;
use env_cpu now.
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'hw/mips/mips_int.c')
-rw-r--r-- | hw/mips/mips_int.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/mips/mips_int.c b/hw/mips/mips_int.c index 5ddeb15848..f899f6ceb3 100644 --- a/hw/mips/mips_int.c +++ b/hw/mips/mips_int.c @@ -76,7 +76,7 @@ void cpu_mips_irq_init_cpu(MIPSCPU *cpu) qemu_irq *qi; int i; - qi = qemu_allocate_irqs(cpu_mips_irq_request, mips_env_get_cpu(env), 8); + qi = qemu_allocate_irqs(cpu_mips_irq_request, env_archcpu(env), 8); for (i = 0; i < 8; i++) { env->irq[i] = qi[i]; } |