[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH] Updated Sparc support
From: |
Johan Rydberg |
Subject: |
Re: [Qemu-devel] [PATCH] Updated Sparc support |
Date: |
Thu, 15 May 2003 15:03:33 +0200 |
David wrote:
Like PPC, I now hold all the main x86 registers (EAX etc.) in Sparc
registers. This was tricky to accomplish with register windows, but
finally it works...
Do you still use the register windows, or does GCC generate code without
save/restore? Is this possible, really?
The reason for me asking is that I some time soon "port" my simulator
[1]
to SPARC hosts, and it needs to have a lot of global registers (more
than
those 6-7 available). I
+ifeq ($(ARCH),sparc)
+CFLAGS+=-m32 -ffixed-g1 -ffixed-g2 -ffixed-g3 -ffixed-g6
+LDFLAGS+=-m32
+OP_CFLAGS=$(CFLAGS) -fno-delayed-branch -ffixed-i0
+endif
+
+ifeq ($(ARCH),sparc64)
+CFLAGS+=-m64 -ffixed-g1 -ffixed-g2 -ffixed-g3 -ffixed-g6
+LDFLAGS+=-m64
+OP_CFLAGS=$(CFLAGS) -fno-delayed-branch -ffixed-i0
+endif
Is the fixed flags really needed or is it just because the global
register definitions is made in op-i386.c (or whatever) ?
brgds,
johan
[1] http://www.nongnu.org/guss/