"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "hw/ppc/e500plat.c" between
qemu-6.0.0-rc1.tar.xz and qemu-6.0.0-rc2.tar.xz

About: QEMU is a generic machine/processor emulator and virtualizer. Release candidate.

e500plat.c  (qemu-6.0.0-rc1.tar.xz):e500plat.c  (qemu-6.0.0-rc2.tar.xz)
skipping to change at line 51 skipping to change at line 51
ppce500_init(machine); ppce500_init(machine);
} }
static void e500plat_machine_device_plug_cb(HotplugHandler *hotplug_dev, static void e500plat_machine_device_plug_cb(HotplugHandler *hotplug_dev,
DeviceState *dev, Error **errp) DeviceState *dev, Error **errp)
{ {
PPCE500MachineState *pms = PPCE500_MACHINE(hotplug_dev); PPCE500MachineState *pms = PPCE500_MACHINE(hotplug_dev);
if (pms->pbus_dev) { if (pms->pbus_dev) {
if (object_dynamic_cast(OBJECT(dev), TYPE_SYS_BUS_DEVICE)) { MachineClass *mc = MACHINE_GET_CLASS(pms);
if (device_is_dynamic_sysbus(mc, dev)) {
platform_bus_link_device(pms->pbus_dev, SYS_BUS_DEVICE(dev)); platform_bus_link_device(pms->pbus_dev, SYS_BUS_DEVICE(dev));
} }
} }
} }
static static
HotplugHandler *e500plat_machine_get_hotpug_handler(MachineState *machine, HotplugHandler *e500plat_machine_get_hotpug_handler(MachineState *machine,
DeviceState *dev) DeviceState *dev)
{ {
if (object_dynamic_cast(OBJECT(dev), TYPE_SYS_BUS_DEVICE)) { MachineClass *mc = MACHINE_GET_CLASS(machine);
if (device_is_dynamic_sysbus(mc, dev)) {
return HOTPLUG_HANDLER(machine); return HOTPLUG_HANDLER(machine);
} }
return NULL; return NULL;
} }
#define TYPE_E500PLAT_MACHINE MACHINE_TYPE_NAME("ppce500") #define TYPE_E500PLAT_MACHINE MACHINE_TYPE_NAME("ppce500")
static void e500plat_machine_class_init(ObjectClass *oc, void *data) static void e500plat_machine_class_init(ObjectClass *oc, void *data)
{ {
 End of changes. 2 change blocks. 
2 lines changed or deleted 6 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)