In hw/ppc/Kconfig :
config POWERNV
...
select XICS
select XIVE
config PSERIES
...
select XICS_SPAPR
select XIVE_SPAPR
and in hw/intc/meson.build :
specific_ss.add(when: 'CONFIG_POWERNV', if_true: files('xics_pnv.c',
'pnv_xive.c'))
...
specific_ss.add(when: 'CONFIG_XICS_SPAPR', if_true: files('xics_spapr.c'))
specific_ss.add(when: 'CONFIG_XIVE_SPAPR', if_true: files('spapr_xive.c'))
...
Couldn't we simply select XICS and XIVE in the PSERIES machine and
compile 'xics_spapr.c' and 'spapr_xive.c' when CONFIG_PSERIES is
defined ? This to be in sync with the POWERNV machine.
or introduce 'CONFIG_XICS_PNV 'CONFIG_XIVE_PNV' ?