From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:57485) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d2yEJ-0002KJ-VT for qemu-devel@nongnu.org; Tue, 25 Apr 2017 07:02:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d2yEJ-00025E-7U for qemu-devel@nongnu.org; Tue, 25 Apr 2017 07:02:00 -0400 Sender: Richard Henderson References: <1493106839-10438-1-git-send-email-cota@braap.org> <1493106839-10438-4-git-send-email-cota@braap.org> From: Richard Henderson Message-ID: <4867e64c-c26d-f71b-2708-c2a3163c20d1@twiddle.net> Date: Tue, 25 Apr 2017 13:01:48 +0200 MIME-Version: 1.0 In-Reply-To: <1493106839-10438-4-git-send-email-cota@braap.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v2 03/13] tcg: enforce 64-byte alignment of TCGContext List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Emilio G. Cota" , qemu-devel@nongnu.org Cc: Paolo Bonzini , Peter Crosthwaite , Peter Maydell , Eduardo Habkost , Andrzej Zaborowski , Aurelien Jarno , Alexander Graf , Stefan Weil , qemu-arm@nongnu.org, alex.bennee@linaro.org, Pranith Kumar On 04/25/2017 09:53 AM, Emilio G. Cota wrote: > This will allow us to prevent cache line false sharing in TCGContext. > > Before: > $ objdump -t build/x86_64-linux-user/qemu-x86_64 | grep tcg_ctx > 00000000003ea820 g O .bss 00000000000152d8 tcg_ctx > > After: > $ objdump -t build/x86_64-linux-user/qemu-x86_64 | grep tcg_ctx > 00000000003ea880 g O .bss 0000000000015300 tcg_ctx > > Signed-off-by: Emilio G. Cota > --- > tcg/tcg.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/tcg/tcg.h b/tcg/tcg.h > index 6c216bb..5fdbfe3 100644 > --- a/tcg/tcg.h > +++ b/tcg/tcg.h > @@ -727,7 +727,7 @@ struct TCGContext { > > uint16_t gen_insn_end_off[TCG_MAX_INSNS]; > target_ulong gen_insn_data[TCG_MAX_INSNS][TARGET_INSN_START_WORDS]; > -}; > +} QEMU_ALIGNED(64); Let's drop the alignment and structure re-arrangement for now and focus on the task of goto_ptr. r~