From patchwork Mon Jan 14 01:11:18 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 155400 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp3120991jaa; Sun, 13 Jan 2019 17:24:43 -0800 (PST) X-Google-Smtp-Source: ALg8bN7MDBEsjKRjHA1jSlAHkswCU9yqNN0YNAiXJBbywr+rMhpGvaWEmVpls4ON5CKWesi+xp3s X-Received: by 2002:a1c:a70a:: with SMTP id q10mr9261699wme.58.1547429083691; Sun, 13 Jan 2019 17:24:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547429083; cv=none; d=google.com; s=arc-20160816; b=Q49QLkSgF5XqTBWg0MrShN7AgLlODn50sbVr7wOjpulfHfBMMgr67/sTQh7lcYAp9d c6uXZuB/QUgUdRmN8AkdflLEBcbb7Rp+2SORLqtDG3BYSX8fYBticjuL/IqmIsYSz9gM VcudOC6YM2Q9/K2Md5BoOCdAlpp7qvuSL3vBeCF3tKfXFxZYJJyazMg7wVuRE+34rDR0 obuBpJPul1TYuVwAfbQgCILtZdWfg6A3bRbwzjkhMPKdDWJg84lpWaG7WfpO04xx0iz4 c3iBN5d4TD5eZEhKqgTss3dxnOn1pSUNU6m0ziLO6HkXrh+G+sf7fqxaAU7nB4Xyfp1D dupw== 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=4pgO9l4pPYepnr4R2SXCI+iXxa1cmas+CwINdPmAQ/g=; b=oSmrWt7b6hWS1O26jJL+fBmDUL3zkunxHC9+w/5BHBTT+KJUgpuslUheygWH6ceyRK kxB1fSdQnyrF7qGp2fE0oNK2gijNHlhL5xqXnox/ayMg7fXoW7fgsfu8/5i9ZVWwf5jT 4KI1kWHavYe/Jo4e6nHLppfqOu/PUVocuc+21VG7EMi5VBmJNQJsxK5ErxD+ZKTWk7Jn 9A5vEySzK8P59iObc0aVMhY3SPCH5QarHzZYfRxS5Q3D/cxBhmfjGbJlNOwPGL4wg8y4 TYY2g1I/ele2cwQMLmF2CcGnrXwF86TZjFwejbTmRe0YilzImTvuAdHM8n8wEcXniXKk RpzQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=kOEj26De; 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: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id k187si18672660wmb.63.2019.01.13.17.24.43 for (version=TLS1 cipher=AES128-SHA bits=128/128); Sun, 13 Jan 2019 17:24:43 -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=kOEj26De; 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]:57268 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1giqza-00065N-HK for patch@linaro.org; Sun, 13 Jan 2019 20:24:42 -0500 Received: from eggs.gnu.org ([209.51.188.92]:37150) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1giqnW-0005uT-RC for qemu-devel@nongnu.org; Sun, 13 Jan 2019 20:12:15 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1giqnW-00015W-4i for qemu-devel@nongnu.org; Sun, 13 Jan 2019 20:12:14 -0500 Received: from mail-pg1-x535.google.com ([2607:f8b0:4864:20::535]:38930) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1giqnV-00014v-Vy for qemu-devel@nongnu.org; Sun, 13 Jan 2019 20:12:14 -0500 Received: by mail-pg1-x535.google.com with SMTP id w6so8737363pgl.6 for ; Sun, 13 Jan 2019 17:12:13 -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=4pgO9l4pPYepnr4R2SXCI+iXxa1cmas+CwINdPmAQ/g=; b=kOEj26DeVSlM6xgaMBBlq19G749tCkGM8RuLMu1oabRf/UIxDuQaAGcIJ8J/LI3bGZ 9sEhJoi8xH2tylD7D7UVhBsAX4prjRdkVmfY4O/oIbBnXORYZA53jVNmgBbMDsR0ap23 hwgAnoW3Lv7zJO5Ja+PvDJE8s65Gh1P8xqjXA= 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=4pgO9l4pPYepnr4R2SXCI+iXxa1cmas+CwINdPmAQ/g=; b=RHrwvxw5q7KpVWSQ8asR1y9Nn2xp8c68mjV+Ml2FOJwFG1J9V+Ybvpe04n0GMc7MWN /t6zDJtLBL8JiGwadVFNqI07755AgME7sKZuKnZGGQz7EcwRU5Qmz04f2UwHjH59eYzS Oj383U99bRjfS4rp1u1Vw3P8TJDiJJxcRmEBRe8wxD+3YeLSLV2GpFxIB8bU8cdnuLPu HUnDJOLVqeccP7ha8yp8YxeKixNCQysRl/mJuDZAd3/vl2+qCHJDdIqF+aYzwbt21ySP aC1M9G2+AxC3eJ0gMUA+UFPjT5XjDJ8vy0b7oHLAkdJfl01bZIAvDpvunARA6Qkj81qB vhpA== X-Gm-Message-State: AJcUukfkGXuWAIOd0t+A+whcm4jsD/FfQAF360Ac1hzkoZrDHSL+tPpY oB/Q+IFE8/NmN4h/Rvq3kVz/jmx29dKEaQ== X-Received: by 2002:a63:3287:: with SMTP id y129mr21159951pgy.337.1547428332622; Sun, 13 Jan 2019 17:12:12 -0800 (PST) Received: from cloudburst.twiddle.net ([2001:8000:1064:7600:4085:6ae6:1bde:1c45]) by smtp.gmail.com with ESMTPSA id 5sm159602229pfz.149.2019.01.13.17.12.09 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 13 Jan 2019 17:12:12 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Date: Mon, 14 Jan 2019 12:11:18 +1100 Message-Id: <20190114011122.5995-14-richard.henderson@linaro.org> X-Mailer: git-send-email 2.17.2 In-Reply-To: <20190114011122.5995-1-richard.henderson@linaro.org> References: <20190114011122.5995-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::535 Subject: [Qemu-devel] [PATCH 13/17] target/arm: Set PSTATE.TCO on exception entry 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, qemu-arm@nongnu.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" R0085 specifies that exception handlers begin with tag checks overridden. Signed-off-by: Richard Henderson --- target/arm/helper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.17.2 Reviewed-by: Peter Maydell diff --git a/target/arm/helper.c b/target/arm/helper.c index df43deb0f8..1e9ccf0b2e 100644 --- a/target/arm/helper.c +++ b/target/arm/helper.c @@ -8830,7 +8830,7 @@ 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); + pstate_write(env, PSTATE_DAIF | PSTATE_TCO | new_mode); env->aarch64 = 1; aarch64_restore_sp(env, new_el);