Blame qemu-0.9.1-sparc-configure.patch

Dennis Gilmore 1cd90b
--- qemu-0.9.1/configure.BAD	2008-12-31 20:49:19.000000000 -0600
Dennis Gilmore 1cd90b
+++ qemu-0.9.1/configure	2008-12-31 20:51:45.000000000 -0600
Dennis Gilmore 1cd90b
@@ -307,6 +307,8 @@
Dennis Gilmore 1cd90b
                  target_cpu="sparc"; cpu="sparc" ;;
Dennis Gilmore 1cd90b
         v8plus|v8plusa) SP_CFLAGS="-m32 -mcpu=ultrasparc -D__sparc_${sparc_cpu}__"; SP_LDFLAGS="-m32"
Dennis Gilmore 1cd90b
                  target_cpu="sparc"; cpu="sparc" ;;
Dennis Gilmore 1cd90b
+        v932)    SP_CFLAGS="-m32 -mcpu=ultrasparc -D__sparc_v9__"; SP_LDFLAGS="-m32"
Dennis Gilmore 1cd90b
+                 target_cpu="sparc"; cpu="sparc" ;;
Dennis Gilmore 1cd90b
         v9)    SP_CFLAGS="-m64 -mcpu=ultrasparc -D__sparc_${sparc_cpu}__"; SP_LDFLAGS="-m64"
Dennis Gilmore 1cd90b
                  target_cpu="sparc64"; cpu="sparc64" ;;
Dennis Gilmore 1cd90b
         *)     echo "undefined SPARC architecture. Exiting";exit 1;;
Dennis Gilmore 1cd90b
@@ -337,11 +339,11 @@
Dennis Gilmore 1cd90b
 
Dennis Gilmore 1cd90b
 #
Dennis Gilmore 1cd90b
 # If cpu ~= sparc and  sparc_cpu hasn't been defined, plug in the right
Dennis Gilmore 1cd90b
-# ARCH_CFLAGS/ARCH_LDFLAGS (assume sparc_v8plus for 32-bit and sparc_v9 for 64-bit)
Dennis Gilmore 1cd90b
+# ARCH_CFLAGS/ARCH_LDFLAGS (assume sparc_v9 for 32-bit and sparc_v9 for 64-bit)
Dennis Gilmore 1cd90b
 #
Dennis Gilmore 1cd90b
 case $cpu in
Dennis Gilmore 1cd90b
     sparc) if test -z "$sparc_cpu" ; then
Dennis Gilmore 1cd90b
-               ARCH_CFLAGS="-m32 -mcpu=ultrasparc -D__sparc_v8plus__"
Dennis Gilmore 1cd90b
+               ARCH_CFLAGS="-m32 -mcpu=ultrasparc -D__sparc_v9__"
Dennis Gilmore 1cd90b
                ARCH_LDFLAGS="-m32"
Dennis Gilmore 1cd90b
            else
Dennis Gilmore 1cd90b
                ARCH_CFLAGS="${SP_CFLAGS}"