Received: from eggs.gnu.org ([2001:4830:134:3::10]:33948) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V3fh1-00005y-06 for qemu-devel@nongnu.org; Mon, 29 Jul 2013 01:08:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V3fgz-0001eS-UA for qemu-devel@nongnu.org; Mon, 29 Jul 2013 01:08:22 -0400 Received: from hall.aurel32.net ([2001:470:1f0b:4a8::1]:56495) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V3fgz-0001eN-N1 for qemu-devel@nongnu.org; Mon, 29 Jul 2013 01:08:21 -0400 From: Aurelien Jarno Date: Mon, 29 Jul 2013 07:08:11 +0200 Message-Id: <1375074491-5905-1-git-send-email-aurelien@aurel32.net> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: [Qemu-devel] [PATCH] mips_malta: fix copy of the 0x1fc00000 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Paul Burton , Leon Alrae , =?UTF-8?q?Andreas=20F=C3=A4rber?= , Aurelien Jarno 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 Cc: Paul Burton Cc: Leon Alrae Signed-off-by: Aurelien Jarno --- hw/mips/mips_malta.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/mips/mips_malta.c b/hw/mips/mips_malta.c index 2dc66f7..1589b59 100644 --- a/hw/mips/mips_malta.c +++ b/hw/mips/mips_malta.c @@ -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); -- 1.7.10.4