From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:59154) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aR2K1-0000aN-0A for qemu-devel@nongnu.org; Wed, 03 Feb 2016 13:38:33 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aR2Jx-00042c-RD for qemu-devel@nongnu.org; Wed, 03 Feb 2016 13:38:32 -0500 Received: from mail-wm0-x234.google.com ([2a00:1450:400c:c09::234]:35141) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aR2Jx-00042C-EI for qemu-devel@nongnu.org; Wed, 03 Feb 2016 13:38:29 -0500 Received: by mail-wm0-x234.google.com with SMTP id r129so178685834wmr.0 for ; Wed, 03 Feb 2016 10:38:27 -0800 (PST) References: <1438593291-27109-1-git-send-email-alex.bennee@linaro.org> <1438593291-27109-3-git-send-email-alex.bennee@linaro.org> <20150804123628.GA6780@aurel32.net> From: Alex =?utf-8?Q?Benn=C3=A9e?= In-reply-to: <20150804123628.GA6780@aurel32.net> Date: Wed, 03 Feb 2016 18:38:24 +0000 Message-ID: <871t8tprkv.fsf@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Subject: Re: [Qemu-devel] [PATCH v4 02/11] tcg: light re-factor and pass down TranslationBlock List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Aurelien Jarno Cc: qemu-trivial@nongnu.org, pbonzini@redhat.com, crosthwaitepeter@gmail.com, qemu-devel@nongnu.org, rth@twiddle.net Aurelien Jarno writes: > On 2015-08-03 10:14, Alex Bennée wrote: >> My later debugging patches need access to the origin PC. At the same >> time we have a slightly clumsy pass-by-reference access to the size of >> the translated block again for debugging purposes. >> void *tc_ptr; /* pointer to the translated code */ >> + uint32_t tc_size;/* size of translated code */ >> /* next matching tb for physical address. */ >> struct TranslationBlock *phys_hash_next; >> /* first and second physical page containing code. The lower bit > > What's the impact on the memory here? Given the alignement, we add 8 > bytes to the structure on a 64-bit host. Well this has all got a lot simpler thanks to Richard's clean-up work since this was last posted. -- Alex Bennée