Message ID | 20230222023336.915045-2-richard.henderson@linaro.org |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:adf:a3c6:0:0:0:0:0 with SMTP id m6csp456616wrb; Tue, 21 Feb 2023 18:37:03 -0800 (PST) X-Google-Smtp-Source: AK7set/YxpyXA0X6iDdWpJ0rsSFF4/LF3lV6VLze6RPE4pZeNfx5bW8FR2vc+DpfkR603euHjIiw X-Received: by 2002:ac8:5e47:0:b0:3b9:b619:42c1 with SMTP id i7-20020ac85e47000000b003b9b61942c1mr25402671qtx.27.1677033423503; Tue, 21 Feb 2023 18:37:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677033423; cv=none; d=google.com; s=arc-20160816; b=buhnNsmZwd8VLzdQWSdtWm8w25e6BakhXEo+e0cGTYzU/tzNDKtybqk2lw4Z2aUZCq MlFdD4qwol4Gvbo+bZ3Pn5hp7dlMFeXiSgqTN7y1opQxuZcOGdUMVXhIb5Rc2INlY9W0 dYDxVFgmq0PT1RDbfNGbF8aiFQGj1UUwZ6SnIi7GLLsFBDY65Z9/3zaEL1bSXgaWcvA4 6DOhyTlnJk1T16j0YRuVVWjeBIP3fttmUcGf3uXe2UulC1iJxh6a0MaQhrHRTgd+xSg6 XGy/4pYBBr/6mNxPM0Es2CaEAXs7d7Yf225b9axHxlEkCO7P6Hwrx950/4sQweDl/UOj 1F8A== 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:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=gIb9lNHS+CMTRMz3x9CJbUe7BEB0EF5QrLaX3CcdAas=; b=iPvxPN6cAeB8lD15RVf5Ff1dBjO0kIimU4SXrLn1ODx+K/LiA0suEqrMNwD5h+3fSj V4CqQ2SPHfyclro7C9kpFHr3Q2Thof2rhfPAFGyrWraYyFF23UdEUMt02lRy/DYQxhYs 1Nc83zJAkZ4c4mwJZVCKPPjwP18l2quHYd2KFSqmYPHC3m7dUg7QfA+unWE0K1aV3Jv/ bn/hVNoCHL8X636OpJzCFoSg+Iq9ylmipNw9NHnzrEmQPEgFe82DLqEuC6tmIoBglqV0 i1DiJeOsoJhSWQFv/hVqsFm0lw55ca/oDS/9BI0+HfqS52pigV0XpKsJU6nQSemUBGd2 pCAA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="nW/SRaXV"; 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: <qemu-devel-bounces+patch=linaro.org@nongnu.org> Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id q18-20020a05622a04d200b003bfa6729633si1782382qtx.316.2023.02.21.18.37.03 for <patch@linaro.org> (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 21 Feb 2023 18:37:03 -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=pass header.i=@linaro.org header.s=google header.b="nW/SRaXV"; 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] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <qemu-devel-bounces@nongnu.org>) id 1pUexN-0007Tv-0E; Tue, 21 Feb 2023 21:34:09 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <richard.henderson@linaro.org>) id 1pUex1-0007HW-3Q for qemu-devel@nongnu.org; Tue, 21 Feb 2023 21:33:48 -0500 Received: from mail-pl1-x62f.google.com ([2607:f8b0:4864:20::62f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <richard.henderson@linaro.org>) id 1pUewx-0001XQ-Ry for qemu-devel@nongnu.org; Tue, 21 Feb 2023 21:33:46 -0500 Received: by mail-pl1-x62f.google.com with SMTP id bh1so7211273plb.11 for <qemu-devel@nongnu.org>; Tue, 21 Feb 2023 18:33:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=gIb9lNHS+CMTRMz3x9CJbUe7BEB0EF5QrLaX3CcdAas=; b=nW/SRaXVdGDcoZthPrOF7bk6TL6nF4VHsHXd4wZ7l3v4Ko+k2xSZx77FtEGSaQac5r GvJ+NLvQ7NWo95gz1sjtkLIUQue1YD+wNU0rQx4kkPxh76csAyxfxbRynZ3qDcrA/7VL L6/ZGAek1WFH7cnQkVWA2bfb9WV9q9qIylDtr6mZ7wYBc/Rg0U8yprcw2ZroAToNzd3r CEuCs0U2M0F/5pVPpzAvVXdCqbAolesIS9IwZ4sI/jqFhaeJ9CgeQBaoHx98GZGKZ7FQ fSgeNglcAkjh7WTDjvRyv+T9Hp+S33ENMTAOPoxGpRVpEAqbe+luuKyp5OrVAh5d8itz e/yQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=gIb9lNHS+CMTRMz3x9CJbUe7BEB0EF5QrLaX3CcdAas=; b=nYgWgVdp/IkrZjOH7Wu2DUJyY1xa4K1EJc3SP/orEvTSNApWv1vZvQtxZmAprZbFG8 egFKZ1V6W0sYdR4D9NPeJdrh1eq/4AVVtKmGr7GgmdJasuUiJ9wW0kN3TwoRRvVDqr01 Dwlk2/mn43PotMiITY6FadZgGoMrQKCy5XfwbJMwF6bHzjAbn4NLqji/vNXc6mdrdyo1 p8OUNbkoKxlBkZNSECPgVQxVGqOHArC8mZAbd9TQFtDX95kFMXxZrFJen4inJub8KOLg 91fEtmoS6dNHUODlRcmzH9RPSmIpOV+IizSvVxKbMkHObvkih4QFWnFAEla8ohAJHApr oLlQ== X-Gm-Message-State: AO0yUKWLbWzm1uxuY/S/JR0zBzNUbcufmiI4nNpL4f3zhP3GL7jGpTF1 oukBqrK3Od6VUmTdlQ/dJDPXPF3xmnqQmS7D1Qc= X-Received: by 2002:a17:903:24e:b0:19c:32b1:185d with SMTP id j14-20020a170903024e00b0019c32b1185dmr8567590plh.39.1677033220678; Tue, 21 Feb 2023 18:33:40 -0800 (PST) Received: from stoup.. (rrcs-173-198-77-218.west.biz.rr.com. [173.198.77.218]) by smtp.gmail.com with ESMTPSA id k3-20020a170902e90300b00198fde9178csm10520112pld.197.2023.02.21.18.33.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Feb 2023 18:33:40 -0800 (PST) From: Richard Henderson <richard.henderson@linaro.org> To: qemu-devel@nongnu.org Cc: qemu-arm@nongnu.org Subject: [PATCH v3 01/25] target/arm: Handle m-profile in arm_is_secure Date: Tue, 21 Feb 2023 16:33:12 -1000 Message-Id: <20230222023336.915045-2-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230222023336.915045-1-richard.henderson@linaro.org> References: <20230222023336.915045-1-richard.henderson@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2607:f8b0:4864:20::62f; envelope-from=richard.henderson@linaro.org; helo=mail-pl1-x62f.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 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: <qemu-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <https://lists.nongnu.org/archive/html/qemu-devel> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org |
Series |
target/arm: Implement FEAT_RME
|
expand
|
On Wed, 22 Feb 2023 at 02:34, Richard Henderson <richard.henderson@linaro.org> wrote: > > Signed-off-by: Richard Henderson <richard.henderson@linaro.org> > --- > target/arm/cpu.h | 3 +++ > 1 file changed, 3 insertions(+) Reviewed-by: Peter Maydell <peter.maydell@linaro.org> thanks -- PMM
diff --git a/target/arm/cpu.h b/target/arm/cpu.h index 12b1082537..7a2f804aeb 100644 --- a/target/arm/cpu.h +++ b/target/arm/cpu.h @@ -2426,6 +2426,9 @@ static inline bool arm_is_el3_or_mon(CPUARMState *env) /* Return true if the processor is in secure state */ static inline bool arm_is_secure(CPUARMState *env) { + if (arm_feature(env, ARM_FEATURE_M)) { + return env->v7m.secure; + } if (arm_is_el3_or_mon(env)) { return true; }
Signed-off-by: Richard Henderson <richard.henderson@linaro.org> --- target/arm/cpu.h | 3 +++ 1 file changed, 3 insertions(+)