From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47646) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W1m1h-0008GV-Bi for qemu-devel@nongnu.org; Fri, 10 Jan 2014 19:02:14 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W1m1c-0002a8-BG for qemu-devel@nongnu.org; Fri, 10 Jan 2014 19:02:09 -0500 Received: from mail-lb0-f175.google.com ([209.85.217.175]:45341) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W1m1c-0002a4-4V for qemu-devel@nongnu.org; Fri, 10 Jan 2014 19:02:04 -0500 Received: by mail-lb0-f175.google.com with SMTP id w6so3802797lbh.6 for ; Fri, 10 Jan 2014 16:02:02 -0800 (PST) MIME-Version: 1.0 In-Reply-To: <52D04461.9030307@twiddle.net> References: <1389373972-27686-1-git-send-email-peter.maydell@linaro.org> <1389373972-27686-4-git-send-email-peter.maydell@linaro.org> <52D04461.9030307@twiddle.net> From: Peter Maydell Date: Sat, 11 Jan 2014 00:01:42 +0000 Message-ID: Content-Type: text/plain; charset=UTF-8 Subject: Re: [Qemu-devel] [PATCH 03/10] target-arm: A64: Add decode skeleton for SIMD data processing insns List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Richard Henderson Cc: Laurent Desnogues , Patch Tracking , Michael Matz , Alexander Graf , QEMU Developers , Claudio Fontana , Dirk Mueller , Will Newton , =?UTF-8?B?QWxleCBCZW5uw6ll?= , "kvmarm@lists.cs.columbia.edu" , Christoffer Dall On 10 January 2014 19:05, Richard Henderson wrote: > On 01/10/2014 09:12 AM, Peter Maydell wrote: >> static void disas_data_proc_simd(DisasContext *s, uint32_t insn) >> { >> /* Note that this is called with all non-FP cases from >> * table C3-6 so it must UNDEF for entries not specifically >> * allocated to instructions in that table. >> */ >> - unsupported_encoding(s, insn); >> + AArch64DecodeFn *fn = lookup_disas_fn(&data_proc_simd[0], insn); >> + if (fn) { >> + (fn) (s, insn); > > Oh, do you want to CheckFPAdvSIMDEnabled64 here before calling fn? > Otherwise that's the first thing I noticed missing from patch 4. We don't currently check that for the FP insns either. Since it's a system register check and will always pass for usermode emulation I was planning to leave it for when I did system emulation and wired up the CPACR_EL1. thanks -- PMM