[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 3/5] hw/mips/mips_int: Simplify cpu_mips_irq_init_cpu()
From: |
Aleksandar Markovic |
Subject: |
[PULL 3/5] hw/mips/mips_int: Simplify cpu_mips_irq_init_cpu() |
Date: |
Thu, 27 Feb 2020 14:27:34 +0100 |
From: Philippe Mathieu-Daudé <address@hidden>
Since commit d8ed887bdc, the cpu_mips_irq_request handler takes
a pointer to MIPSCPU in its opaque argument. Directly pass the
cpu pointer.
Reviewed-by: Aleksandar Markovic <address@hidden>
Signed-off-by: Philippe Mathieu-Daudé <address@hidden>
Signed-off-by: Aleksandar Markovic <address@hidden>
Message-Id: <address@hidden>
---
hw/mips/mips_int.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hw/mips/mips_int.c b/hw/mips/mips_int.c
index 863ed45..796730b 100644
--- a/hw/mips/mips_int.c
+++ b/hw/mips/mips_int.c
@@ -77,7 +77,7 @@ void cpu_mips_irq_init_cpu(MIPSCPU *cpu)
qemu_irq *qi;
int i;
- qi = qemu_allocate_irqs(cpu_mips_irq_request, env_archcpu(env), 8);
+ qi = qemu_allocate_irqs(cpu_mips_irq_request, cpu, 8);
for (i = 0; i < 8; i++) {
env->irq[i] = qi[i];
}
--
2.7.4
- [PULL 0/5] MIPS queue for February 27th, 2020, Aleksandar Markovic, 2020/02/27
- [PULL 5/5] tests/acceptance: Count multiple Tux logos displayed on framebuffer, Aleksandar Markovic, 2020/02/27
- [PULL 1/5] MAINTAINERS: Orphan MIPS KVM CPUs, Aleksandar Markovic, 2020/02/27
- [PULL 2/5] MAINTAINERS: Reactivate MIPS KVM CPUs, Aleksandar Markovic, 2020/02/27
- [PULL 3/5] hw/mips/mips_int: Simplify cpu_mips_irq_init_cpu(),
Aleksandar Markovic <=
- [PULL 4/5] hw/mips: Use memory_region_init_rom() with read-only regions, Aleksandar Markovic, 2020/02/27
- Re: [PULL 0/5] MIPS queue for February 27th, 2020, Peter Maydell, 2020/02/28