]> git.proxmox.com Git - mirror_qemu.git/blobdiff - hw/arm/boot.c
elf: Add optional function ptr to load_elf() to parse ELF notes
[mirror_qemu.git] / hw / arm / boot.c
index c7a67af7a97c9851449743eb5c2cffc0218bcf55..be25902c128726f33d4a09d41abc56babd33864a 100644 (file)
@@ -697,10 +697,6 @@ static void do_cpu_reset(void *opaque)
                 g_assert_not_reached();
             }
 
-            if (!env->aarch64) {
-                env->thumb = info->entry & 1;
-                entry &= 0xfffffffe;
-            }
             cpu_set_pc(cs, entry);
         } else {
             /* If we are booting Linux then we need to check whether we are
@@ -885,7 +881,7 @@ static int64_t arm_load_elf(struct arm_boot_info *info, uint64_t *pentry,
         }
     }
 
-    ret = load_elf_as(info->kernel_filename, NULL, NULL,
+    ret = load_elf_as(info->kernel_filename, NULL, NULL, NULL,
                       pentry, lowaddr, highaddr, big_endian, elf_machine,
                       1, data_swab, as);
     if (ret <= 0) {