mips_malta: fix copy of the 0x1fc00000
PATCH 1/1 mips_malta: fix copy of the 0x1fc00000
Copy the whole 0x1fe000000 region into 0x1fc00000, independently of the loaded BIOS size. This fix the MIPS make check tests.
Reported-by Andreas Färber <[email protected]>
Cc Paul Burton <[email protected]>
Cc Leon Alrae <[email protected]>
Signed-off-by Aurelien Jarno <[email protected]>
--- hw/mips/mips_malta.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
hw/mips/mips_malta.c +2 -2
@@ -1036,9 +1036,9 @@ void mips_malta_init(QEMUMachineInitArgs *args)*/ memory_region_init_ram (bios_copy,NULL ,"bios.1fc" ,BIOS_SIZE );if (!rom_copy (memory_region_get_ram_ptr (bios_copy), -FLASH_ADDRESS , bios_size)) { +FLASH_ADDRESS ,BIOS_SIZE )) {memcpy (memory_region_get_ram_ptr (bios_copy), -memory_region_get_ram_ptr (bios), bios_size); +memory_region_get_ram_ptr (bios),BIOS_SIZE ); }memory_region_set_readonly (bios_copy, true);memory_region_add_subregion (system_memory,RESET_ADDRESS , bios_copy);
Signature · 1 line
1.7.10.4
Am 29.07.2013 07:08, schrieb Aurelien Jarno:
Quoted 7 lines
Copy the whole
0x1fe000000region into0x1fc00000, independently of the loaded BIOS size. This fix the MIPS make check tests.Reported-by Andreas Färber <[email protected]>Cc Paul Burton <[email protected]>Cc Leon Alrae <[email protected]>Signed-off-by Aurelien Jarno <[email protected]>
Tested-by Andreas Färber <[email protected]>
Thanks for the quick fix!
Andreas
Signature · 2 lines
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg