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 19GP78-0006kl-00 for qemu-devel@nongnu.org; Thu, 15 May 2003 16:14:06 -0400 Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 19GP6o-0005Si-00 for qemu-devel@nongnu.org; Thu, 15 May 2003 16:13:53 -0400 Received: from smtp110.tiscali.dk ([62.79.79.110]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 19GP6k-0005AZ-00 for qemu-devel@nongnu.org; Thu, 15 May 2003 16:13:42 -0400 Date: Thu, 15 May 2003 22:17:24 +0200 From: Johan Rydberg Subject: Re: [Qemu-devel] [PATCH] Updated Sparc support Message-ID: <20030515201724.GA19302@bushwacker> References: <20030512.211328.90815820.davem@redhat.com> <20030515.130541.41655467.davem@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset=ISO-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20030515.130541.41655467.davem@redhat.com>; from davem@redhat.com on Thu, May 15, 2003 at 22:05:41 +0200 Reply-To: qemu-devel@nongnu.org List-Id: List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , To: "David S. Miller" Cc: qemu-devel@nongnu.org On 2003.05.15 22:05 David S. Miller wrote: > 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. The global registers will initially not be used for dynamic generated code, but in the direct threaded interpreter. Using global registers for commonly used variables such as the CPU structure and current virtual program counter will increase the performance with a magnitude I guess. So, if I understand you correctly, everything should work pretty good i you use -fflat and stay away from the input registers? (I have no need for the -fno-delay-slot flag) > Just look at the qemu code, it works quite well. Will do that aswell. brgds, Johan.