From patchwork Fri Jun 26 15:14:19 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 191861 Delivered-To: patch@linaro.org Received: by 2002:a92:d244:0:0:0:0:0 with SMTP id v4csp599030ilg; Fri, 26 Jun 2020 08:40:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz0/FRKVHcRDFCo7l4wCu07iEICt3sl4V7WN+x+scKdHAZog8Qv1Z3SVMWzNBuGzbj1T/Ez X-Received: by 2002:a25:d2c4:: with SMTP id j187mr6675566ybg.33.1593186007762; Fri, 26 Jun 2020 08:40:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593186007; cv=none; d=google.com; s=arc-20160816; b=a+SNUdQ8R2FEGJ+/0qWoSLLPWDdY+GMP96O6XzMmyaBlSskcfKZn7MW/iQVCiwy4TN yesGEqb3RFFTmlAO9B9biN71WDEWmmZSDe3pGqdcryKUmuzPTAdMwp/WRAiPPKJfQrpF jRPot99WlvC7CmBejb7BSIbRC5MSQWxY8iRNf5QC8MGf2psaIBy+0FuIDxe0sNQRvPQU eg6wEYiL9eRTutyBPqERlDi0Cp+P0L2jSAYldFz0b8kWgv4h+iBxGVrJJo4t+E6CzpG9 n1xzK6JjjkXp/s863PWVw+EVKsYzHC2eOPPggcXchdFXeQrIfZ0XC9op2IqaebvNw1ue yN4g== 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:to:from :dkim-signature; bh=QI9bNB2EpS4MZeeUod3oWI+GTuJGD4bNcPhcROXkwsU=; b=JICzan+I2acUna4qRGu2tzWXdF+BLcxt8lAP7qAC88FiXpHmc8SeRQ9MAKxc6qrhqG yoDvn8Jf8iMaGLK/a0qgDWALlC9Vf4SoY9PwtBtIVVNNCg5M1pQY6uCfMC5N1ZxHw60T 885sYz+wlDOhHGiLvECdN9a2GozXLDcyYh1Lr4jBlAm4dvRNRzb7+Uo6Zqw2VH2ZBC33 c+v0knEd+LNElBbmMR+I07xUzn5vMsGTTG6Oy35EjlBZ+OlnRIk1VSMjDcskVFYj/eTs c0sj8B3JhT+6wRWfur1+wLialYh2vj3Gb+xeY3B+hPzyLIrYIWGwoN557zaDWUKGpuHz dt6w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ioqI5UDs; 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 j11si24223808ybt.84.2020.06.26.08.40.07 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 26 Jun 2020 08:40:07 -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=ioqI5UDs; 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]:39288 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1joqSV-0004q9-8L for patch@linaro.org; Fri, 26 Jun 2020 11:40:07 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36268) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1joq4j-0003TQ-FM for qemu-devel@nongnu.org; Fri, 26 Jun 2020 11:15:33 -0400 Received: from mail-wr1-x444.google.com ([2a00:1450:4864:20::444]:42037) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1joq4h-0006kS-Pt for qemu-devel@nongnu.org; Fri, 26 Jun 2020 11:15:33 -0400 Received: by mail-wr1-x444.google.com with SMTP id o11so9851344wrv.9 for ; Fri, 26 Jun 2020 08:15:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=QI9bNB2EpS4MZeeUod3oWI+GTuJGD4bNcPhcROXkwsU=; b=ioqI5UDsqy8wD18Qr6O9qqbqnZFfzrtpxQ4TGDEveTKHRP8aSK0tsTfzmvj/SE9XHc k+dITtsv+OKmiFimAXcsyu3fkdZyEPoXNNx1VXYoj1n19Xye4S1KAm29tadHbQh2IsWC 6N2fTz8Evo4sel7uZtoq+IMBL9MJ3jSRdf0bnY0XZHTqW6N/0Kk4nIh8WVPMUUdCKzkf EwPJ/+9ndwFMLYl7iqbbHu1WY9l4M/AL4f9AvuWt0oXnUKXiGjVAdk6VDUpIwtYUsmt5 ub/He9JimaCJE5/50+GXusxgduypksDxRhpGVPoR8TkX/HmAR2sjn2D7WsjNmQIEFwLT PsCA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=QI9bNB2EpS4MZeeUod3oWI+GTuJGD4bNcPhcROXkwsU=; b=qdg5OC3AIzr6qVygGoNdg+bltCIeivoY8c1BQpfHoPko14hZHFOfhdDdm24Lmf6oUl PayKaAFLuM2WdrrA63M6H42Q3uP3Cbf0qzkYYBEVcHqiD+28H+S/ntaoIOnklt1637Je vbHwMg5d942l7c4Tqs7ZlhoDSH3e8b2dr0kjLjihNPTXB4fvQD+00Ivk51vuTtYtElz9 e2JOvza8LeqL0PtwQ5QFd/vmfuUjvQ8zyDeQgZfqnCvaB7jA8eUdocbDFPw0X3hOIzwg YvrAhDwS8li+HvC1HOL8pa/i8+Nsg7ph1d7xY0CFpZl/zlDtWBFBlTtSj61kWUwmPEXl toIg== X-Gm-Message-State: AOAM531iHDDS+aqge1U5lRAusy63DGOgQLQkMtne5ND28ZUQVXBMiO6K F8BUvGWRW80/O2Xs5/iIxrrqj4v1ztnoSw== X-Received: by 2002:adf:97d6:: with SMTP id t22mr4107725wrb.385.1593184530175; Fri, 26 Jun 2020 08:15:30 -0700 (PDT) Received: from orth.archaic.org.uk (orth.archaic.org.uk. [81.2.115.148]) by smtp.gmail.com with ESMTPSA id w13sm37838852wrr.67.2020.06.26.08.15.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Jun 2020 08:15:29 -0700 (PDT) From: Peter Maydell To: qemu-devel@nongnu.org Subject: [PULL 52/57] target/arm: Set PSTATE.TCO on exception entry Date: Fri, 26 Jun 2020 16:14:19 +0100 Message-Id: <20200626151424.30117-53-peter.maydell@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200626151424.30117-1-peter.maydell@linaro.org> References: <20200626151424.30117-1-peter.maydell@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::444; envelope-from=peter.maydell@linaro.org; helo=mail-wr1-x444.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. 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=_AUTOLEARN X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: Richard Henderson D1.10 specifies that exception handlers begin with tag checks overridden. Reviewed-by: Peter Maydell Signed-off-by: Richard Henderson Message-id: 20200626033144.790098-41-richard.henderson@linaro.org Signed-off-by: Peter Maydell --- target/arm/helper.c | 3 +++ 1 file changed, 3 insertions(+) -- 2.20.1 diff --git a/target/arm/helper.c b/target/arm/helper.c index 23cf44fcf42..d220612a201 100644 --- a/target/arm/helper.c +++ b/target/arm/helper.c @@ -9704,6 +9704,9 @@ static void arm_cpu_do_interrupt_aarch64(CPUState *cs) break; } } + if (cpu_isar_feature(aa64_mte, cpu)) { + new_mode |= PSTATE_TCO; + } pstate_write(env, PSTATE_DAIF | new_mode); env->aarch64 = 1;