From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58750) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WFWzD-00058J-A4 for qemu-devel@nongnu.org; Mon, 17 Feb 2014 17:48:35 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WFWz4-0004fj-U9 for qemu-devel@nongnu.org; Mon, 17 Feb 2014 17:48:27 -0500 Received: from mail-qc0-x234.google.com ([2607:f8b0:400d:c01::234]:49098) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WFWz4-0004fe-Px for qemu-devel@nongnu.org; Mon, 17 Feb 2014 17:48:18 -0500 Received: by mail-qc0-f180.google.com with SMTP id i17so24357316qcy.25 for ; Mon, 17 Feb 2014 14:48:18 -0800 (PST) Sender: Richard Henderson Message-ID: <530238E9.4010107@twiddle.net> Date: Mon, 17 Feb 2014 10:29:29 -0600 From: Richard Henderson MIME-Version: 1.0 References: <1392574872-28725-1-git-send-email-peter.maydell@linaro.org> <1392574872-28725-6-git-send-email-peter.maydell@linaro.org> In-Reply-To: <1392574872-28725-6-git-send-email-peter.maydell@linaro.org> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 5/6] target-arm: A64: Implement PMULL instruction List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell , qemu-devel@nongnu.org Cc: Peter Crosthwaite , patches@linaro.org, Michael Matz , Alexander Graf , Claudio Fontana , Dirk Mueller , Will Newton , Laurent Desnogues , =?ISO-8859-1?Q?Alex_Benn=E9e?= , kvmarm@lists.cs.columbia.edu, Christoffer Dall On 02/16/2014 12:21 PM, Peter Maydell wrote: > +/* Helper function for 64 bit polynomial multiply case: > + * perform PolynomialMult(op1, op2) and return either the top or > + * bottom half of the 128 bit result. > + */ > +uint64_t HELPER(neon_pmull_64_lo)(CPUARMState *env, uint64_t op1, uint64_t op2) > +{ > + int bitnum; > + uint64_t res = 0; > + > + for (bitnum = 0; bitnum < 64; bitnum++) { > + if (op1 & (1ULL << bitnum)) { > + res ^= op2 << bitnum; > + } > + } > + return res; > +} These functions don't use env. Why are you passing it? r~