]> git.proxmox.com Git - mirror_qemu.git/commitdiff
microblaze: Handle new elf mach nr for sysemu.
authorEdgar E. Iglesias <edgar.iglesias@gmail.com>
Mon, 24 May 2010 09:14:04 +0000 (11:14 +0200)
committerEdgar E. Iglesias <edgar.iglesias@gmail.com>
Mon, 24 May 2010 09:14:04 +0000 (11:14 +0200)
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
hw/elf_ops.h

index 69c07571b6077f829410adf41a7a2d9194330434..27d1ab9bc21a5543ff64cc436fa1228d2088ee20 100644 (file)
@@ -216,6 +216,11 @@ static int glue(load_elf, SZ)(const char *name, int fd,
                 if (EM_386 != ehdr.e_machine)
                     goto fail;
             break;
+        case EM_MICROBLAZE:
+            if (EM_MICROBLAZE != ehdr.e_machine)
+                if (EM_MICROBLAZE_OLD != ehdr.e_machine)
+                    goto fail;
+            break;
         default:
             if (elf_machine != ehdr.e_machine)
                 goto fail;