Re: [PATCH v2 17/19] hw/timer/arm_timer: QDev'ify ARM_TIMER

2023-07-24 Thread Peter Maydell
On Tue, 4 Jul 2023 at 15:51, Philippe Mathieu-Daudé wrote: > > Introduce the ARM_TIMER sysbus device, exposing one output IRQ > and a single MMIO region. > > arm_timer_new() is converted as QOM instance init()/finalize() > handlers. Note in arm_timer_finalize() we release a ptimer handle > which w

[PATCH v2 17/19] hw/timer/arm_timer: QDev'ify ARM_TIMER

2023-07-04 Thread Philippe Mathieu-Daudé
Introduce the ARM_TIMER sysbus device, exposing one output IRQ and a single MMIO region. arm_timer_new() is converted as QOM instance init()/finalize() handlers. Note in arm_timer_finalize() we release a ptimer handle which was previously leaked. ArmTimer is directly embedded into SP804Timer/Inte