From patchwork Fri Dec 14 05:24:08 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 153752 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp1676561ljp; Thu, 13 Dec 2018 21:33:51 -0800 (PST) X-Google-Smtp-Source: AFSGD/W7kFUxH6tVDYWrN5hIb6IskZzLK+5KV8K/YgweOlfzWJZ/h34L3lnM9OItAWtw4MWlZ+5C X-Received: by 2002:a0c:9359:: with SMTP id e25mr1476302qve.203.1544765631538; Thu, 13 Dec 2018 21:33:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544765631; cv=none; d=google.com; s=arc-20160816; b=Epa+hu9yitilir5y4G9TxQw91Kb4XXsbimRiC26lYPF1ttAWQL41k/w/t3yxiv29wi Eiimh3W8FI9lb6cHhGFkl1D4kxRGELvGYhc8DbIY6d13+yp2O7UuC4DycFfWjHRup4id uZYHR8zYtQXmfeBZ6m2kigasZi7eWBwUfQDNOe2VE/AFSJUnU/YFwEUKG5Ebfuica7/H 2Y3s7815lTTK4xxV0oJTDjRlXLy5NNSsBg1ZkiG/8NaA/8ysdhSjW69anz5wgs7fYVLg xfQ7Fcqef1m3X1mnLsA3EbKdEPFCMr9Rdv2Xth6Ns48rYCyGI5kDuK/KLc96oBegRnqA W+dQ== 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=U+CvM+uKLk7wZoL2et6kG5fijz4SeoZRCLhgUSu16Lc=; b=mxGiKCJLB8iqQebURAG1WV6+5sdjcqlztSuHEZEJP/IIysxhXcin6byo4fazdllCCA xUzcUqgLWbbFafUpVFtUVomwZse6NIY4Fr0WRSabWHSnz1knenwVRNrJX9RGFIROWW8y miKmsaSpBA6swBtMX0kN0ai9Cjr89764BuDP4BgiQh76F6StNaFX5PuaOGFHiefqBvgO uiwtfmw9ZDvEyo81Sq7ElLoWOswwgDHH6ZAEH5KyZOFt1qBoFkHzTamTXUyuonPclReu 71+hUN35XY0JI51RaMzV3PbJL+qcpVfGSqOb716aDhtlG5TrXr7BfLlo888fYBp/wbKZ 6UcA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=M6QFvIA4; 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 17si2274473qvj.9.2018.12.13.21.33.51 for (version=TLS1 cipher=AES128-SHA bits=128/128); Thu, 13 Dec 2018 21:33:51 -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=M6QFvIA4; 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]:59472 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gXg6h-0002xO-2b for patch@linaro.org; Fri, 14 Dec 2018 00:33:51 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55879) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gXfxu-0004mc-66 for qemu-devel@nongnu.org; Fri, 14 Dec 2018 00:24:47 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gXfxq-0005VO-HU for qemu-devel@nongnu.org; Fri, 14 Dec 2018 00:24:46 -0500 Received: from mail-ot1-x343.google.com ([2607:f8b0:4864:20::343]:42972) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gXfxq-0005Uo-C1 for qemu-devel@nongnu.org; Fri, 14 Dec 2018 00:24:42 -0500 Received: by mail-ot1-x343.google.com with SMTP id v23so4293939otk.9 for ; Thu, 13 Dec 2018 21:24:42 -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=U+CvM+uKLk7wZoL2et6kG5fijz4SeoZRCLhgUSu16Lc=; b=M6QFvIA4mgmmLoZ4MkYh67thVteHDU8bIa29NVVrZbbs9eAcyN3mE7HWwA/KR0FQwy H2ZL5EXzpv96dJSERVrdufKB7x6kCWlxyJGjaYQxC/mmGBKast/NdnsSznqisbIwoORL TLRCKzYgr1cwFZwYFVYpCYErc+/7PBL5BX/t8= 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=U+CvM+uKLk7wZoL2et6kG5fijz4SeoZRCLhgUSu16Lc=; b=fxTeEQTg/29+zRdGvI9G3juPn+ITVKPe+BN7Erovmzbce1ve4ZWM8x/Irz7NB/zys8 fu7sc2wddgo8ypEII1T4PKX2xvGzk0pJZUwkd/wCxpjB3yGI4nJNNTo9/pz3q2HbgxuY w4fH+4kILw3AVv6Fc7DcyT3jUYEzhicfXQl5sEt7OXf0QJdEgtPJ/19t2NpkPzp9M/hH 3DJTP2SJrjR8DIDteoDuI2yiQOyAIb1QIkUvzT6uzKmqMKgWX1l2brn4jfA7sEIa4nwK x3RKfxT56ZG5zYR2/mj7Ev4sDUx5Nh6G2tICqD1aJndcdctq1FpOwVbB64BlU3v3aSFC elMg== X-Gm-Message-State: AA+aEWZ8c0fQdbMA8bECtFkZoAsgrCQHZh75pg1twQ+JAmoUqyaHLhvF vVBK2JmhkBiNfww8uFoyc/nU3C8f77muSA== X-Received: by 2002:a9d:6009:: with SMTP id h9mr1193550otj.349.1544765081195; Thu, 13 Dec 2018 21:24:41 -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.40 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 13 Dec 2018 21:24:40 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Date: Thu, 13 Dec 2018 23:24:08 -0600 Message-Id: <20181214052410.11863-26-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::343 Subject: [Qemu-devel] [PATCH v2 25/27] 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: , Cc: peter.maydell@linaro.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Signed-off-by: Richard Henderson --- target/arm/cpu64.c | 4 ++++ 1 file changed, 4 insertions(+) -- 2.17.2 Reviewed-by: Peter Maydell diff --git a/target/arm/cpu64.c b/target/arm/cpu64.c index 1d57be0c91..84f70b2a24 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;