From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NuRqe-0000oN-Hp for qemu-devel@nongnu.org; Wed, 24 Mar 2010 10:46:20 -0400 Received: from [140.186.70.92] (port=52543 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NuRqb-0000nk-Hg for qemu-devel@nongnu.org; Wed, 24 Mar 2010 10:46:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NuRqT-0005jo-5P for qemu-devel@nongnu.org; Wed, 24 Mar 2010 10:46:17 -0400 Received: from mx1.redhat.com ([209.132.183.28]:32900) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NuRqS-0005ig-UL for qemu-devel@nongnu.org; Wed, 24 Mar 2010 10:46:09 -0400 Message-ID: <4BAA25A7.7000201@redhat.com> Date: Wed, 24 Mar 2010 15:45:59 +0100 From: Paolo Bonzini MIME-Version: 1.0 Subject: Re: [Qemu-devel] Re: Compile files only once: some planning References: <4BA9DFAA.3070107@redhat.com> <4BA9F52C.6070309@twiddle.net> In-Reply-To: <4BA9F52C.6070309@twiddle.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Richard Henderson Cc: Blue Swirl , qemu-devel On 03/24/2010 12:19 PM, Richard Henderson wrote: > On 03/24/2010 02:47 AM, Paolo Bonzini wrote: >> 1) make CPUState define only common fields. Include CPUState at the >> beginning of each per-target CPUXYZState. > > Irritatingly, the common fields contain quite big TLBs. And the > offsets from the start of env affect the compactness of the code > generated from TCG. We really really want the general registers > to come first to make sure that those offsets fit the host's > reg+offset addressing mode. What about adding a 512-bytes (or more) block or something like that at the beginning of CPUState with a union, so you can put the per-target stuff there? Paolo