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 --- configure | 27 +++++++++++++++++++++++++-- 1 file changed, 25 insertions(+), 2 deletions(-) (limited to 'configure') diff --git a/configure b/configure index b00df86..cc4ff9b 100755 --- a/configure +++ b/configure @@ -637,6 +637,24 @@ if test "$cpu" = "x86_64" \ hostlongbits="64" fi +# ppc specific hostlongbits selection +if test "$cpu" = "powerpc" ; then + cat > $TMPC < /dev/null; then + $TMPE + case $? in + 4) hostlongbits="32";; + 8) hostlongbits="64";; + *) echo "Couldn't determine bits per long value";; + esac + else + echo hostlongbits test failed + fi +fi + # check gcc options support cat > $TMPC <> $config_h ;; powerpc) - echo "ARCH=ppc" >> $config_mak - echo "#define HOST_PPC 1" >> $config_h + if test "$hostlongbits" = "32"; then + echo "ARCH=ppc" >> $config_mak + echo "#define HOST_PPC 1" >> $config_h + else + echo "ARCH=ppc64" >> $config_mak + echo "#define HOST_PPC64 1" >> $config_h + fi ;; s390) echo "ARCH=s390" >> $config_mak -- cgit v1.1