* [Qemu-devel] [PATCH] mips_malta: fix copy of the 0x1fc00000
@ 2013-07-29 5:08 Aurelien Jarno
2013-07-29 5:12 ` Andreas Färber
0 siblings, 1 reply; 2+ messages in thread
From: Aurelien Jarno @ 2013-07-29 5:08 UTC (permalink / raw)
To: qemu-devel; +Cc: Paul Burton, Leon Alrae, Andreas Färber, 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 <afaerber@suse.de>
Cc: Paul Burton <paul.burton@imgtec.com>
Cc: Leon Alrae <leon.alrae@imgtec.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
---
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
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [Qemu-devel] [PATCH] mips_malta: fix copy of the 0x1fc00000
2013-07-29 5:08 [Qemu-devel] [PATCH] mips_malta: fix copy of the 0x1fc00000 Aurelien Jarno
@ 2013-07-29 5:12 ` Andreas Färber
0 siblings, 0 replies; 2+ messages in thread
From: Andreas Färber @ 2013-07-29 5:12 UTC (permalink / raw)
To: Aurelien Jarno; +Cc: Leon Alrae, qemu-devel, Paul Burton
Am 29.07.2013 07:08, schrieb 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 <afaerber@suse.de>
> Cc: Paul Burton <paul.burton@imgtec.com>
> Cc: Leon Alrae <leon.alrae@imgtec.com>
> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Tested-by: Andreas Färber <afaerber@suse.de>
Thanks for the quick fix!
Andreas
--
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-07-29 5:12 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-07-29 5:08 [Qemu-devel] [PATCH] mips_malta: fix copy of the 0x1fc00000 Aurelien Jarno
2013-07-29 5:12 ` Andreas Färber
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.