From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 19GP0F-0004yx-00 for qemu-devel@nongnu.org; Thu, 15 May 2003 16:06:59 -0400 Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 19GOzk-0004Ku-00 for qemu-devel@nongnu.org; Thu, 15 May 2003 16:06:29 -0400 Received: from pizda.ninka.net ([216.101.162.242]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 19GOzX-0003zN-00 for qemu-devel@nongnu.org; Thu, 15 May 2003 16:06:16 -0400 Date: Thu, 15 May 2003 13:05:41 -0700 (PDT) Message-Id: <20030515.130541.41655467.davem@redhat.com> Subject: Re: [Qemu-devel] [PATCH] Updated Sparc support From: "David S. Miller" In-Reply-To: References: <20030512.211328.90815820.davem@redhat.com> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Reply-To: qemu-devel@nongnu.org List-Id: List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , To: qemu-devel@nongnu.org, jrydberg@night.trouble.net From: Johan Rydberg Date: Thu, 15 May 2003 15:03:33 +0200 Do you still use the register windows, or does GCC generate code without save/restore? Is this possible, really? I used register windows. Making GCC generate non-register windowed code using -mflat is unusable because due to a bug it does not respect the -fno-delayed-branch option when in that mode. 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). Just only execute the generated code in a fixed context and thus in the same register window, then at the call site into the generated code clobber all of the input registers. Just look at the qemu code, it works quite well. Is the fixed flags really needed or is it just because the global register definitions is made in op-i386.c (or whatever) ? You really do need this, because you cannot guarentee that every source file will see the global register declarations in exec-i386.h