summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEdgar E. Iglesias2010-05-24 11:14:04 +0200
committerEdgar E. Iglesias2010-05-24 11:14:04 +0200
commit16f04416175844507b20072c422d08286ebbced6 (patch)
tree1eec4c027f8b70aa6825246cfd63fd09fa61fe17
parentlsi: Fix value overflow in request tag processing (diff)
downloadqemu-16f04416175844507b20072c422d08286ebbced6.tar.gz
qemu-16f04416175844507b20072c422d08286ebbced6.tar.xz
qemu-16f04416175844507b20072c422d08286ebbced6.zip
microblaze: Handle new elf mach nr for sysemu.
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
-rw-r--r--hw/elf_ops.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/hw/elf_ops.h b/hw/elf_ops.h
index 69c07571b6..27d1ab9bc2 100644
--- a/hw/elf_ops.h
+++ b/hw/elf_ops.h
@@ -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;