summaryrefslogtreecommitdiffstats
path: root/target-ppc/cpu.h
diff options
context:
space:
mode:
authorblueswir12009-02-08 13:50:56 +0100
committerblueswir12009-02-08 13:50:56 +0100
commit3a616592a18931f814c00f773194ef5819919895 (patch)
tree5865ff560647f4d2cb391f2786b440cb2a4f1602 /target-ppc/cpu.h
parentRename ppc_chrp.c to ppc_newworld.c (diff)
downloadqemu-3a616592a18931f814c00f773194ef5819919895.tar.gz
qemu-3a616592a18931f814c00f773194ef5819919895.tar.xz
qemu-3a616592a18931f814c00f773194ef5819919895.zip
Load 32 bit ELF BIOS images also on PPC64
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6554 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-ppc/cpu.h')
-rw-r--r--target-ppc/cpu.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/target-ppc/cpu.h b/target-ppc/cpu.h
index 006f58d799..80ee76c73a 100644
--- a/target-ppc/cpu.h
+++ b/target-ppc/cpu.h
@@ -66,7 +66,8 @@
#define TARGET_HAS_ICE 1
-#if defined (TARGET_PPC64)
+/* Load a 32 bit BIOS also on 64 bit machines */
+#if defined (TARGET_PPC64) && defined(CONFIG_USER_ONLY)
#define ELF_MACHINE EM_PPC64
#else
#define ELF_MACHINE EM_PPC