diff options
author | Peter Crosthwaite | 2015-05-11 08:29:10 +0200 |
---|---|---|
committer | Paolo Bonzini | 2015-09-25 12:04:43 +0200 |
commit | 45e6b8b61a7bbb71d1fa6c4193b47ba3a1f9f033 (patch) | |
tree | 4dce4f770bf53a1481ef5aabf792d3d2a4efdde7 /hw/m68k/mcf5208.c | |
parent | mb: Remove ELF_MACHINE from cpu.h (diff) | |
download | qemu-45e6b8b61a7bbb71d1fa6c4193b47ba3a1f9f033.tar.gz qemu-45e6b8b61a7bbb71d1fa6c4193b47ba3a1f9f033.tar.xz qemu-45e6b8b61a7bbb71d1fa6c4193b47ba3a1f9f033.zip |
m68k: Remove ELF_MACHINE from cpu.h
The only generic code relying on this is linux-user, but linux users'
default behaviour of defaulting ELF_MACHINE to ELF_ARCH will handle
this.
The machine model bootloaders can just pass EM_68K directly, as that
is architecture specific code.
This removes another architecture specific definition from the global
namespace.
Cc: Laurent Vivier <laurent@vivier.eu>
Cc: Greg Ungerer <gerg@uclinux.org>
Reviewed-by: Richard Henderson <rth@twiddle.net>
Acked-By: Riku Voipio <riku.voipio@linaro.org>
Reviewed-by: Greg Ungerer <gerg@uclinux.org>
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Signed-off-by: Peter Crosthwaite <crosthwaite.peter@gmail.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'hw/m68k/mcf5208.c')
-rw-r--r-- | hw/m68k/mcf5208.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/m68k/mcf5208.c b/hw/m68k/mcf5208.c index c3365eb21d..ddeccc5064 100644 --- a/hw/m68k/mcf5208.c +++ b/hw/m68k/mcf5208.c @@ -275,7 +275,7 @@ static void mcf5208evb_init(MachineState *machine) } kernel_size = load_elf(kernel_filename, NULL, NULL, &elf_entry, - NULL, NULL, 1, ELF_MACHINE, 0); + NULL, NULL, 1, EM_68K, 0); entry = elf_entry; if (kernel_size < 0) { kernel_size = load_uimage(kernel_filename, &entry, NULL, NULL, |