Commit 762e823086ad37453c2308bccf01223f07759eab

Authored by blueswir1
1 parent 9ddff3d2

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
Showing 2 changed files with 9 additions and 10 deletions
Makefile.target
@@ -89,21 +89,11 @@ translate.o: CFLAGS := $(CFLAGS) $(call cc-option, $(CFLAGS), -fno-unit-at-a-tim @@ -89,21 +89,11 @@ translate.o: CFLAGS := $(CFLAGS) $(call cc-option, $(CFLAGS), -fno-unit-at-a-tim
89 endif 89 endif
90 90
91 ifeq ($(ARCH),sparc) 91 ifeq ($(ARCH),sparc)
92 - CFLAGS+=-ffixed-g2 -ffixed-g3  
93 ifneq ($(CONFIG_SOLARIS),yes) 92 ifneq ($(CONFIG_SOLARIS),yes)
94 - CFLAGS+=-ffixed-g1 -ffixed-g6  
95 HELPER_CFLAGS+=-ffixed-i0 93 HELPER_CFLAGS+=-ffixed-i0
96 endif 94 endif
97 endif 95 endif
98 96
99 -ifeq ($(ARCH),sparc64)  
100 - ifneq ($(CONFIG_SOLARIS),yes)  
101 - CFLAGS+=-ffixed-g5 -ffixed-g6 -ffixed-g7  
102 - else  
103 - CFLAGS+=-ffixed-g1 -ffixed-g4 -ffixed-g5 -ffixed-g7  
104 - endif  
105 -endif  
106 -  
107 ifeq ($(ARCH),alpha) 97 ifeq ($(ARCH),alpha)
108 # Ensure there's only a single GP 98 # Ensure there's only a single GP
109 CFLAGS+=-msmall-data 99 CFLAGS+=-msmall-data
configure
@@ -498,6 +498,10 @@ case "$cpu" in @@ -498,6 +498,10 @@ case "$cpu" in
498 ARCH_CFLAGS="${SP_CFLAGS}" 498 ARCH_CFLAGS="${SP_CFLAGS}"
499 ARCH_LDFLAGS="${SP_LDFLAGS}" 499 ARCH_LDFLAGS="${SP_LDFLAGS}"
500 fi 500 fi
  501 + ARCH_CFLAGS="$ARCH_CFLAGS -ffixed-g2 -ffixed-g3"
  502 + if test "$solaris" = "no" ; then
  503 + ARCH_CFLAGS="$ARCH_CFLAGS -ffixed-g1 -ffixed-g6"
  504 + fi
501 ;; 505 ;;
502 sparc64) if test -z "$sparc_cpu" ; then 506 sparc64) if test -z "$sparc_cpu" ; then
503 ARCH_CFLAGS="-m64 -mcpu=ultrasparc -D__sparc_v9__" 507 ARCH_CFLAGS="-m64 -mcpu=ultrasparc -D__sparc_v9__"
@@ -506,6 +510,11 @@ case "$cpu" in @@ -506,6 +510,11 @@ case "$cpu" in
506 ARCH_CFLAGS="${SP_CFLAGS}" 510 ARCH_CFLAGS="${SP_CFLAGS}"
507 ARCH_LDFLAGS="${SP_LDFLAGS}" 511 ARCH_LDFLAGS="${SP_LDFLAGS}"
508 fi 512 fi
  513 + if test "$solaris" = "no" ; then
  514 + ARCH_CFLAGS="$ARCH_CFLAGS -ffixed-g5 -ffixed-g6 -ffixed-g7"
  515 + else
  516 + ARCH_CFLAGS="$ARCH_CFLAGS -ffixed-g1 -ffixed-g5 -ffixed-g6 -ffixed-g7"
  517 + fi
509 ;; 518 ;;
510 s390) 519 s390)
511 ARCH_CFLAGS="-march=z900" 520 ARCH_CFLAGS="-march=z900"