From: Philippe Mathieu-Daudé Date: Mon, 24 Jun 2019 15:20:37 +0000 (+0200) Subject: hw/misc/empty_slot: Lower address space priority X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=6c339493c8dbb709c98f471144eebf74c4cca1ad;p=qemu.git hw/misc/empty_slot: Lower address space priority Empty slots model RAZ/WI access on a bus. Since we can still (hot) plug devices on the bus, lower the slot priority, so device added later is accessed first. Signed-off-by: Philippe Mathieu-Daudé Acked-by: Artyom Tarasenko Message-Id: <20200510152840.13558-3-f4bug@amsat.org> --- diff --git a/hw/core/empty_slot.c b/hw/core/empty_slot.c index 3ba450e1ca..5ab426e965 100644 --- a/hw/core/empty_slot.c +++ b/hw/core/empty_slot.c @@ -67,7 +67,7 @@ void empty_slot_init(hwaddr addr, uint64_t slot_size) qdev_init_nofail(dev); - sysbus_mmio_map(s, 0, addr); + sysbus_mmio_map_overlap(s, 0, addr, -10000); } }