From patchwork Fri Dec 7 10:36:13 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 153111 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp337066ljp; Fri, 7 Dec 2018 02:39:49 -0800 (PST) X-Google-Smtp-Source: AFSGD/WkfDbdNXVu6Si0uXkIRYKHC9K9D/hZqXTv+OuaC7grc0wqoe5D7pKypk04kHjLfYU/5FBl X-Received: by 2002:ac8:3181:: with SMTP id h1mr1494781qte.14.1544179189711; Fri, 07 Dec 2018 02:39:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544179189; cv=none; d=google.com; s=arc-20160816; b=RM6++s8Kl5t7fBpm7HdLwdI+3XvCLT/bhf4tvfQvs4bTIKMJ9Ahb/6VMM12FS2y5R2 chM8jnwEGQlymPLglt3NrLNsPYpJATR3qighnJhMhu2bvAl0cghFv9CSpnFjEzxWCD9B r6gQGi8YjCWHCVilZXgW3eDL6FkM6qdijW5xdT0pbZg418SSDwQYo3ew68GR99qrb25D P6XBE+i9LvM+RyRLmDTCxk1GEAtY9fuXQqfG0/RFqcfWhV7XHT/oqx7KWTz9TYyNcH0L QQd0+wM7+9HvIkLmanFo4NrArkIfo472+KHYPSUhxke2SUMnG8nBOMUQFgvv1dWPimas t0gA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:references:in-reply-to :message-id:date:to:from:dkim-signature; bh=EoYoD6oIbPQGvsMFdoZaRrFdYbqAdTr3zU+lFQH+BQ8=; b=AS0drdmFgYhTDDfm5ZZotlPFD9R2wzlbvM/Je1fPGEjvBYOSBDpFiYOVhhLUynhhQF wI3onLL/1UtHiez7Gp5HCo2LLXkSyk/4KhaiNKdcZhYL+KGck/DweZb1qEsmLU/Oynen 12AL+v5XP4CkRI5ssxI0B/LMvPe+HuoprAibCi/UfPDHU0mySWEFYq0amyubACRTVyn1 G6NxaqSHauxqfFM/yF87aY7X1pgYcmfp2FNI7dNSCo2HEDO30SP9Ja3GK3ZhJnKG0Ih1 VbfFIHBYVyLZWs1uXzJEMQecPFtWnUkhNdDFhxTciYn+4KjkPiXCQzm6+5FQ1QH0uoVu GbAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=KRaZjYfL; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id x14si1820556qts.71.2018.12.07.02.39.49 for (version=TLS1 cipher=AES128-SHA bits=128/128); Fri, 07 Dec 2018 02:39:49 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=KRaZjYfL; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:45263 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gVDXx-0003og-31 for patch@linaro.org; Fri, 07 Dec 2018 05:39:49 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:59104) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gVDV4-000842-Vl for qemu-devel@nongnu.org; Fri, 07 Dec 2018 05:36:51 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gVDV3-0007TY-BN for qemu-devel@nongnu.org; Fri, 07 Dec 2018 05:36:50 -0500 Received: from mail-oi1-x241.google.com ([2607:f8b0:4864:20::241]:42314) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gVDV3-0007Sz-6L for qemu-devel@nongnu.org; Fri, 07 Dec 2018 05:36:49 -0500 Received: by mail-oi1-x241.google.com with SMTP id w13so2985710oiw.9 for ; Fri, 07 Dec 2018 02:36:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=EoYoD6oIbPQGvsMFdoZaRrFdYbqAdTr3zU+lFQH+BQ8=; b=KRaZjYfLRM9+XlhL42QgyYxRmiYcZ7iYVF6KLlx4wX+1cQXYe4FE2Qbt32VaA4hG67 0xtPRsMEAGzRtNanCZr0DYdAF7KFH1DTa/ILewW1ntNglRZ/Uw6Ugd5l/P7lAzrFt/sg 6i8Nube4U8PttcmU8vcDK9ChJ4XCbuQYJrNuo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=EoYoD6oIbPQGvsMFdoZaRrFdYbqAdTr3zU+lFQH+BQ8=; b=cOy0vphezjKaFH9YKQN7qhm7g9nxZbNWo6H2wGzFu6Q0waiYKD1ENf5McQaAmnnjp/ BzpsmH9yDf7mIwCqusHE44hfKGVhi5lkO4DCdLjM3n8my5/cHjQMEVejdAbU6BXwUeUr JYHinXtOasfyylfluOTHsTslbceTY/QBxc8BzA7kESBrjErS5wBPYMHhtD5bPaCDsK90 G6n4391e3Znqy6NKo+PiL1sMYg4dfO4RXAwzlLOVAmxnskCVAXSiWI7ZSEr7uS3tE5QH jYjjKi4i5XxbqnBU+39REDdML4nH0OqxdAnAR2DvEiOvefiYSSPTmLP28N9PJoBTrlK/ ZWFg== X-Gm-Message-State: AA+aEWa6p3YvwBH56hkIL5og4rzeXa5UxXZcG1/tmDF85QtZ5dODIaBZ l1ZTitehqru3qI0X0puzNWvg3bUnFGQ= X-Received: by 2002:aca:48d1:: with SMTP id v200mr960604oia.69.1544179008188; Fri, 07 Dec 2018 02:36:48 -0800 (PST) Received: from cloudburst.twiddle.net (172.189-204-159.bestel.com.mx. [189.204.159.172]) by smtp.gmail.com with ESMTPSA id c19sm2037594otl.16.2018.12.07.02.36.47 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 07 Dec 2018 02:36:47 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Date: Fri, 7 Dec 2018 04:36:13 -0600 Message-Id: <20181207103631.28193-9-richard.henderson@linaro.org> X-Mailer: git-send-email 2.17.2 In-Reply-To: <20181207103631.28193-1-richard.henderson@linaro.org> References: <20181207103631.28193-1-richard.henderson@linaro.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::241 Subject: [Qemu-devel] [PATCH 08/26] target/arm: Decode PAuth within disas_data_proc_2src X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: peter.maydell@linaro.org, ramana.radhakrishnan@arm.com Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Signed-off-by: Richard Henderson --- target/arm/translate-a64.c | 8 ++++++++ 1 file changed, 8 insertions(+) -- 2.17.2 Reviewed-by: Peter Maydell diff --git a/target/arm/translate-a64.c b/target/arm/translate-a64.c index 7ba4c996cf..d034a5edf3 100644 --- a/target/arm/translate-a64.c +++ b/target/arm/translate-a64.c @@ -4884,6 +4884,13 @@ static void disas_data_proc_2src(DisasContext *s, uint32_t insn) case 11: /* RORV */ handle_shift_reg(s, A64_SHIFT_TYPE_ROR, sf, rm, rn, rd); break; + case 12: /* PACGA */ + if (sf == 0 || !dc_isar_feature(aa64_pauth, s)) { + goto do_unallocated; + } + gen_helper_pacga(cpu_reg(s, rd), cpu_env, + cpu_reg(s, rn), cpu_reg_sp(s, rm)); + break; case 16: case 17: case 18: @@ -4899,6 +4906,7 @@ static void disas_data_proc_2src(DisasContext *s, uint32_t insn) break; } default: + do_unallocated: unallocated_encoding(s); break; }