From 810260a8f334d6faa2749a3729f180dff8bae76b Mon Sep 17 00:00:00 2001 From: malc Date: Wed, 23 Jul 2008 19:17:46 +0000 Subject: 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 --- dyngen.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'dyngen.c') diff --git a/dyngen.c b/dyngen.c index 880d641..86c1bb11a 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 -- cgit v1.1