x49gp/qemu/patches/qemu-0.9.0-sparc-compile-flags.patch

23 lines
951 B
Diff

diff -ur qemu/Makefile.target qemu-ecd/Makefile.target
--- qemu/Makefile.target 2007-07-22 19:35:11.000000000 +0200
+++ qemu-ecd/Makefile.target 2007-07-22 19:33:00.000000000 +0200
@@ -122,14 +122,14 @@
ifeq ($(ARCH),sparc)
ifeq ($(CONFIG_SOLARIS),yes)
-BASE_CFLAGS+=-mcpu=ultrasparc -m32 -ffixed-g2 -ffixed-g3
+BASE_CFLAGS+=-mcpu=ultrasparc -m32 -U__sparc_v9__
BASE_LDFLAGS+=-m32
-OP_CFLAGS+=-fno-delayed-branch -fno-omit-frame-pointer -ffixed-i0
+OP_CFLAGS+=-fno-delayed-branch -fno-omit-frame-pointer -Wa,-Av9a
else
-BASE_CFLAGS+=-mcpu=ultrasparc -m32 -ffixed-g1 -ffixed-g2 -ffixed-g3 -ffixed-g6
+BASE_CFLAGS+=-mcpu=ultrasparc -m32 -U__sparc_v9__
BASE_LDFLAGS+=-m32
-OP_CFLAGS+=-fno-delayed-branch -ffixed-i0
-HELPER_CFLAGS=$(CFLAGS) -ffixed-i0 -mflat
+OP_CFLAGS+=-fno-delayed-branch -Wa,-Av9a
+HELPER_CFLAGS=$(CFLAGS)
# -static is used to avoid g1/g3 usage by the dynamic linker
BASE_LDFLAGS+=-Wl,-T,$(SRC_PATH)/$(ARCH).ld -static
endif