[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-ppc] [PULL 02/30] ppc440_uc: Fix unintialized variable warning wit
From: |
David Gibson |
Subject: |
[Qemu-ppc] [PULL 02/30] ppc440_uc: Fix unintialized variable warning with older gcc |
Date: |
Tue, 6 Mar 2018 15:01:26 +1100 |
From: BALATON Zoltan <address@hidden>
Signed-off-by: BALATON Zoltan <address@hidden>
Signed-off-by: David Gibson <address@hidden>
---
hw/ppc/ppc440_uc.c | 3 +++
1 file changed, 3 insertions(+)
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);
--
2.14.3
- [Qemu-ppc] [PULL 00/30] ppc-for-2.12 queue 20180306, David Gibson, 2018/03/05
- [Qemu-ppc] [PULL 01/30] spapr: fix missing CPU core nodes in DT when running with TCG, David Gibson, 2018/03/05
- [Qemu-ppc] [PULL 02/30] ppc440_uc: Fix unintialized variable warning with older gcc,
David Gibson <=
- [Qemu-ppc] [PULL 09/30] macio: embed DBDMA device directly within macio, David Gibson, 2018/03/05
- [Qemu-ppc] [PULL 07/30] spapr: register dummy ICPs later, David Gibson, 2018/03/05
- [Qemu-ppc] [PULL 15/30] mac_oldworld: use object link to pass heathrow PIC object to macio, David Gibson, 2018/03/05
- [Qemu-ppc] [PULL 03/30] ppc440: Add emulation of plb-pcix controller found in some 440 SoCs, David Gibson, 2018/03/05
- [Qemu-ppc] [PULL 08/30] spapr: harden code that depends on VSMT, David Gibson, 2018/03/05
- [Qemu-ppc] [PULL 04/30] roms: Added git submodule for u-boot-sam460 (firmware for sam460ex), David Gibson, 2018/03/05
- [Qemu-ppc] [PULL 12/30] heathrow: convert to trace-events, David Gibson, 2018/03/05
- [Qemu-ppc] [PULL 18/30] mac_newworld: use object link to pass OpenPIC object to macio, David Gibson, 2018/03/05
- [Qemu-ppc] [PULL 16/30] openpic: move KVM-specific declarations into separate openpic_kvm.h file, David Gibson, 2018/03/05
- [Qemu-ppc] [PULL 13/30] heathrow: change heathrow_pic_init() to return the heathrow device, David Gibson, 2018/03/05