mbox series

[0/6] target/mips: Convert legacy qemu_allocate_irqs() to qemu_init_irq()

Message ID 20250121161817.33654-1-philmd@linaro.org
Headers show
Series target/mips: Convert legacy qemu_allocate_irqs() to qemu_init_irq() | expand

Message

Philippe Mathieu-Daudé Jan. 21, 2025, 4:18 p.m. UTC
IRQ cleanup in bonito64 in order to remove legacy qemu_allocate_irqs
call in target/mips/.

Philippe Mathieu-Daudé (6):
  hw/pci-host/bonito: Expose output IRQ as QDev GPIO
  target/mips: Create clock *after* accelerator vCPU is realized
  target/mips: Initialize CPU-specific timer/IRQs once in DeviceRealize
  target/mips: Pass env to cpu_mips_clock_init()
  target/mips: Move CPU timer from hw/mips/ to target/mips/system/
  target/mips: Allocate CPU IRQs within CPUMIPSState

 include/hw/mips/mips.h                        |  2 +-
 target/mips/cpu.h                             |  5 ++-
 target/mips/internal.h                        |  3 ++
 hw/intc/mips_gic.c                            |  4 +--
 hw/mips/cps.c                                 |  4 ---
 hw/mips/fuloong2e.c                           |  8 ++---
 hw/mips/jazz.c                                | 10 ++----
 hw/mips/loongson3_virt.c                      |  8 ++---
 hw/mips/malta.c                               |  8 ++---
 hw/mips/mipssim.c                             |  8 ++---
 hw/pci-host/bonito.c                          | 14 ++++----
 target/mips/cpu.c                             | 33 +++++++++++--------
 target/mips/system/cp0_timer.c                |  8 ++---
 .../mips/system/interrupts.c                  | 11 ++-----
 hw/mips/meson.build                           |  2 +-
 target/mips/system/meson.build                |  1 +
 16 files changed, 53 insertions(+), 76 deletions(-)
 rename hw/mips/mips_int.c => target/mips/system/interrupts.c (90%)

Comments

Philippe Mathieu-Daudé Jan. 21, 2025, 4:42 p.m. UTC | #1
On 21/1/25 17:18, Philippe Mathieu-Daudé wrote:
> IRQ cleanup in bonito64 in order to remove legacy qemu_allocate_irqs
> call in target/mips/.
> 
> Philippe Mathieu-Daudé (6):
>    hw/pci-host/bonito: Expose output IRQ as QDev GPIO
>    target/mips: Create clock *after* accelerator vCPU is realized
>    target/mips: Initialize CPU-specific timer/IRQs once in DeviceRealize
>    target/mips: Pass env to cpu_mips_clock_init()
>    target/mips: Move CPU timer from hw/mips/ to target/mips/system/
>    target/mips: Allocate CPU IRQs within CPUMIPSState

Based-on: <20250121155526.29982-2-philmd@linaro.org>
           "hw/irq: Introduce qemu_init_irqs() helper"