Skip to content

Commit f05d4d9

Browse files
committed
mips_malta: fix copy of the 0x1fc00000 region
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]> Tested-by: Andreas Färber <[email protected]> Cc: Paul Burton <[email protected]> Cc: Leon Alrae <[email protected]> Signed-off-by: Aurelien Jarno <[email protected]>
1 parent b0932e0 commit f05d4d9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

hw/mips/mips_malta.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1036,9 +1036,9 @@ void mips_malta_init(QEMUMachineInitArgs *args)
10361036
*/
10371037
memory_region_init_ram(bios_copy, NULL, "bios.1fc", BIOS_SIZE);
10381038
if (!rom_copy(memory_region_get_ram_ptr(bios_copy),
1039-
FLASH_ADDRESS, bios_size)) {
1039+
FLASH_ADDRESS, BIOS_SIZE)) {
10401040
memcpy(memory_region_get_ram_ptr(bios_copy),
1041-
memory_region_get_ram_ptr(bios), bios_size);
1041+
memory_region_get_ram_ptr(bios), BIOS_SIZE);
10421042
}
10431043
memory_region_set_readonly(bios_copy, true);
10441044
memory_region_add_subregion(system_memory, RESET_ADDRESS, bios_copy);

0 commit comments

Comments
 (0)