1f46379 loader: don't perform overlapping address check for memory region ROM images

1 file Authored by Mark Cave-Ayland 5 years ago, Committed by Michael Roth 5 years ago,
    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>
    (cherry picked from commit ca316c11526a1bc221fb542bdce6bac7238dde69)
    Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
    
        
file modified
+11 -9