loader: don't perform overlapping address check for memory region ROM images
commitca316c11526a1bc221fb542bdce6bac7238dde69
authorMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Fri, 23 Feb 2018 11:10:17 +0000 (23 11:10 +0000)
committerMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Tue, 27 Feb 2018 18:57:14 +0000 (27 18:57 +0000)
tree743c85879097486ab1c5a200e7577267cbaa9c4c
parent3ec7b5d819da9245dd37a6f7e7d150f064cf584c
loader: don't perform overlapping address check for memory region ROM images

All memory region ROM images have a base address of 0 which causes the overlapping
address check to fail if more than one memory region ROM image is present, or an
existing ROM image is loaded at address 0.

Make sure that we ignore the overlapping address check in
rom_check_and_register_reset() if this is a memory region ROM image. In particular
this fixes the "rom: requested regions overlap" error on startup when trying to
run qemu-system-sparc with a -kernel image since commit 7497638642: "tcx: switch to
load_image_mr() and remove prom_addr hack".

Suggested-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
hw/core/loader.c