On Fri, 12 Mar 2021 at 17:29, Peter Maydell <peter.mayd...@linaro.org> wrote: > This series handles the possibility of aliasing by iterating through > the whole FlatView of the CPU's address space checking for other > mappings of the MemoryRegion corresponding to the location of the > vector table. If we find any aliases we use rom_ptr() to see if the > ROM blob loader has any data there.
The other possible place we could put this code would be to put it into rom_ptr() itself. You'd have to change the callsites to pass an AddressSpace to rom_ptr(), but really we ought to do that anyway, because a Rom has an AddressSpace that we should be checking as well as the address. -- PMM