Hello,

Currently the interrupt presenters of the sPAPR and PowerNV machines
are stored directly under PowerPCCPU which can be problematic as this
model is shared by all PPC machines.

The following patches move the interrupt presenters under the CPU
machine_data pointer which is a private field of the CPU that the
machine can use of its own needs.

To be applied on top of Thomas -std=gnu99 patchset.

Thanks,

C. 

Cédric Le Goater (4):
  xive: add a get_tctx() method to the XiveRouter
  ppc/pnv: introduce a CPU machine_data
  spapr: move the interrupt presenters under machine_data
  ppc: remove the interrupt presenters from under PowerPCCPU

 include/hw/ppc/pnv_core.h       |  9 ++++++
 include/hw/ppc/spapr_cpu_core.h |  2 ++
 include/hw/ppc/xive.h           | 57 +++++++++++++++++----------------
 target/ppc/cpu.h                |  9 ------
 hw/intc/spapr_xive.c            |  9 ++++++
 hw/intc/xics_spapr.c            | 11 ++++---
 hw/intc/xive.c                  | 16 +++++----
 hw/ppc/pnv.c                    |  7 ++--
 hw/ppc/pnv_core.c               | 12 ++++++-
 hw/ppc/spapr.c                  |  2 +-
 hw/ppc/spapr_cpu_core.c         |  8 ++---
 hw/ppc/spapr_irq.c              | 17 ++++++----
 12 files changed, 95 insertions(+), 64 deletions(-)

-- 
2.20.1


Reply via email to