From patchwork Fri Dec 7 10:36:29 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 153134 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp353069ljp; Fri, 7 Dec 2018 03:00:50 -0800 (PST) X-Google-Smtp-Source: AFSGD/WiD2tQ4/AUHneh9E5Zb8uBJ04PS26rCzgSt8QOfqoqpGSnCTTAR0KzUq+t+Jwp1rO4Gl02 X-Received: by 2002:a37:b2c2:: with SMTP id b185mr1316149qkf.194.1544180450013; Fri, 07 Dec 2018 03:00:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544180450; cv=none; d=google.com; s=arc-20160816; b=stqhbrtwi8GXv+InFJeAxAgecyQKLf3Zwtt+Vv4hAi06AkO3geWCJQm/tl4T6lJhsx HHjIimN5JS3NwKveWrtwDZQU31mmPk3sali2ybzMyZ6BuWruq2xX7hHM8BxyAs3C309N tGy7nst0m/G11CasOHV6R1jwTV37cL+93g+zoNBuCaJjmNmflAlILPCzb6mdkhTVtPiG 2kaxNyA8AkpZ4BSvrj2DP+fZKvqUa6KhYnySxF/wGub+aZtnGnAwpFGQ2c78HeoQpz9B qMKcvN878e3ACZFlxRou8a66+juazS2hum1EQhrQkshtHVyUkEedwYkvdJvj8CI6YODe 4QFQ== 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=tNA4eAmvGG3abTDvOw09uXoPy755KdFEi7Dsq5kghjjTJFmr8qMGn3sjMES7RTQd5N vLbhO2ohI444y92udq+Ji6RplzhNZPO/xmI2ATiXOdfyJC7w4gmbgvMOg1P/KIatOvEz L/ABLaQcBc3321kynPXLrJYc9UaLTX6WTj7bxpbe1dpFmssCISaltRWZywx9rfUe0Ysp g0VBFLuGiKJbvv8InaQbkzBMFCjSvGbzBXncLDtUtgY8xZ43J5qtOw0yj04aomWOoyJd +xsl6x+wxIkBoGKJf3kZ4DjYmAC5/ZkeX2xXCKJJ+kqVjKAJ9TH/geXX3cJRI9z27Uxq MSvw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=ZzCYzlbi; 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 j129si177497qkj.265.2018.12.07.03.00.49 for (version=TLS1 cipher=AES128-SHA bits=128/128); Fri, 07 Dec 2018 03:00: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=ZzCYzlbi; 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]:45381 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gVDsH-0003AL-AK for patch@linaro.org; Fri, 07 Dec 2018 06:00:49 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:59356) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gVDVW-00007M-4y for qemu-devel@nongnu.org; Fri, 07 Dec 2018 05:37:18 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gVDVS-00083O-ST for qemu-devel@nongnu.org; Fri, 07 Dec 2018 05:37:17 -0500 Received: from mail-ot1-x341.google.com ([2607:f8b0:4864:20::341]:42501) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gVDVQ-00081A-Rp for qemu-devel@nongnu.org; Fri, 07 Dec 2018 05:37:12 -0500 Received: by mail-ot1-x341.google.com with SMTP id v23so3332045otk.9 for ; Fri, 07 Dec 2018 02:37:11 -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=ZzCYzlbi/twqVQN0/OZ6HOHzP0gGrsX2Rrrev8uY4QyyErWO+5wRle5NkLzjNJjMug S0vrmqjJL/2usvF8E+QgltKNjvyQ8xNDIT2ecLZHMOJQEO5YFj7qAOG0DoVMO1z+nLhz Q/uui4nrEa6ty8GyIpk49IgC3q0EwMDZM76Is= 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=MtCS4d+qCxkEMjPNl4HE7lF7tBS2xxxC9uWi6eG4iufmx0WjUOWcH9R5yFsS22INvw zRtyJmC4dc0qafGiv3u/5kvzQcKGh7Xyda1KAz9TEjsSv8PECrUeRQyNVDWy2r1gdePG s9ED/p04c8NKBLFBOUwUvuO8fPrnkuoTqmWkCnciggIA6k7K2/EdbdMmTyfRTZ8KNpJx B1g+gbni13y8ppX7jy7DOcXXsmbgs+xe2aI9vCbf6z0huib3Idd1QNZNHOKKlDI2XsQ4 kNsNCZT/deCy8vjtyJVwQpdap+87brq8XLwT1PNb8TmcEzVtn75kE4eDqxK83207kWUN I1sA== X-Gm-Message-State: AA+aEWaKCCTZ6SnqeJBYw6JO9YF48BQq2WJb3+SCQw+mMImtPIKS1/Qy q1uV5flVC2j1sfK+Ie1BxyIP6zHihQA= X-Received: by 2002:a9d:728a:: with SMTP id t10mr1007751otj.216.1544179030932; Fri, 07 Dec 2018 02:37:10 -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.37.09 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 07 Dec 2018 02:37:10 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Date: Fri, 7 Dec 2018 04:36:29 -0600 Message-Id: <20181207103631.28193-25-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::341 Subject: [Qemu-devel] [PATCH 24/26] target/arm: Enable PAuth for user-only -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, ramana.radhakrishnan@arm.com 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 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;