qemu-e2k/hw/core
Mark Cave-Ayland be64d7776b sysbus: always allow explicit_ofw_unit_address() to override address generation
Some SysBusDevices either use sysbus_init_mmio() without
sysbus_mmio_map() or the first MMIO memory region doesn't represent the
bus address, causing a firmware device path with an invalid address to
be generated.

SysBusDeviceClass does provide a virtual explicit_ofw_unit_address()
method that can be used to override this process, but it was originally intended
only as as a fallback option meaning that any existing MMIO memory regions still
take priority whilst determining the firmware device address.

There is currently only one user of explicit_ofw_unit_address() and that
is the PCI expander bridge (PXB) device which has no MMIO/PIO resources
defined. This enables us to allow explicit_ofw_unit_address() to take
priority without affecting backwards compatibility, allowing the address
to be customised as required.

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Message-Id: <20180805112850.26063-2-mark.cave-ayland@ilande.co.uk>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Eduardo Habkost <ehabkost@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
2018-08-16 22:27:43 -03:00
..
bus.c
empty_slot.c
fw-path-provider.c
generic-loader.c loader: Implement .hex file loader 2018-08-16 14:05:28 +01:00
hotplug.c qdev: add HotplugHandler->post_plug() callback 2018-07-16 16:58:16 +02:00
irq.c
loader-fit.c
loader.c loader: Implement .hex file loader 2018-08-16 14:05:28 +01:00
machine.c machine: Fix coding style at machine_run_board_init() 2018-08-16 22:27:43 -03:00
Makefile.objs
nmi.c
null-machine.c
or-irq.c
platform-bus.c
ptimer.c
qdev-fw.c
qdev-properties-system.c
qdev-properties.c
qdev.c qdev: add HotplugHandler->post_plug() callback 2018-07-16 16:58:16 +02:00
register.c
reset.c
split-irq.c
stream.c
sysbus.c sysbus: always allow explicit_ofw_unit_address() to override address generation 2018-08-16 22:27:43 -03:00
uboot_image.h