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: 10730537 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id C803414E2 for ; Fri, 14 Dec 2018 05:32:20 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B54A52CB66 for ; Fri, 14 Dec 2018 05:32:20 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A4E252D21B; Fri, 14 Dec 2018 05:32:20 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.7 required=2.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 569332CB66 for ; Fri, 14 Dec 2018 05:32:20 +0000 (UTC) Received: from localhost ([::1]:59468 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gXg5D-0001pQ-Cn for patchwork-qemu-devel@patchwork.kernel.org; Fri, 14 Dec 2018 00:32:19 -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-Google-Smtp-Source: AFSGD/XU2K5YplHjzSZRfmG4mz1ZEPGnW6AYtKXIDuBkXZOwfDI9i10hiWyphHkRfFzRWDG7WyqHhw== 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+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Richard Henderson Reviewed-by: Peter Maydell --- target/arm/cpu64.c | 4 ++++ 1 file changed, 4 insertions(+) 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;