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
This commit is contained in:
malc 2008-07-23 19:17:46 +00:00
parent e0e6c8c057
commit 810260a8f3
9 changed files with 1827 additions and 4 deletions

View file

@ -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