Received: from eggs.gnu.org ([2001:4830:134:3::10]:44795) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f9dhr-00007v-AF for qemu-devel@nongnu.org; Fri, 20 Apr 2018 17:36:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f9dho-0002XD-6k for qemu-devel@nongnu.org; Fri, 20 Apr 2018 17:36:35 -0400 Received: from mail-pl0-x232.google.com ([2607:f8b0:400e:c01::232]:46801) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1f9dho-0002Wy-0s for qemu-devel@nongnu.org; Fri, 20 Apr 2018 17:36:32 -0400 Received: by mail-pl0-x232.google.com with SMTP id 59-v6so5911655plc.13 for ; Fri, 20 Apr 2018 14:36:31 -0700 (PDT) References: <20180420155045.18862-1-alex.bennee@linaro.org> <20180420155045.18862-7-alex.bennee@linaro.org> From: Richard Henderson Message-ID: Date: Fri, 20 Apr 2018 11:36:26 -1000 MIME-Version: 1.0 In-Reply-To: <20180420155045.18862-7-alex.bennee@linaro.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Subject: Re: [Qemu-devel] [RFC PATCH 6/6] accel/tcg: convert 4/8 byte access and remove softmmu_template List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?UTF-8?Q?Alex_Benn=c3=a9e?= , qemu-devel@nongnu.org Cc: peter.maydell@linaro.org, pbonzini@redhat.com, Peter Crosthwaite , Richard Henderson On 04/20/2018 05:50 AM, Alex Bennée wrote: > +tcg_target_ulong __attribute__((flatten)) helper_le_ldq_mmu(CPUArchState *env, > + target_ulong addr, > + TCGMemOpIdx oi, > + uintptr_t retaddr) > +{ > + return load_helper(env, addr, 8, false, false, oi, retaddr); > +} This doesn't work for 32-bit host. You really do have to mind the block comment that you copied and use uint64_t, both in load_helper and as the return value here. > +#ifdef TARGET_WORDS_BIGENDIAN > +#define NEED_BE_BSWAP 0 > +#define NEED_LE_BSWAP 1 > +#else > +#define NEED_BE_BSWAP 1 > +#define NEED_LE_BSWAP 0 > +#endif Why have two variables for this? r~