qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/4] hw: Minor simplifications using proper QOM getter macros
@ 2023-05-23  6:12 Philippe Mathieu-Daudé
  2023-05-23  6:12 ` [PATCH 1/4] hw/core/cpu: Simplify realize() using MACHINE_GET_CLASS() macro Philippe Mathieu-Daudé
                   ` (4 more replies)
  0 siblings, 5 replies; 13+ messages in thread
From: Philippe Mathieu-Daudé @ 2023-05-23  6:12 UTC (permalink / raw)
  To: qemu-devel
  Cc: Paolo Bonzini, Sergio Lopez, Michael S. Tsirkin, Eduardo Habkost,
	qemu-trivial, Richard Henderson, Gerd Hoffmann, Marcel Apfelbaum,
	Philippe Mathieu-Daudé

Enforce QOM style. Besides, using the proper QOM macros
slightly simplifies the code.

Philippe Mathieu-Daudé (4):
  hw/core/cpu: Simplify realize() using MACHINE_GET_CLASS() macro
  hw/i386/microvm: Simplify using object_dynamic_cast()
  hw/pci/pci: Simplify pci_bar_address() using MACHINE_GET_CLASS() macro
  hw/usb/hcd-ehci-pci: Simplify using DEVICE_GET_CLASS() macro

 hw/core/cpu-common.c  | 3 +--
 hw/i386/microvm.c     | 3 +--
 hw/pci/pci.c          | 4 +---
 hw/usb/hcd-ehci-pci.c | 2 +-
 4 files changed, 4 insertions(+), 8 deletions(-)

-- 
2.38.1



^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2023-06-23  7:00 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-05-23  6:12 [PATCH 0/4] hw: Minor simplifications using proper QOM getter macros Philippe Mathieu-Daudé
2023-05-23  6:12 ` [PATCH 1/4] hw/core/cpu: Simplify realize() using MACHINE_GET_CLASS() macro Philippe Mathieu-Daudé
2023-05-23 18:22   ` Richard Henderson
2023-05-23  6:12 ` [PATCH 2/4] hw/i386/microvm: Simplify using object_dynamic_cast() Philippe Mathieu-Daudé
2023-05-23 18:22   ` Richard Henderson
2023-05-26  8:35   ` Sergio Lopez
2023-05-23  6:12 ` [PATCH 3/4] hw/pci/pci: Simplify pci_bar_address() using MACHINE_GET_CLASS() macro Philippe Mathieu-Daudé
2023-05-23 18:23   ` Richard Henderson
2023-05-23  6:12 ` [PATCH 4/4] hw/usb/hcd-ehci-pci: Simplify using DEVICE_GET_CLASS() macro Philippe Mathieu-Daudé
2023-05-23 18:24   ` Richard Henderson
2023-06-08 18:41 ` [PATCH 0/4] hw: Minor simplifications using proper QOM getter macros Michael Tokarev
2023-06-22 20:33   ` Michael S. Tsirkin
2023-06-23  7:00     ` Michael Tokarev

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).