From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45205) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bGAlR-0006Aq-0i for qemu-devel@nongnu.org; Thu, 23 Jun 2016 15:58:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bGAlK-0005zk-D0 for qemu-devel@nongnu.org; Thu, 23 Jun 2016 15:58:11 -0400 Received: from mail-wm0-x231.google.com ([2a00:1450:400c:c09::231]:35633) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bGAlJ-0005zE-1A for qemu-devel@nongnu.org; Thu, 23 Jun 2016 15:58:06 -0400 Received: by mail-wm0-x231.google.com with SMTP id v199so139466317wmv.0 for ; Thu, 23 Jun 2016 12:58:04 -0700 (PDT) From: Alex =?utf-8?Q?Benn=C3=A9e?= In-reply-to: Date: Thu, 23 Jun 2016 20:58:06 +0100 Message-ID: <87eg7nr835.fsf@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Subject: Re: [Qemu-devel] [RFC v3 PATCH 03/14] tcg/aarch64: Add support for fence List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Richard Henderson Cc: Pranith Kumar , Claudio Fontana , "open list:AArch64 target" , "open list:All patches CC here" , serge.fdrv@gmail.com, Claudio Fontana Richard Henderson writes: > On 06/23/2016 09:18 AM, Alex Bennée wrote: >>> > + /* System instructions. */ >>> > + DMB_ISH = 0xd50338bf, >> As ISH is part of the CRm encoding I wonder if this should be split into >> the main DMB encoding (0xd50330bf) and a separate set of CRm defines. >> >> In fact the documentation of the struct above implies you should >> probably have: >> >> I6260_DMB = 0xd50330bf, >> >> And then: >> >> static void tcg_out_insn_6260(TCGContext *s, AArch64Insn insn, int crm); >> { >> tcg_out32(s, insn | (crm & 0xf) << 8); >> } > > I don't see any benefit to doing this over or-ing in the pre-shifted > values. I'm mainly thinking about keeping in line with the layout of the rest of the code. I would home the compiler would generate the same either way! -- Alex Bennée