mac_newworld: use object link to pass OpenPIC object to macio
commitdda12e9a6f6ffcfac2642c11a1afb27af877e2c9
authorMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Wed, 28 Feb 2018 20:32:41 +0000 (28 20:32 +0000)
committerDavid Gibson <david@gibson.dropbear.id.au>
Tue, 6 Mar 2018 02:16:29 +0000 (6 13:16 +1100)
tree19fbb70819dd91df0669f2ee56149bee03ef6910
parentf7bd7941d8c0478c123603fb4958bdbc25bdaf9a
mac_newworld: use object link to pass OpenPIC object to macio

Also switch macio_newworld_realize() over to use it rather than using the pic_mem
memory region directly.

Now that both Old World and New World macio devices no longer make use of the
pic_mem memory region directly, we can remove it.

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
hw/misc/macio/macio.c
hw/ppc/mac_newworld.c
include/hw/misc/macio/macio.h