]> git.proxmox.com Git - mirror_qemu.git/commitdiff
microblaze: boot: Don't hack the elf entry point
authorPeter Crosthwaite <peter.crosthwaite@xilinx.com>
Tue, 29 Apr 2014 00:12:58 +0000 (17:12 -0700)
committerEdgar E. Iglesias <edgar.iglesias@xilinx.com>
Mon, 12 May 2014 23:12:40 +0000 (09:12 +1000)
There was some modulo logic to ensure that Microblaze always booted into
physical RAM regardless of the elf entry. Removed it, as QEMU should fail
gracefully when given a bad elf, rather than attempt to run it.

Signed-off-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
hw/microblaze/boot.c

index deeecfca6ffa9b13cfb04cabe92b35498b4f1fee..6bf36d046fdc313d92ac936766adec2d7048fcbc 100644 (file)
@@ -148,7 +148,7 @@ void microblaze_load_kernel(MicroBlazeCPU *cpu, hwaddr ddr_base,
                                    big_endian, ELF_MACHINE, 0);
         }
         /* Always boot into physical ram.  */
-        boot_info.bootstrap_pc = ddr_base + (entry & 0x0fffffff);
+        boot_info.bootstrap_pc = (uint32_t)entry;
 
         /* If it wasn't an ELF image, try an u-boot image.  */
         if (kernel_size < 0) {