[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[commits] r9697 - in /libdfp/trunk: ./ sysdeps/powerpc/powerpc32/power7/ sysdeps/powerpc/powerpc32/power7/fpu/ sysdeps/powerpc/powerpc...



Author: ryanarn
Date: Wed Jan 20 15:31:18 2010
New Revision: 9697

Log:
2010-01-20  Ryan S. Arnold  <rsa@xxxxxxxxxx>

	* configure.ac: Added POWER 7 support.
	* README: Added notes on POWER 7 support.
	* sysdeps/powerpc/powerpc32/power7: New directory.
	* sysdeps/powerpc/powerpc32/power7/Implies: Imply Power6.
	* sysdeps/powerpc/powerpc32/power7/fpu: New directory.
	* sysdeps/powerpc/powerpc32/power7/fpu/Implies: Imply Power6.
	* sysdeps/powerpc/powerpc64/power7: New directory.
	* sysdeps/powerpc/powerpc64/power7/Implies: Imply Power6.
	* sysdeps/powerpc/powerpc64/power7/fpu: New directory.
	* sysdeps/powerpc/powerpc64/power7/fpu/Implies: Imply Power6.

Added:
    libdfp/trunk/sysdeps/powerpc/powerpc32/power7/
    libdfp/trunk/sysdeps/powerpc/powerpc32/power7/Implies
    libdfp/trunk/sysdeps/powerpc/powerpc32/power7/fpu/
    libdfp/trunk/sysdeps/powerpc/powerpc32/power7/fpu/Implies
    libdfp/trunk/sysdeps/powerpc/powerpc64/power7/
    libdfp/trunk/sysdeps/powerpc/powerpc64/power7/Implies
    libdfp/trunk/sysdeps/powerpc/powerpc64/power7/fpu/
    libdfp/trunk/sysdeps/powerpc/powerpc64/power7/fpu/Implies
Modified:
    libdfp/trunk/README
    libdfp/trunk/configure.ac

Modified: libdfp/trunk/README
==============================================================================
--- libdfp/trunk/README (original)
+++ libdfp/trunk/README Wed Jan 20 15:31:18 2010
@@ -353,7 +353,19 @@
 	--with-glibc-build=/home/ryanarn/glibc-2.11/build/glibc64_power6 \
 	--with-cpu=power6 2>&1 | tee _configure64_power6
 
-To build 32-bit use the following:
+PowerPC POWER7 (hard-dfp) using libdecnumber backend and dpd encoding:
+We only need the --with-cpu=power7 flag for power7 support and
+hardware-dfp:
+
+CC=/opt/at05/bin/gcc \
+/home/ryanarn/eglibc/eglibc/libdfp/trunk/configure \
+	--with-backend=libdecnumber --enable-decimal-float=dpd \
+	--with-glibc-headers=/home/ryanarn/ppc64-tc-utils/trunk/libdfp/include-2.10/ \
+	--with-glibc-build=/home/ryanarn/glibc-2.11/build/glibc64_power7 \
+	--with-cpu=power7 2>&1 | tee _configure64_power7
+
+To build 32-bit use the following (notice the --build=powerpc-linux-gnu
+--host=powerpc-linux-gnu switches):
 
 CC=/opt/at05/bin/gcc \
 /home/ryanarn/eglibc/eglibc/libdfp/trunk/configure \
@@ -373,6 +385,16 @@
 	--with-glibc-build=/home/ryanarn/glibc-2.11/build/glibc32_power6 \
 	--with-cpu=power6 2>&1 | tee _configure32_power6
 
+Or 32-bit POWER7:
+
+CC=/opt/at05/bin/gcc \
+/home/ryanarn/eglibc/eglibc/libdfp/trunk/configure \
+	--with-backend=libdecnumber --enable-decimal-float=dpd \
+	--with-glibc-headers=/home/ryanarn/ppc64-tc-utils/trunk/libdfp/include-2.10/ \
+	--build=powerpc-linux-gnu --host=powerpc-linux-gnu \
+	--with-glibc-build=/home/ryanarn/glibc-2.11/build/glibc32_power7 \
+	--with-cpu=power7 2>&1 | tee _configure32_power7
+
 ---------------------------------------------------------------------------
 6. Source Tree Layout
 
@@ -382,7 +404,7 @@
 The configure script automatically knows how to search for
 	base_machine (e.g. powerpc)
 	machine (e.g. powerpc32)
-	submachine (e.g. power6)
+	submachine (e.g. power6, power7)
 
 It also recognizes the following special directories when they show up
 following any of the previous *machine directories:
@@ -425,6 +447,8 @@
 ${srcdir}/libdecnumber/bid [libdecnumber headers]
 ${srcdir}/libbid/? [libbid headers]
 [MACHINE/SUBMACHINE]
+  ${srcdir}/sysdeps/powerpc/powerpc64/power7/fpu [platform directories]
+  ${srcdir}/sysdeps/powerpc/powerpc64/power7/
   ${srcdir}/sysdeps/powerpc/powerpc64/power6/fpu [platform directories]
   ${srcdir}/sysdeps/powerpc/powerpc64/power6/
   ${srcdir}/sysdeps/powerpc/powerpc64/
@@ -547,3 +571,6 @@
 Thanks to EGLIBC (eglibc.org) for hosting Libdfp when it was a GLIBC add-on
 and for hosting the stand alone version as well.
 
+Thanks to Michael Matz (SuSE) for help getting the initial packaging for
+Libdfp straightened out.
+

Modified: libdfp/trunk/configure.ac
==============================================================================
--- libdfp/trunk/configure.ac (original)
+++ libdfp/trunk/configure.ac Wed Jan 20 15:31:18 2010
@@ -162,6 +162,10 @@
   no)
     with_dfp=no
     ;;
