aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>2009-04-04 09:21:28 +0000
committerblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>2009-04-04 09:21:28 +0000
commit762e823086ad37453c2308bccf01223f07759eab (patch)
tree26ba9c1b97efee8decf3f01a3bfd51530b21f754
parent9ddff3d2c44ceeba8dcbb5294183404ce73448c2 (diff)
Compile all files with -ffixed-g5 etc. to avoid env (%g5) corruption
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6972 c046a42c-6fe2-441c-8c8c-71466251a162
-rw-r--r--Makefile.target10
-rwxr-xr-xconfigure9
2 files changed, 9 insertions, 10 deletions
diff --git a/Makefile.target b/Makefile.target
index e855dc33b4..535d6d2e3d 100644
--- a/Makefile.target
+++ b/Makefile.target
@@ -89,21 +89,11 @@ translate.o: CFLAGS := $(CFLAGS) $(call cc-option, $(CFLAGS), -fno-unit-at-a-tim
endif
ifeq ($(ARCH),sparc)
- CFLAGS+=-ffixed-g2 -ffixed-g3
ifneq ($(CONFIG_SOLARIS),yes)
- CFLAGS+=-ffixed-g1 -ffixed-g6
HELPER_CFLAGS+=-ffixed-i0
endif
endif
-ifeq ($(ARCH),sparc64)
- ifneq ($(CONFIG_SOLARIS),yes)
- CFLAGS+=-ffixed-g5 -ffixed-g6 -ffixed-g7
- else
- CFLAGS+=-ffixed-g1 -ffixed-g4 -ffixed-g5 -ffixed-g7
- endif
-endif
-
ifeq ($(ARCH),alpha)
# Ensure there's only a single GP
CFLAGS+=-msmall-data
diff --git a/configure b/configure
index 5c62c594ec..fa779379f3 100755
--- a/configure
+++ b/configure
@@ -498,6 +498,10 @@ case "$cpu" in
ARCH_CFLAGS="${SP_CFLAGS}"
ARCH_LDFLAGS="${SP_LDFLAGS}"
fi
+ ARCH_CFLAGS="$ARCH_CFLAGS -ffixed-g2 -ffixed-g3"
+ if test "$solaris" = "no" ; then
+ ARCH_CFLAGS="$ARCH_CFLAGS -ffixed-g1 -ffixed-g6"
+ fi
;;
sparc64) if test -z "$sparc_cpu" ; then
ARCH_CFLAGS="-m64 -mcpu=ultrasparc -D__sparc_v9__"
@@ -506,6 +510,11 @@ case "$cpu" in
ARCH_CFLAGS="${SP_CFLAGS}"
ARCH_LDFLAGS="${SP_LDFLAGS}"
fi
+ if test "$solaris" = "no" ; then
+ ARCH_CFLAGS="$ARCH_CFLAGS -ffixed-g5 -ffixed-g6 -ffixed-g7"
+ else
+ ARCH_CFLAGS="$ARCH_CFLAGS -ffixed-g1 -ffixed-g5 -ffixed-g6 -ffixed-g7"
+ fi
;;
s390)
ARCH_CFLAGS="-march=z900"