aboutsummaryrefslogtreecommitdiff
path: root/hw/ppc
diff options
context:
space:
mode:
authorGreg Kurz <groug@kaod.org>2018-04-11 17:01:20 +0200
committerDavid Gibson <david@gibson.dropbear.id.au>2018-04-27 18:05:22 +1000
commitb2692d5fed8b0549d70426d75c9ad4734dc557c8 (patch)
tree5300a0b4ce0369adb39942527e209faa71936825 /hw/ppc
parente47f1d2786c3d01a7894a493aafe0efa6b64453c (diff)
downloadqemu-b2692d5fed8b0549d70426d75c9ad4734dc557c8.zip
qemu-b2692d5fed8b0549d70426d75c9ad4734dc557c8.tar.gz
qemu-b2692d5fed8b0549d70426d75c9ad4734dc557c8.tar.bz2
spapr: drop useless dynamic sysbus device sanity check
Since commit 7da79a167aa11, the machine class init function registers dynamic sysbus device types it supports. Passing an unsupported device type on the command line causes QEMU to exit with an error message just after machine init. It is hence not needed to do the same sanity check at machine reset. Signed-off-by: Greg Kurz <groug@kaod.org> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'hw/ppc')
-rw-r--r--hw/ppc/spapr.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/hw/ppc/spapr.c b/hw/ppc/spapr.c
index fc86ba6..d35a88c 100644
--- a/hw/ppc/spapr.c
+++ b/hw/ppc/spapr.c
@@ -1440,21 +1440,6 @@ void spapr_setup_hpt_and_vrma(sPAPRMachineState *spapr)
}
}
-static void find_unknown_sysbus_device(SysBusDevice *sbdev, void *opaque)
-{
- bool matched = false;
-
- if (object_dynamic_cast(OBJECT(sbdev), TYPE_SPAPR_PCI_HOST_BRIDGE)) {
- matched = true;
- }
-
- if (!matched) {
- error_report("Device %s is not supported by this machine yet.",
- qdev_fw_name(DEVICE(sbdev)));
- exit(1);
- }
-}
-
static int spapr_reset_drcs(Object *child, void *opaque)
{
sPAPRDRConnector *drc =
@@ -1478,9 +1463,6 @@ static void spapr_machine_reset(void)
void *fdt;
int rc;
- /* Check for unknown sysbus devices */
- foreach_dynamic_sysbus_device(find_unknown_sysbus_device, NULL);
-
spapr_caps_reset(spapr);
first_ppc_cpu = POWERPC_CPU(first_cpu);