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 89 endif
90 90  
91 91 ifeq ($(ARCH),sparc)
92   - CFLAGS+=-ffixed-g2 -ffixed-g3
93 92 ifneq ($(CONFIG_SOLARIS),yes)
94   - CFLAGS+=-ffixed-g1 -ffixed-g6
95 93 HELPER_CFLAGS+=-ffixed-i0
96 94 endif
97 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 97 ifeq ($(ARCH),alpha)
108 98 # Ensure there's only a single GP
109 99 CFLAGS+=-msmall-data
... ...
configure
... ... @@ -498,6 +498,10 @@ case "$cpu" in
498 498 ARCH_CFLAGS="${SP_CFLAGS}"
499 499 ARCH_LDFLAGS="${SP_LDFLAGS}"
500 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 506 sparc64) if test -z "$sparc_cpu" ; then
503 507 ARCH_CFLAGS="-m64 -mcpu=ultrasparc -D__sparc_v9__"
... ... @@ -506,6 +510,11 @@ case "$cpu" in
506 510 ARCH_CFLAGS="${SP_CFLAGS}"
507 511 ARCH_LDFLAGS="${SP_LDFLAGS}"
508 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 519 s390)
511 520 ARCH_CFLAGS="-march=z900"
... ...