ppc/xics: remove set_nr_servers() handler from XICSStateClass
commit817bb6a4467366b6d1ecbb13a78450f91efd16bf
authorCédric Le Goater <clg@kaod.org>
Mon, 27 Feb 2017 14:29:11 +0000 (27 15:29 +0100)
committerDavid Gibson <david@gibson.dropbear.id.au>
Wed, 1 Mar 2017 00:23:39 +0000 (1 11:23 +1100)
tree3aa942285d4effbfb08781309e6c9bd75fa53bca
parent4e4169f7a22a47f1b03457390e105abcf8ebfcc2
ppc/xics: remove set_nr_servers() handler from XICSStateClass

Today, the ICP (Interrupt Controller Presenter) objects are created by
the 'nr_servers' property handler of the XICS object and a class
handler. They are realized in the XICS object realize routine.

Let's simplify the process by creating the ICP objects along with the
XICS object at the machine level.

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