From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:60045) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vthgp-0001gR-10 for qemu-devel@nongnu.org; Thu, 19 Dec 2013 12:47:23 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vthgg-0000ls-De for qemu-devel@nongnu.org; Thu, 19 Dec 2013 12:47:14 -0500 Received: from mail-qa0-x22e.google.com ([2607:f8b0:400d:c00::22e]:48581) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vthgg-0000lo-7P for qemu-devel@nongnu.org; Thu, 19 Dec 2013 12:47:06 -0500 Received: by mail-qa0-f46.google.com with SMTP id f11so5039402qae.19 for ; Thu, 19 Dec 2013 09:47:05 -0800 (PST) Sender: Richard Henderson Message-ID: <52B33112.7090700@twiddle.net> Date: Thu, 19 Dec 2013 09:46:58 -0800 From: Richard Henderson MIME-Version: 1.0 References: <1387293144-11554-1-git-send-email-peter.maydell@linaro.org> <1387293144-11554-3-git-send-email-peter.maydell@linaro.org> In-Reply-To: <1387293144-11554-3-git-send-email-peter.maydell@linaro.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 02/21] target-arm: A64: add support for ld/st unsigned imm List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell , qemu-devel@nongnu.org Cc: patches@linaro.org, Michael Matz , Claudio Fontana , Dirk Mueller , Will Newton , Laurent Desnogues , =?UTF-8?B?QWxleCBCZW5uw6ll?= , kvmarm@lists.cs.columbia.edu, Christoffer Dall On 12/17/2013 07:12 AM, Peter Maydell wrote: > + if (size == 3 && opc == 2) { > + /* PRFM - prefetch */ > + return; > + } > + if (opc == 3 && size > 1) { > + unallocated_encoding(s); > + return; > + } > + is_store = (opc == 0); > + is_signed = opc & (1<<1); > + is_extended = (size < 3) && (opc & 1); I thought we'd discussed rearranging this bit of decoding to better match the ARM? In particular, opc = 2 && size = 2 should be unallocated. And please no (1<<1). r~