OSDN Git Service

ppc/xics: simplify the cpu_setup() handler
authorCédric Le Goater <clg@kaod.org>
Mon, 27 Feb 2017 14:29:23 +0000 (15:29 +0100)
committerDavid Gibson <david@gibson.dropbear.id.au>
Wed, 1 Mar 2017 00:23:39 +0000 (11:23 +1100)
commitbf50860d1b3652e480b4efef9856afa428c3d8d4
treef15be721e5fcdf8b90f8c9dd379ee259d79a29e2
parent729f8a4f4876107fdc56a0b80414368ee89afcd1
ppc/xics: simplify the cpu_setup() handler

The cpu_setup() handler currently takes a 'XICSState *' argument to
grab the kernel ICP file descriptor. This interface can be simplified
by using the 'xics' backlink of the ICP object.

This change is also required by subsequent patches which makes use of
the QOM interface for XICS.

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