+  power7)
+    submachine="$withval"
+    AC_MSG_NOTICE(configuring for the $submachine processor)
+    with_dfp=yes ;;
   power6)
     submachine="$withval"
     AC_MSG_NOTICE(configuring for the $submachine processor)
@@ -241,6 +245,11 @@
 #AC_SUBST(CC)
 #AC_SUBST(CFLAGS)
 
+OBJDUMP="$OBJDUMP"
+AS="$AS"
+AC_SUBST(OBJDUMP)
+AC_SUBST(AS)
+
 # It was considered to add this to CFLAGS before AC_PROG_CC was declared to
 # make sure that libdecnumber got all of the flags but it was decided to
 # simply invoke decnumber's `make' with an overridden CFLAGS.
@@ -346,6 +355,8 @@
 # ${srcdir}/libdecnumber/bid [libdecnumber headers]
 # ${srcdir}/libbid/? [libbid headers]
 # [MACHINE/SUBMACHINE]
+#   ${srcdir}/sysdeps/powerpc/powerpc64/power7/fpu [platform directories]
+#   ${srcdir}/sysdeps/powerpc/powerpc64/power7/
 #   ${srcdir}/sysdeps/powerpc/powerpc64/power6/fpu [platform directories]
 #   ${srcdir}/sysdeps/powerpc/powerpc64/power6/
 #   ${srcdir}/sysdeps/powerpc/powerpc64/

Added: libdfp/trunk/sysdeps/powerpc/powerpc32/power7/Implies
==============================================================================
--- libdfp/trunk/sysdeps/powerpc/powerpc32/power7/Implies (added)
+++ libdfp/trunk/sysdeps/powerpc/powerpc32/power7/Implies Wed Jan 20 15:31:18 2010
@@ -1,0 +1,3 @@
+# Pick up the power6 versions of files since power7 supports hardware-dfp as
+# well.
+sysdeps/powerpc/powerpc32/power6

Added: libdfp/trunk/sysdeps/powerpc/powerpc32/power7/fpu/Implies
==============================================================================
--- libdfp/trunk/sysdeps/powerpc/powerpc32/power7/fpu/Implies (added)
+++ libdfp/trunk/sysdeps/powerpc/powerpc32/power7/fpu/Implies Wed Jan 20 15:31:18 2010
@@ -1,0 +1,3 @@
+# Pick up the power6 versions of files since power7 supports hardware-dfp as
+# well.
+sysdeps/powerpc/powerpc32/power6/fpu

Added: libdfp/trunk/sysdeps/powerpc/powerpc64/power7/Implies
==============================================================================
--- libdfp/trunk/sysdeps/powerpc/powerpc64/power7/Implies (added)
+++ libdfp/trunk/sysdeps/powerpc/powerpc64/power7/Implies Wed Jan 20 15:31:18 2010
@@ -1,0 +1,3 @@
+# Pick up the power6 versions of files since power7 supports hardware-dfp as
+# well.
+sysdeps/powerpc/powerpc64/power6

Added: libdfp/trunk/sysdeps/powerpc/powerpc64/power7/fpu/Implies
==============================================================================
--- libdfp/trunk/sysdeps/powerpc/powerpc64/power7/fpu/Implies (added)
+++ libdfp/trunk/sysdeps/powerpc/powerpc64/power7/fpu/Implies Wed Jan 20 15:31:18 2010
@@ -1,0 +1,4 @@
+# Pick up the power6 versions of files since power7 supports hardware-dfp as
+# well.
+sysdeps/powerpc/powerpc64/power6/fpu
+