summaryrefslogtreecommitdiffstats
path: root/hw/ppc/ppc440_uc.c
diff options
context:
space:
mode:
authorBALATON Zoltan2018-03-02 22:43:23 +0100
committerDavid Gibson2018-03-06 03:16:29 +0100
commitff22e0eb259af531a75795c472beb5f1ff006679 (patch)
treed10e18ebeb7d5da8cb6aff0910c825cdb73a84e1 /hw/ppc/ppc440_uc.c
parentspapr: fix missing CPU core nodes in DT when running with TCG (diff)
downloadqemu-ff22e0eb259af531a75795c472beb5f1ff006679.tar.gz
qemu-ff22e0eb259af531a75795c472beb5f1ff006679.tar.xz
qemu-ff22e0eb259af531a75795c472beb5f1ff006679.zip
ppc440_uc: Fix unintialized variable warning with older gcc
Signed-off-by: BALATON Zoltan <balaton@eik.bme.hu> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'hw/ppc/ppc440_uc.c')
-rw-r--r--hw/ppc/ppc440_uc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/hw/ppc/ppc440_uc.c b/hw/ppc/ppc440_uc.c
index 4e2523a64f..976ab2b5d8 100644
--- a/hw/ppc/ppc440_uc.c
+++ b/hw/ppc/ppc440_uc.c
@@ -1050,6 +1050,9 @@ static void ppc460ex_pcie_realize(DeviceState *dev, Error **errp)
case DCRN_PCIE1_BASE:
id = 1;
break;
+ default:
+ error_setg(errp, "invalid PCIe DCRN base");
+ return;
}
snprintf(buf, sizeof(buf), "pcie%d-io", id);
memory_region_init(&s->iomem, OBJECT(s), buf, UINT64_MAX);