From patchwork Sun Apr 17 17:43:30 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 562822 Delivered-To: patch@linaro.org Received: by 2002:a05:7000:6886:0:0:0:0 with SMTP id m6csp1854531map; Sun, 17 Apr 2022 10:52:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzUW8eJjhoBY7A+aWOdTS5OlgKS9Ykw7leCj8QlrxBvnbvnNWlNCuwe5DZDr/oyEvscSr0L X-Received: by 2002:ac8:4e52:0:b0:2f1:f55b:8f20 with SMTP id e18-20020ac84e52000000b002f1f55b8f20mr3960757qtw.421.1650217958596; Sun, 17 Apr 2022 10:52:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650217958; cv=none; d=google.com; s=arc-20160816; b=EdLlw48OLQeSn20C8u6vY+T8DqKOi8to6YjMqU2KdjDVaCMXOvS9UM9AABZN92v+Fx SerSBnQ9h+iz4cT1R1zSOo7eXC/OPA1hmRLmpmJ5Wo98u9fHQMjXBxFcBEmSCesW1UB1 4ucIMWqhXbd5VYkGL2EAcIKkiCd10gZ32gsId+fyUA9EIFmCeQuDp/FnEm5+fEjtBRET W6tBhnGiioeznQBipRpKQxhD1UB49RWECStVArHqe9yltgxSC3Pojsi3IokcxukDFnzl LAN+MOdRQyBQ1p9rVv5Q8hcpNh4bPEGL7lvMq6GOGuWrOmkXJqIPbaF7fk+Gy6qJd2cf B3CA== 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:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=vxLFgR2+O/yEO8CWTOhGko5rMSYgERGzbB2hOUZT2qw=; b=e4n2/Ow3aIVnkBCHBe2uMd7Q4JbsNxNzj7bnMIIM9Wfg8BIGAXtP63Sh9OVuyeXuJK ZoqNtsWIzfuFPSGFLiQEAkNjjq6t4fYJWrxgVd21WzOzuyyWnYJThG/4NzcPxWTOVA2C jHgewlqcITcyIHQogrt1AH5LBpZLdJFSBmda2KRkGhPPEo9V1B1UfNlWyLTE3DxEq/fB M7OMrb85640DZlKU9ru1gzpxfKawTeFMgXQFXvFsn0JpK6We+4vF3NmRUblIF2Gx6w9M te3QOGsXayc50+AF1ZV4HwQoa8x/1wit78UfJzDtR81rOkluXgniDgKmmBp/7euGl7dQ j7MQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=DI2wNBxy; 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=pass (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 j7-20020ac85c47000000b002e1fbf3beaesi2493285qtj.159.2022.04.17.10.52.38 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 17 Apr 2022 10:52:38 -0700 (PDT) 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=pass header.i=@linaro.org header.s=google header.b=DI2wNBxy; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:38574 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ng94g-0000VT-5e for patch@linaro.org; Sun, 17 Apr 2022 13:52:38 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47724) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ng8wu-0000eP-70 for qemu-devel@nongnu.org; Sun, 17 Apr 2022 13:44:39 -0400 Received: from mail-pj1-x1034.google.com ([2607:f8b0:4864:20::1034]:38745) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ng8ws-0003Fj-Lt for qemu-devel@nongnu.org; Sun, 17 Apr 2022 13:44:35 -0400 Received: by mail-pj1-x1034.google.com with SMTP id s14-20020a17090a880e00b001caaf6d3dd1so15524710pjn.3 for ; Sun, 17 Apr 2022 10:44:33 -0700 (PDT) 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 :mime-version:content-transfer-encoding; bh=vxLFgR2+O/yEO8CWTOhGko5rMSYgERGzbB2hOUZT2qw=; b=DI2wNBxyNTHyxEmGRPu3vdwxS/laH9SsS+E2H6qdbjNXas4N9p99jvRv0GaJaJMqCJ 8n9osSuqzQnMuH91TtrbZq2/+hLJlBmd4ipexGdLwxPbLBIBnNBdiauOefPJcMMIAvYO 0u7+JqGV1Mm982Pmkw7gwVSXHMH1/DqKX953whZfxpSgwKUxSWlsWpMkjEDn7RdlqYaZ FBtarDC8e0BMwHf9v6vl4u56sZlHMfWszW1wFhAToFYV+GaEkIyrAEZKLOJJaRKjZ/ZP kK4MekSXaa1PNUtNp6wDSWdiGubCJ04KU4Chqe0OgbVO6/NZupWo4Ixzl6FIAbQKtuE7 P+Jg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=vxLFgR2+O/yEO8CWTOhGko5rMSYgERGzbB2hOUZT2qw=; b=przrJ8xm+WJ28cmcU1MhwLzmyEg4agtcSsQCHcsDnvP8EqUDdX6tfVeHzBT9rOUsCZ iY/GIcOF0+gW3j4oRwdv265wbmuyVL2r1ItbfzxgNSsdjl7IqH0Yj7uzOpF7NDEX9OHd he+uaDpfXHNLC+5rhiHWGyvdgYgq9FYh7TxcHk7ncjLJeUil1WuWgqKPR3nsHCnX98PV BmbJgsd46M8yESB5GBEYf2IC+gi/7NbSr4eL/JIYcTFkAfUbM50q6Q2jPSYGsT4SWzVG ptDZRZQymlL6PDWEZ7EJi8k+C8OwgLfk3MAciz5UM+/keDuDlKIoPW6kEuArfnWiZZZW OPDQ== X-Gm-Message-State: AOAM530XTCo1q9FVDg0q5HYQR5OnakFpAJVCuFpHwJeExQXLC2N6kFX2 opmm5xbv7ZWKAJLN6OlhS0w8HDNZjMBP4w== X-Received: by 2002:a17:90b:1a81:b0:1d2:63f5:e24e with SMTP id ng1-20020a17090b1a8100b001d263f5e24emr7088951pjb.124.1650217473013; Sun, 17 Apr 2022 10:44:33 -0700 (PDT) Received: from localhost.localdomain (174-21-142-130.tukw.qwest.net. [174.21.142.130]) by smtp.gmail.com with ESMTPSA id i2-20020a17090a138200b001cb6512b579sm10372119pja.44.2022.04.17.10.44.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 17 Apr 2022 10:44:32 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH v3 04/60] target/arm: Update SCTLR bits to ARMv9.2 Date: Sun, 17 Apr 2022 10:43:30 -0700 Message-Id: <20220417174426.711829-5-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220417174426.711829-1-richard.henderson@linaro.org> References: <20220417174426.711829-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::1034; envelope-from=richard.henderson@linaro.org; helo=mail-pj1-x1034.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: qemu-arm@nongnu.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Update SCTLR_ELx fields per ARM DDI0487 H.a. Signed-off-by: Richard Henderson Reviewed-by: Alex Bennée --- target/arm/cpu.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/target/arm/cpu.h b/target/arm/cpu.h index f843c62c83..9ae9c935a2 100644 --- a/target/arm/cpu.h +++ b/target/arm/cpu.h @@ -1232,6 +1232,20 @@ void pmu_init(ARMCPU *cpu); #define SCTLR_ATA0 (1ULL << 42) /* v8.5-MemTag */ #define SCTLR_ATA (1ULL << 43) /* v8.5-MemTag */ #define SCTLR_DSSBS_64 (1ULL << 44) /* v8.5, AArch64 only */ +#define SCTLR_TWEDEn (1ULL << 45) /* FEAT_TWED */ +#define SCTLR_TWEDEL MAKE_64_MASK(46, 4) /* FEAT_TWED */ +#define SCTLR_TMT0 (1ULL << 50) /* FEAT_TME */ +#define SCTLR_TMT (1ULL << 51) /* FEAT_TME */ +#define SCTLR_TME0 (1ULL << 52) /* FEAT_TME */ +#define SCTLR_TME (1ULL << 53) /* FEAT_TME */ +#define SCTLR_EnASR (1ULL << 54) /* FEAT_LS64_V */ +#define SCTLR_EnAS0 (1ULL << 55) /* FEAT_LS64_ACCDATA */ +#define SCTLR_EnALS (1ULL << 56) /* FEAT_LS64 */ +#define SCTLR_EPAN (1ULL << 57) /* FEAT_PAN3 */ +#define SCTLR_EnTP2 (1ULL << 60) /* FEAT_SME */ +#define SCTLR_NMI (1ULL << 61) /* FEAT_NMI */ +#define SCTLR_SPINTMASK (1ULL << 62) /* FEAT_NMI */ +#define SCTLR_TIDCP (1ULL << 63) /* FEAT_TIDCP1 */ #define CPTR_TCPAC (1U << 31) #define CPTR_TTA (1U << 20)