RE: [PATCH] target/arm: Allow loading elf from aliased ROM regions

2019-12-01 Thread Jean-Hugues Deschênes
> No. This is a reset ordering problem. The CPU reset happens before the > 'rom blob loader' reset, so at this point the rom data (usually an ELF file > segment) has not been written into ram, and doing an > address_space_read() will just read zeroes. This is also why the aliasing > issue happens

[PATCH v2] target/arm: Allow loading elf from aliased ROM regions

2019-11-26 Thread Jean-Hugues Deschênes
With this patch, we allow loading a ROM image at an aliased address, when it is located in a memory region for which an alias exists. Changes since v1: - Removes unnecessary "else rom = NULL" clause after having verified mr. Signed-off-by: Jean-Hugues Deschenes --- target/arm/cpu.c | 31 +++

[PATCH] target/arm: Allow loading elf from aliased ROM regions

2019-11-25 Thread Jean-Hugues Deschênes
With this patch, we allow loading a ROM image at an aliased address, when it is located in a memory region for which an alias exists. Signed-off-by: Jean-Hugues Deschenes --- target/arm/cpu.c | 33 ++--- 1 file changed, 26 insertions(+), 7 deletions(-) diff --git a/t