From patchwork Fri Jan 18 14:57:49 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 155944 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp3353350jaa; Fri, 18 Jan 2019 07:01:51 -0800 (PST) X-Google-Smtp-Source: ALg8bN6wyLDasZGPrcpCoEq30ZyAL5M7YBpz4ob1QIr/KpxblEkK9XosZE3pEfjTFjivv2VjlWSJ X-Received: by 2002:a5d:4d46:: with SMTP id a6mr17237739wru.28.1547823711373; Fri, 18 Jan 2019 07:01:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547823711; cv=none; d=google.com; s=arc-20160816; b=pWF5WXIcxaoEfJZk77aTV0+v59rwj0dHvtSQ0KE5ENK+cArPp4M3gKfdD2TJklHrMO eaO7suNVy4Ggn89KEZNOPmCKu+nS+UK4bD+EGFPvZ+2NaGlu8yqllElLkgbDk0M8fRUz uiexKOqAPK1clUkyY4meXzUKtvoFB5IxDiDL5v/GrpLt56tvQzW9bPU+D2bF4DWe+C/A qHsWJduglIdnPcuWMhVAKiWBemMOaPpDf9PC6b5F1EbrLYrCfa6QiWaIe8wjSxKi05xs q+P9MMgBWec3H8jGsjQzEhJ79Q0aRJoDHzwuXX8gnW4hV01iH+SRTiZn31thTkKlV1PM XFnw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:to:from:dkim-signature; bh=7iqUfH3IXLbG1MmTZd8TBhauf7w/9wGdBtapId3T9jk=; b=T5OnfwCSFmbRVuV1AfTbOVO7jCHOwlj9sl0Nq8UDOZyFo60Nfvp6nWVkd8TA9P2cMq Mdlq94SZny9LWZLnVKfIDZQmuEFwneNE+nd66lxDCy7WpL8eFYxF+DB1G2WEXsgHGhCm 52/aX45re6tmay0LNSuAbtEgnUFB23YIDNj/GE9JcZNwWLhx6Zts6uwjJ09FvN3EgvKV NeD272SwEYa3HyGXa4/iUxSaiFAFeuzRrjw9vVnL+vwxqcwpFTBZEXuOD+VROeCXk+Yq yomcuqd0ddGZxwBBHcUBxKezvwiAfZnkVvd19mjCYtLqdWXLFBcZ9ObxhQnVSwHBRO0E WAxw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=A27EDxPM; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 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. [209.51.188.17]) by mx.google.com with ESMTPS id v27si65121452wra.457.2019.01.18.07.01.51 for (version=TLS1 cipher=AES128-SHA bits=128/128); Fri, 18 Jan 2019 07:01:51 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=A27EDxPM; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 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 ([127.0.0.1]:41035 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gkVeY-0004S5-8b for patch@linaro.org; Fri, 18 Jan 2019 10:01:50 -0500 Received: from eggs.gnu.org ([209.51.188.92]:43209) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gkVbb-0002sP-3s for qemu-devel@nongnu.org; Fri, 18 Jan 2019 09:58:47 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gkVba-0007Vu-2a for qemu-devel@nongnu.org; Fri, 18 Jan 2019 09:58:47 -0500 Received: from mail-wr1-x430.google.com ([2a00:1450:4864:20::430]:37265) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gkVbZ-0007VC-Qf for qemu-devel@nongnu.org; Fri, 18 Jan 2019 09:58:45 -0500 Received: by mail-wr1-x430.google.com with SMTP id s12so15435560wrt.4 for ; Fri, 18 Jan 2019 06:58:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=7iqUfH3IXLbG1MmTZd8TBhauf7w/9wGdBtapId3T9jk=; b=A27EDxPM82/tdgJ15xEJitC3tOl/C9pNK1eBho5OOgdChPiMOkAdGaWPVFSdRSIqP0 HJCbfKAB+HCxVveap9Lu7EUva/mz40iuGinkbqnFSFZLHDA+G04OH2VeuCG72zPF8h6K 72Ncz/qurzFBAP5ccPoNmamqDtMB9fybjqbME= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=7iqUfH3IXLbG1MmTZd8TBhauf7w/9wGdBtapId3T9jk=; b=tYDGxK8TAQe1u4gMJP0TSXgdTV24pRUxjr4Rg5c2rgGRcdAUWymJvAabTFXLwqPg+L B89446tgwWBbpuyi1mRrJUbuBaFM9WygbwwYix5rxyDeZpEeYaiaOi60QKe/rITXjIyD LEvVUU1UmTahaumZX4bZZbMJcb/BTH91w/3hKk4vHR0jLBTd1A5zIRuFn6GXodILdIu1 +fw+eudyqjco5xyORDqt4B4aMLY+26awxeLN8vYzOS0D0Sm0fQ1+ArT9K4ObECZh8PIv fhdr+eKLH0UoZRCAKfmhF6lmatDMeuNpwBPGAL2erR9XEgNZRu+eGsG2aNO2wbW9lGqr IFag== X-Gm-Message-State: AJcUukcaYojNCN6g7SFdpxgrjNRV//RCn4FlmfG8VnDebo2ETgK2LdZn DsdZknG4xCyFpiPlZEkQigGSsCx/fT+vNQ== X-Received: by 2002:adf:df01:: with SMTP id y1mr17544744wrl.127.1547823524668; Fri, 18 Jan 2019 06:58:44 -0800 (PST) Received: from orth.archaic.org.uk (orth.archaic.org.uk. [81.2.115.148]) by smtp.gmail.com with ESMTPSA id e27sm92094561wra.67.2019.01.18.06.58.43 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 18 Jan 2019 06:58:44 -0800 (PST) From: Peter Maydell To: qemu-devel@nongnu.org Date: Fri, 18 Jan 2019 14:57:49 +0000 Message-Id: <20190118145805.6852-34-peter.maydell@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190118145805.6852-1-peter.maydell@linaro.org> References: <20190118145805.6852-1-peter.maydell@linaro.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::430 Subject: [Qemu-devel] [PULL 33/49] target/arm: Enable PAuth for -cpu max 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: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: Richard Henderson Reviewed-by: Peter Maydell Signed-off-by: Richard Henderson Message-id: 20190108223129.5570-30-richard.henderson@linaro.org Signed-off-by: Peter Maydell --- target/arm/cpu64.c | 4 ++++ 1 file changed, 4 insertions(+) -- 2.20.1 diff --git a/target/arm/cpu64.c b/target/arm/cpu64.c index 4b544a1c588..1974f1aeb74 100644 --- a/target/arm/cpu64.c +++ b/target/arm/cpu64.c @@ -316,6 +316,10 @@ static void aarch64_max_initfn(Object *obj) t = cpu->isar.id_aa64isar1; t = FIELD_DP64(t, ID_AA64ISAR1, FCMA, 1); + t = FIELD_DP64(t, ID_AA64ISAR1, APA, 1); /* PAuth, architected only */ + t = FIELD_DP64(t, ID_AA64ISAR1, API, 0); + t = FIELD_DP64(t, ID_AA64ISAR1, GPA, 1); + t = FIELD_DP64(t, ID_AA64ISAR1, GPI, 0); cpu->isar.id_aa64isar1 = t; t = cpu->isar.id_aa64pfr0;