From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45938) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1anmAE-0007F3-LZ for qemu-devel@nongnu.org; Wed, 06 Apr 2016 08:02:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1anmAD-00064B-VR for qemu-devel@nongnu.org; Wed, 06 Apr 2016 08:02:26 -0400 Received: from mail-oi0-x244.google.com ([2607:f8b0:4003:c06::244]:35215) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1anmAD-000641-Rb for qemu-devel@nongnu.org; Wed, 06 Apr 2016 08:02:25 -0400 Received: by mail-oi0-x244.google.com with SMTP id w18so6600319oie.2 for ; Wed, 06 Apr 2016 05:02:25 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <5704F683.7020206@redhat.com> References: <1459834253-8291-1-git-send-email-cota@braap.org> <1459834253-8291-3-git-send-email-cota@braap.org> <87shz0tdr3.fsf@fimbulvetr.bsc.es> <87d1q4rplz.fsf@fimbulvetr.bsc.es> <5703E85C.7040900@twiddle.net> <87twjfria7.fsf@fimbulvetr.bsc.es> <57040ED6.2050202@twiddle.net> <87egajq0kt.fsf@fimbulvetr.bsc.es> <5704F683.7020206@redhat.com> Date: Wed, 6 Apr 2016 14:02:25 +0200 Message-ID: From: Laurent Desnogues Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH 02/10] compiler.h: add QEMU_CACHELINE + QEMU_ALIGN() + QEMU_CACHELINE_ALIGNED List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: MTTCG Devel , Peter Maydell , Peter Crosthwaite , QEMU Developers , "Emilio G. Cota" , Sergey Fedorov , =?UTF-8?B?QWxleCBCZW5uw6ll?= , Richard Henderson On Wed, Apr 6, 2016 at 1:44 PM, Paolo Bonzini wrote: > > > On 05/04/2016 22:09, Llu=C3=ADs Vilanova wrote: >> Ah. That's just an example. For cross-compilation you would use a differ= ent >> march argument (or none to use the default target sub-arch) and get the >> parameter for the target processor. This should already be known by conf= igure as >> part of the arguments to select the cross-compiler and target architectu= re >> (e.g., CC). > > I would just use 64, with special cases for PPC and s390... even for > AArch64 128 seems a little wasteful. As far as I know, the only AArch64 CPU to have 128-byte cache line is Cavium ThunderX (it seems to also be the case for Cavium MIPS-based CPU). Laurent