From 95bcb2f14400f2953a501b183b0e413a9c7c33ef Mon Sep 17 00:00:00 2001 From: Peter Crosthwaite Date: Fri, 16 Feb 2018 00:22:30 -0500 Subject: [PATCH] mips: 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 bootloaders can just pass EM_MIPS directly, as that is architecture specific code. This removes another architecture specific definition from the global namespace. Backports commit 04ce380e9e3fad1dbf4e86ebdf9315573a06b30e from qemu --- qemu/target-mips/cpu.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/qemu/target-mips/cpu.h b/qemu/target-mips/cpu.h index f608901e..47618331 100644 --- a/qemu/target-mips/cpu.h +++ b/qemu/target-mips/cpu.h @@ -6,8 +6,6 @@ #define ALIGNED_ONLY #define TARGET_HAS_ICE 1 -#define ELF_MACHINE EM_MIPS - #define CPUArchState struct CPUMIPSState #include "config.h"