[PATCH 0/8] hw/arm: Cleanups around QOM style

Philippe Mathieu-Daudé posted 8 patches 1 year, 2 months ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20230220115114.25237-1-philmd@linaro.org
Maintainers: Peter Maydell <peter.maydell@linaro.org>, "Marc-André Lureau" <marcandre.lureau@redhat.com>, Paolo Bonzini <pbonzini@redhat.com>, "Edgar E. Iglesias" <edgar.iglesias@gmail.com>, Alistair Francis <alistair@alistair23.me>
hw/arm/mps2.c                            | 41 ++++++++++++++++--------
hw/arm/stellaris.c                       | 11 +++++--
hw/char/pl011.c                          | 17 ++++++++++
hw/char/xilinx_uartlite.c                |  4 +--
hw/gpio/max7310.c                        |  5 ++-
hw/intc/armv7m_nvic.c                    |  6 ++--
hw/microblaze/petalogix_s3adsp1800_mmu.c |  7 ++--
include/hw/char/cmsdk-apb-uart.h         | 34 --------------------
include/hw/char/pl011.h                  | 36 +--------------------
include/hw/char/xilinx_uartlite.h        | 22 ++-----------
include/hw/timer/cmsdk-apb-timer.h       |  1 -
11 files changed, 67 insertions(+), 117 deletions(-)
[PATCH 0/8] hw/arm: Cleanups around QOM style
Posted by Philippe Mathieu-Daudé 1 year, 2 months ago
- Reduce "hw/qdev-properties.h" inclusions
- Open-code various QDev helpers used few times
- Use QOM cast macro when relevant

Philippe Mathieu-Daudé (8):
  hw/gpio/max7310: Simplify max7310_realize()
  hw/char/pl011: Un-inline pl011_create()
  hw/char/pl011: Open-code pl011_luminary_create()
  hw/char/xilinx_uartlite: Expose XILINX_UARTLITE QOM type
  hw/char/xilinx_uartlite: Open-code xilinx_uartlite_create()
  hw/char/cmsdk-apb-uart: Open-code cmsdk_apb_uart_create()
  hw/timer/cmsdk-apb-timer: Remove unused 'qdev-properties.h' header
  hw/intc/armv7m_nvic: Use QOM cast CPU() macro

 hw/arm/mps2.c                            | 41 ++++++++++++++++--------
 hw/arm/stellaris.c                       | 11 +++++--
 hw/char/pl011.c                          | 17 ++++++++++
 hw/char/xilinx_uartlite.c                |  4 +--
 hw/gpio/max7310.c                        |  5 ++-
 hw/intc/armv7m_nvic.c                    |  6 ++--
 hw/microblaze/petalogix_s3adsp1800_mmu.c |  7 ++--
 include/hw/char/cmsdk-apb-uart.h         | 34 --------------------
 include/hw/char/pl011.h                  | 36 +--------------------
 include/hw/char/xilinx_uartlite.h        | 22 ++-----------
 include/hw/timer/cmsdk-apb-timer.h       |  1 -
 11 files changed, 67 insertions(+), 117 deletions(-)

-- 
2.38.1


Re: [PATCH 0/8] hw/arm: Cleanups around QOM style
Posted by Peter Maydell 1 year, 2 months ago
On Mon, 20 Feb 2023 at 11:51, Philippe Mathieu-Daudé <philmd@linaro.org> wrote:
>
> - Reduce "hw/qdev-properties.h" inclusions
> - Open-code various QDev helpers used few times
> - Use QOM cast macro when relevant
>



Applied to target-arm.next, thanks.

-- PMM