From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([209.51.188.92]:49417) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gs9lo-0006nZ-3p for qemu-devel@nongnu.org; Fri, 08 Feb 2019 12:16:56 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gs9ln-0006BI-C5 for qemu-devel@nongnu.org; Fri, 08 Feb 2019 12:16:56 -0500 Received: from mail-pl1-x643.google.com ([2607:f8b0:4864:20::643]:38080) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gs9lm-00068q-Tr for qemu-devel@nongnu.org; Fri, 08 Feb 2019 12:16:55 -0500 Received: by mail-pl1-x643.google.com with SMTP id e5so1981302plb.5 for ; Fri, 08 Feb 2019 09:16:54 -0800 (PST) References: <20190114011122.5995-1-richard.henderson@linaro.org> <20190114011122.5995-14-richard.henderson@linaro.org> From: Richard Henderson Message-ID: <7cd85d25-3706-e75f-6d29-4a5716d4c516@linaro.org> Date: Fri, 8 Feb 2019 09:16:50 -0800 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 13/17] target/arm: Set PSTATE.TCO on exception entry List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: QEMU Developers , qemu-arm On 2/7/19 9:44 AM, Peter Maydell wrote: > On Mon, 14 Jan 2019 at 01:12, Richard Henderson > wrote: >> >> 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(-) >> >> 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); > > PSTATE_TCO being set doesn't affect codegen for non-MTE CPUs, > right? TCO does not exist before MTE. I shouldn't set it without MTE, I think, as it's visible to the guest. r~