diff options
author | ths <ths@c046a42c-6fe2-441c-8c8c-71466251a162> | 2006-12-23 14:18:40 +0000 |
---|---|---|
committer | ths <ths@c046a42c-6fe2-441c-8c8c-71466251a162> | 2006-12-23 14:18:40 +0000 |
commit | 9042c0e20de166542b603621fd30dc8be95dfd4d (patch) | |
tree | 84ea028032cb2c70fff393af4d94854eea585f3f /target-i386 | |
parent | 70ead4341212ecb3181d5c780284cef0fc7b51fc (diff) | |
download | hqemu-9042c0e20de166542b603621fd30dc8be95dfd4d.zip hqemu-9042c0e20de166542b603621fd30dc8be95dfd4d.tar.gz |
Check ELF binaries for machine type and endianness.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2274 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-i386')
-rw-r--r-- | target-i386/cpu.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/target-i386/cpu.h b/target-i386/cpu.h index 3050740..4296093 100644 --- a/target-i386/cpu.h +++ b/target-i386/cpu.h @@ -36,6 +36,12 @@ #define TARGET_HAS_ICE 1 +#ifdef TARGET_X86_64 +#define ELF_MACHINE EM_X86_64 +#else +#define ELF_MACHINE EM_386 +#endif + #include "cpu-defs.h" #include "softfloat.h" |