mbox series

[RFC,v2,0/1] Replace 'qemu_irq_split' with 'TYPE_SPLIT_IRQ'

Message ID 20220321064435.126799-1-zongyuan.li@smartx.com (mailing list archive)
Headers show
Series Replace 'qemu_irq_split' with 'TYPE_SPLIT_IRQ' | expand

Message

Zongyuan Li March 21, 2022, 6:44 a.m. UTC
This is a WIP patch set trying to resolve

https://gitlab.com/qemu-project/qemu/-/issues/811

which will totally replace 'qemu_irq_split' with use 
QOM object 'TYPE_SPLIT_IRQ' device.

I just want to make sure I'm on the right way, so
only 'realview' module is modified.

Changes since v1:

1. Remove unnecessary headers realview.c
2. Rewrite the splitter helper function. I agree that previous valist
   implementation is too complicated, but keeping it will make code
   more readable. Or any other reason we need to write the code
   directly into the init function? If that is true, I will change that
3. Use 'qdev_*' rather than 'Object' directly

Thanks for reviewing.

Zongyuan Li (1):
  hw/arm/realview: replace 'qemu_split_irq' with 'TYPE_SPLIT_IRQ'

 hw/arm/realview.c | 41 ++++++++++++++++++++++++++++++++---------
 1 file changed, 32 insertions(+), 9 deletions(-)