qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [patch] Simtec BAST system emulation


From: Daniel Silverstone
Subject: Re: [Qemu-devel] [patch] Simtec BAST system emulation
Date: Tue, 24 Apr 2007 09:56:20 +0100

On Thu, 2007-04-19 at 14:06 +0100, Daniel Silverstone wrote:
[snip]

I missed a tiny bit out of the patch, an oversight if you will related
to the loading of ARM kernels on systems whose RAM does not start at
emulated phys_addr zero.

Here's the extra bit of patch to apply after the patch attached to my
previous mail.

petitemort% bzr diff -r-3..-2                                          
~/dev-simtec/qemu-trunk-simtecbast
=== modified file 'hw/arm_boot.c'
--- hw/arm_boot.c       2007-04-16 21:52:59 +0000
+++ hw/arm_boot.c       2007-04-24 08:35:00 +0000
@@ -137,7 +137,7 @@
         bootloader[1] |= board_id & 0xff;
         bootloader[2] |= (board_id >> 8) & 0xff;
         bootloader[5] = KERNEL_ARGS_ADDR;
-        bootloader[6] = entry;
+        bootloader[6] = entry + emulated_sdram_base;
         for (n = 0; n < sizeof(bootloader) / 4; n++)
             stl_raw(phys_ram_base + (n * 4), bootloader[n]);
         set_kernel_args(ram_size, initrd_size, kernel_cmdline, 
emulated_sdram_base);

zsh: exit 1     bzr diff -r-3..-2
petitemort%                                                            
~/dev-simtec/qemu-trunk-simtecbast


-- 
Daniel Silverstone                         http://www.digital-scurf.org/
PGP mail accepted and encouraged.            Key Id: 2BC8 4016 2068 7895






reply via email to

[Prev in Thread] Current Thread [Next in Thread]