From patchwork Fri Dec 14 05:23:51 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 153753 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp1676752ljp; Thu, 13 Dec 2018 21:34:14 -0800 (PST) X-Google-Smtp-Source: AFSGD/VpREntDl/qbuRxkL8JUASqegI1SZjOL/K/PcA9Zt6wleufBS8xs8/R0vRbZlxZ71UM4M7W X-Received: by 2002:a0c:98ca:: with SMTP id g10mr1497702qvd.13.1544765653916; Thu, 13 Dec 2018 21:34:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544765653; cv=none; d=google.com; s=arc-20160816; b=TPVDKnyiPRU20w8V133oEOlifYdLQ/goa1dXoTm739PY2spoByYYAlqVfeTRqB8jaY c7vG6m6Y1dpET9/kXQSQrddnR4I5p7adqK81y8C0nCXCjP38HCE61pTk0M/e42bZ800R QJ+A0+XpOHAvQHwoxReqKpXQy449Dl8hO8QYWTzEZelqTARx6ZNCnX15hm9S2biMn01m +e8EXtcOKOFOvGDtBFkaA9SYtnD3A70Cs6b+cTzlxH/d/ELlZdO0qVMLJk8mbV8Xi+wp BS2JBZoh2YzM8UJk5FI7yhexACjnlctqz+Xen7KoduJHymqnIqEc5M2m6YzSCOI+yE4v otZA== 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=PndDm5T57QNV1gN0+bEdOnkAjAxsb5a4yZH/kU0BORM=; b=f/Xly8nJCKXcQ1GqN49HUljYT55qMI6cnMQ3iGnW64ahaAQpW41G5Wtp1NTqPKLdZM x8E+D/Qk7k69VzmuHBjiQg/bfhamd+RpkW/emC/nKk3WlqHDLiny7Sqo3A/Hm06dnf3t UFaKJNUU7jfmlPShSSxzRZGvr8kqW45G5/wmnDp6fzrMjxz6B7CgOUap+n6js7lwt9GU KEPySP7F1zqeju8tosTopSMn5QBGRFQl2cgD3HUa4uyyMZ9O1i+uzNlCi9iVZzawiYfF 4xLl98Bz5v4BB1K7AmW4E4Y2Of+hqnCVlzDmdrKuaKf35Fm4Gm/iIDsGw++6vLoj0tXL wqcw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=W19RPJgR; 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 b48si2309988qtk.45.2018.12.13.21.34.13 for (version=TLS1 cipher=AES128-SHA bits=128/128); Thu, 13 Dec 2018 21:34:13 -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=W19RPJgR; 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]:59478 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gXg73-0004hr-9y for patch@linaro.org; Fri, 14 Dec 2018 00:34:13 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55685) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gXfxY-0004PU-Sd for qemu-devel@nongnu.org; Fri, 14 Dec 2018 00:24:27 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gXfxX-0005MU-Q8 for qemu-devel@nongnu.org; Fri, 14 Dec 2018 00:24:24 -0500 Received: from mail-ot1-x344.google.com ([2607:f8b0:4864:20::344]:34178) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gXfxX-0005Ln-J4 for qemu-devel@nongnu.org; Fri, 14 Dec 2018 00:24:23 -0500 Received: by mail-ot1-x344.google.com with SMTP id t5so4341951otk.1 for ; Thu, 13 Dec 2018 21:24:23 -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=PndDm5T57QNV1gN0+bEdOnkAjAxsb5a4yZH/kU0BORM=; b=W19RPJgROrGdvDyDtjA8+OtzPjaqw8V1++scCd5THWzZmsV7PX+xHxVY0uEPDu/L3m y3YjUomIPaETlwhNEWxImNGWBQouo6lmdqIYz4fH183euEEo8WYkaGxPiCtX7MItv612 e7VDOj2bU80Tin4cJklRvRoOb9PqNyg/nzjsg= 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=PndDm5T57QNV1gN0+bEdOnkAjAxsb5a4yZH/kU0BORM=; b=oLRhPAFS0rSyWjCSx1QcyVZrkNOrqfRcTvfUQOI9xuoMny+ggs3CSb3Yg8ZwpgroYX smDQzo6w7ZkDY2xewKBeqxXrH/azVevKge+VGlRK64T1c+6CqDurmRlTDes/dbAFxEyH xw2j8tCem4bCN5qz7eQiPWm7Vta+KqbCFluKfuCtNKu0IoDOftOMAhxYud9Np9rjGo1+ eeXfpuXwz/c49Iz+FKoF7nG/PAT360t/+inSMgxXIgJ7yiTNCP5nQKlA3/1CvR34PWVM SRaYwI9H2IE58KtFwvdRjsOrZ9WQ0ogM4NOAn3iiVWER9wc87aljbNl02JNRmP0s90xL MqwA== X-Gm-Message-State: AA+aEWZRhxaET8THnGuQ9LutWBQlM48dNiu7vmww+rJ5Ol6gNdaUWqIL yJrCkNtIyHS4rfjfX8303GrR8YiQDgAVWw== X-Received: by 2002:a9d:2f66:: with SMTP id h93mr1195975otb.165.1544765062546; Thu, 13 Dec 2018 21:24:22 -0800 (PST) Received: from cloudburst.twiddle.net ([187.217.227.243]) by smtp.gmail.com with ESMTPSA id r1sm1845379oti.44.2018.12.13.21.24.21 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 13 Dec 2018 21:24:21 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Date: Thu, 13 Dec 2018 23:23:51 -0600 Message-Id: <20181214052410.11863-9-richard.henderson@linaro.org> X-Mailer: git-send-email 2.17.2 In-Reply-To: <20181214052410.11863-1-richard.henderson@linaro.org> References: <20181214052410.11863-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::344 Subject: [Qemu-devel] [PATCH v2 08/27] 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 Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Reviewed-by: Peter Maydell Signed-off-by: Richard Henderson --- target/arm/translate-a64.c | 8 ++++++++ 1 file changed, 8 insertions(+) -- 2.17.2 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; }