xics: pass appropriate types to realize() handlers.
commit100f738850639a108d6767316ce4dcc1d1ea4ae4
authorGreg Kurz <groug@kaod.org>
Thu, 8 Jun 2017 13:42:50 +0000 (8 15:42 +0200)
committerDavid Gibson <david@gibson.dropbear.id.au>
Fri, 9 Jun 2017 02:12:34 +0000 (9 12:12 +1000)
tree93f9e62c7818d3f2437ae2b9c1d7dd28407d8aa8
parentad265631c0a0addc06ec3c4f133e746f4dcc872a
xics: pass appropriate types to realize() handlers.

It makes more sense to pass an IPCState * to handlers of ICPStateClass
instead of a DeviceState *, if only to benefit from compile time type
checking. The same goes with ICSStateClass.

While here, we also change the declaration of ICPStateClass in xics.h
for consistency.

Signed-off-by: Greg Kurz <groug@kaod.org>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
hw/intc/xics.c
hw/intc/xics_kvm.c
hw/intc/xics_pnv.c
include/hw/ppc/xics.h