summaryrefslogtreecommitdiff
path: root/dyngen.c
diff options
context:
space:
mode:
authormalc <malc@c046a42c-6fe2-441c-8c8c-71466251a162>2008-07-23 19:17:46 +0000
committermalc <malc@c046a42c-6fe2-441c-8c8c-71466251a162>2008-07-23 19:17:46 +0000
commit810260a8f334d6faa2749a3729f180dff8bae76b (patch)
tree01cd1f45b6e6c5e2c92763fbc364a2acbe4177a1 /dyngen.c
parente0e6c8c057efab0de1b4fa90e1c40deb5b22ad20 (diff)
downloadqemu-810260a8f334d6faa2749a3729f180dff8bae76b.tar.gz
Preliminary PPC64/Linux host support
ppc64.ld from Heikki Lindholm's patch http://marc.info/?l=qemu-devel&m=114086179024634&w=2 Issues: x86_64 tripple faults shortly after decompressing the kernel No immediate versions of most 64 bit operations More... git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4932 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'dyngen.c')
-rw-r--r--dyngen.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/dyngen.c b/dyngen.c
index 880d641a56..86c1bb11a2 100644
--- a/dyngen.c
+++ b/dyngen.c
@@ -68,6 +68,13 @@
#define elf_check_arch(x) ((x) == EM_PPC)
#define ELF_USES_RELOCA
+#elif defined(HOST_PPC64)
+
+#define ELF_CLASS ELFCLASS64
+#define ELF_ARCH EM_PPC64
+#define elf_check_arch(x) ((x) == EM_PPC64)
+#define ELF_USES_RELOCA
+
#elif defined(HOST_S390)
#define ELF_CLASS ELFCLASS32
@@ -1551,6 +1558,8 @@ void gen_code(const char *name, host_ulong offset, host_ulong size,
}
#elif defined(HOST_ARM)
error("dyngen targets not supported on ARM");
+#elif defined(HOST_PPC64)
+ error("dyngen targets not supported on PPC64");
#else
#error unsupported CPU
#endif
@@ -2592,6 +2601,8 @@ void gen_code(const char *name, host_ulong offset, host_ulong size,
}
#elif defined(HOST_ARM)
error("dyngen targets not supported on ARM");
+#elif defined(HOST_PPC64)
+ error("dyngen targets not supported on PPC64");
#else
#error unsupported CPU
#endif