OSDN Git Service

ppc/xics: introduce an icp_create() helper
authorCédric Le Goater <clg@kaod.org>
Fri, 1 Dec 2017 16:06:00 +0000 (17:06 +0100)
committerDavid Gibson <david@gibson.dropbear.id.au>
Thu, 14 Dec 2017 22:49:24 +0000 (09:49 +1100)
commit4f7a47beebd6d37861d08c81941be1b33a0ae627
treef76c0b3764e6f92a3020ea4bb84bef31922eb51e
parent3fe4f0fc8530e9411819f02accf2d17c128061b0
ppc/xics: introduce an icp_create() helper

The sPAPR and the PowerNV core objects create the interrupt presenter
object of the CPUs in a very similar way. Let's provide a common
routine in which we use the presenter 'type' as a child identifier.

Signed-off-by: Cédric Le Goater <clg@kaod.org>
Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
Reviewed-by: Greg Kurz <groug@kaod.org>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
hw/intc/xics.c
hw/ppc/pnv_core.c
hw/ppc/spapr_cpu_core.c
include/hw/ppc/xics.h