summaryrefslogtreecommitdiffstats
path: root/hw/moxie/moxiesim.c
diff options
context:
space:
mode:
authorPeter Crosthwaite2015-05-11 08:29:10 +0200
committerPaolo Bonzini2015-09-25 12:04:43 +0200
commitb744d332f3ef17adc1219be7098b0a4cc30b2dbe (patch)
tree67d9d84dab4461a8b6878d79f2d3f896b30bb8c3 /hw/moxie/moxiesim.c
parentcris: Remove ELF_MACHINE from cpu.h (diff)
downloadqemu-b744d332f3ef17adc1219be7098b0a4cc30b2dbe.tar.gz
qemu-b744d332f3ef17adc1219be7098b0a4cc30b2dbe.tar.xz
qemu-b744d332f3ef17adc1219be7098b0a4cc30b2dbe.zip
moxie: Remove ELF_MACHINE from cpu.h
The bootloader can just pass EM_MOXIE directly, as that is architecture specific code. This removes another architecture specific definition from the global namespace. Cc: Anthony Green <green@moxielogic.com> Reviewed-by: Richard Henderson <rth@twiddle.net> Acked-By: Riku Voipio <riku.voipio@linaro.org> Signed-off-by: Peter Crosthwaite <crosthwaite.peter@gmail.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'hw/moxie/moxiesim.c')
-rw-r--r--hw/moxie/moxiesim.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/hw/moxie/moxiesim.c b/hw/moxie/moxiesim.c
index 4e98c20f23..ada3d58829 100644
--- a/hw/moxie/moxiesim.c
+++ b/hw/moxie/moxiesim.c
@@ -53,8 +53,7 @@ static void load_kernel(MoxieCPU *cpu, LoaderParams *loader_params)
ram_addr_t initrd_offset;
kernel_size = load_elf(loader_params->kernel_filename, NULL, NULL,
- &entry, &kernel_low, &kernel_high, 1,
- ELF_MACHINE, 0);
+ &entry, &kernel_low, &kernel_high, 1, EM_MOXIE, 0);
if (kernel_size <= 0) {
fprintf(stderr, "qemu: could not load kernel '%s'\n",