Message ID | 20190307170440.3113-18-richard.henderson@linaro.org |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a02:5cc1:0:0:0:0:0 with SMTP id w62csp7679551jad; Thu, 7 Mar 2019 09:14:26 -0800 (PST) X-Google-Smtp-Source: APXvYqxaOGw/JieKOgn4UAxS5oMWzTOoDP1Yp1HL2u0e+WzznJMEsH7UwJNonHssEASJCChReQ99 X-Received: by 2002:a25:d656:: with SMTP id n83mr11696536ybg.423.1551978866397; Thu, 07 Mar 2019 09:14:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551978866; cv=none; d=google.com; s=arc-20160816; b=n/+Nv3X/3mpYGjbSa5Fpca4OXmcNu+/z27z5icRbRax7juED4baGc8yQMR1ZLNdedW f7p1GSGVTP5UP8li2gmY08W9yhPbaW2nac12wauJRdFxFWNsPU8KRFbCtXamKMpRa4ML FykD27z8WnlqAdVt7XEImYZBin8jaIeKtxL79PPZcbN6VxQ6IaruOfHuSthMQZrPefvA cBI2bVvtdPVd0q4JKxpNuCQwKw+i06msZQPGP87WmoG4U0GFHZGVYu9UAJJmafezbmsq UVgNG4EKwJHpjpmmL2JDBn9Q9S+L0KIjyqbuPP1lyEvexrUBeUcov2R0Cczs+bwMlzU+ zUQQ== 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=05lF+sqRrBX0u4SK6E3TesbjPVIKMjJkzGqQZca+AAo=; b=fKl1JtQK5gOi5oQBwRBOVqBbK0ufzUV2wCLvsBz9CxclPzotx1QXE2IIdq0Em5OopZ yep9+ylm5CBAcQyqLR+ut4x329RMifUR1VrlowXC+rXP41aoM1GSiPDRiPkjMwa9KcS/ pJu2sNyYn8aDjj8mXWTnt7CE2pLOg9DF50iLekzHKqJlX6W1762R8knkfcpcWg/su/r0 3RlADZ0u3S6PMQI8NU2wD4SgL3MhJqcSKOp7PUtm8eltqHm6/Xub+SE2OCc+LEesGKRP HA2o6u9DX/SZoeToX8bgd0WsVPWXBdsmiFwiHxmfH1TQd6y1XtbW3C1qR/+g78t5+NuR uAxQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=i9T+UKnX; 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=fail (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 i2si2915245ybp.447.2019.03.07.09.14.26 for <patch@linaro.org> (version=TLS1 cipher=AES128-SHA bits=128/128); Thu, 07 Mar 2019 09:14:26 -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=fail header.i=@linaro.org header.s=google header.b=i9T+UKnX; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([127.0.0.1]:55721 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <qemu-devel-bounces+patch=linaro.org@nongnu.org>) id 1h1wbB-0005cK-MW for patch@linaro.org; Thu, 07 Mar 2019 12:14:25 -0500 Received: from eggs.gnu.org ([209.51.188.92]:59080) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <richard.henderson@linaro.org>) id 1h1wT3-00077y-DP for qemu-devel@nongnu.org; Thu, 07 Mar 2019 12:06:02 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <richard.henderson@linaro.org>) id 1h1wSu-0005mU-6e for qemu-devel@nongnu.org; Thu, 07 Mar 2019 12:05:55 -0500 Received: from mail-pf1-x42b.google.com ([2607:f8b0:4864:20::42b]:34589) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from <richard.henderson@linaro.org>) id 1h1wSm-0004fw-09 for qemu-devel@nongnu.org; Thu, 07 Mar 2019 12:05:44 -0500 Received: by mail-pf1-x42b.google.com with SMTP id u9so11902046pfn.1 for <qemu-devel@nongnu.org>; Thu, 07 Mar 2019 09:05:05 -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=05lF+sqRrBX0u4SK6E3TesbjPVIKMjJkzGqQZca+AAo=; b=i9T+UKnXWUpSOkJG6kakYXZKI2T7dj84Y3Akf7WnIiIJsJrWlPOnxUy8OJCBrIz5ec 4AbC4OfSwq3CHFrVs3veyxOkDRbC5/cienaKXvtxqbWcmNcL6ju7g+okWxQ4J4Hi83vp YGeAdEKczPKaRKFMhiBHRMeMRymZnSBNFzXLtVb55oYM41MKlTycUrueTgzDw/u1YdNx glbcvftfzdRQsVW+mEqJtzXibDHmDR1hcVI4kTz/CkWUzZrdHNVz7ndtcmjxYD9LQ4QF Ak41D8HJuUJ/r0E+r8GTAri+2Q79pjNSS6lHH1aEJxbrU0pV+tJiZcwxWH3rTpM/Y38/ V7jQ== 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=05lF+sqRrBX0u4SK6E3TesbjPVIKMjJkzGqQZca+AAo=; b=b9JGTQtCX64QYeAXr3+sJWPTBXLQMawmHQb+NTu+bTfBHdEV6XgAfDLIpsQ0QEIkeS NxTjRnq5zTSGw0tpczFvQC78foSFT9wypP/32JMKC3lsRWpO3lBUEr1M2TOAt63LyUPC KY5qTeuuVZjePriAH4VceiqyQkJguKpqo+mMnAg/IMsIOWtykEBGK0r5NkxvAdFeLUIG t5gR/ywF82tMRYG/78Qg3noPM0k81WboT6V5Bzoc4++mK+VXSJ4JyhZSY3rNe0Jr7EoR fzqK4U+DSn5j9g6j81usSGx+vs4SzBsTL2fg5efZalPpMaEvATFAVaVcfbZuyFUBeWxk /NKQ== X-Gm-Message-State: APjAAAWPTZCFOm9I7AcSzCkpzNuU9iBB54JQ2t+Yo2lbC3Lm/PtFm9kL 76/Uc7CUzTUnsgGya9fXnPHd3eSSP44= X-Received: by 2002:a63:4542:: with SMTP id u2mr12127091pgk.291.1551978303838; Thu, 07 Mar 2019 09:05:03 -0800 (PST) Received: from cloudburst.twiddle.net (97-113-188-82.tukw.qwest.net. [97.113.188.82]) by smtp.gmail.com with ESMTPSA id r82sm10040562pfa.161.2019.03.07.09.05.02 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 07 Mar 2019 09:05:03 -0800 (PST) From: Richard Henderson <richard.henderson@linaro.org> To: qemu-devel@nongnu.org Date: Thu, 7 Mar 2019 09:04:35 -0800 Message-Id: <20190307170440.3113-18-richard.henderson@linaro.org> X-Mailer: git-send-email 2.17.2 In-Reply-To: <20190307170440.3113-1-richard.henderson@linaro.org> References: <20190307170440.3113-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::42b Subject: [Qemu-devel] [PATCH v4 17/22] target/arm: Set PSTATE.TCO on exception entry X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 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: <http://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> Cc: peter.maydell@linaro.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" <qemu-devel-bounces+patch=linaro.org@nongnu.org> |
Series |
[v4,01/22] target/arm: Add MTE_ACTIVE to tb_flags
|
expand
|
diff --git a/target/arm/helper.c b/target/arm/helper.c index c8773a5528..a529d30700 100644 --- a/target/arm/helper.c +++ b/target/arm/helper.c @@ -9628,6 +9628,7 @@ static void arm_cpu_do_interrupt_aarch64(CPUState *cs) target_ulong addr = env->cp15.vbar_el[new_el]; unsigned int new_mode = aarch64_pstate_mode(new_el, true); unsigned int cur_el = arm_current_el(env); + unsigned int new_pstate; /* * Note that new_el can never be 0. If cur_el is 0, then @@ -9721,7 +9722,11 @@ static void arm_cpu_do_interrupt_aarch64(CPUState *cs) qemu_log_mask(CPU_LOG_INT, "...with ELR 0x%" PRIx64 "\n", env->elr_el[new_el]); - pstate_write(env, PSTATE_DAIF | new_mode); + new_pstate = new_mode | PSTATE_DAIF; + if (cpu_isar_feature(aa64_mte, cpu)) { + new_pstate |= PSTATE_TCO; + } + pstate_write(env, new_pstate); env->aarch64 = 1; aarch64_restore_sp(env, new_el);