From patchwork Wed Jun 3 01:13:13 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 187442 Delivered-To: patch@linaro.org Received: by 2002:a92:cf06:0:0:0:0:0 with SMTP id c6csp82601ilo; Tue, 2 Jun 2020 18:35:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy71II63vhWOon1yhGfY3fXnlFfG/pmd0iabc+WemRmdOStAgifRJKm3nlOK/UcyWhn0a4k X-Received: by 2002:a25:8509:: with SMTP id w9mr44569486ybk.500.1591148127106; Tue, 02 Jun 2020 18:35:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591148127; cv=none; d=google.com; s=arc-20160816; b=C4MLZxJUBGxQco0X+Ae7YL5tYRkOudx98+YjtZy98WHmm51NPQb5f516BH4Q2lcfqX 1tbr5bq+DePf5tEKWOESYDmwwAvyEP5jtmhcm/3RheVSr+PUZ+uCp/VeyqW+smbFlgBX ejZC3sEgduye14L6gL4oSxDca0RYS0P/jgNsFCCMeWte0raxbEUVBmB4RzCx2Iyztkg7 aJffQ75yo/2NJqxNMFAQm17Su+z1iAArPEeWdWptJGqLmkmg7JAq4fBvu7ytzXMAvXY+ XU5+05cfU+n6kYqq8zI99NHZDzw900ZFeEVtEcfos9LHLRcs9da+KLrFLf1fcchYPuUi 6hag== 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:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=uaH1sngv9xlWH/X8rZjic7q7Jho9e1jf1ezwAdUAR9c=; b=DO6h37nCAFmp9d8x93CmPWznmbpovwBkpP3crBtxi2vFNLlPb/C9rpuSjLyftxUqNe 7SrYaYvt++pdsvkeddFl7PY04Mc5/fTW6rNPJzxIFN/OMsx/7YK3cck8rexftD/j6X7Q aDHzKlaSRspLnKBrg7NxSYW9GbZyryjCBLZZleHXYLZd54JBX9PBoyK1vIWh3a52wX6a 4yV14qmlTqRuzBiVQfJZRgFCShpwgHSKStkHTvWuVwjreZTsLPj6br2AohTu9MgJvd2j T7CHqPbQjMs0z8bmjF57fU923pZ2mL7BsXywCKkF1Cbxlmsk6L8ObwvRCFC6P70z/kFo N65g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=W2VpHdhl; 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 r1si305233ybk.482.2020.06.02.18.35.27 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 02 Jun 2020 18:35:27 -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=fail header.i=@linaro.org header.s=google header.b=W2VpHdhl; 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 ([::1]:35454 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jgIJS-0003V9-Lc for patch@linaro.org; Tue, 02 Jun 2020 21:35:26 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:49048) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jgHyt-0005AP-Bd for qemu-devel@nongnu.org; Tue, 02 Jun 2020 21:14:11 -0400 Received: from mail-pl1-x644.google.com ([2607:f8b0:4864:20::644]:39719) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jgHys-0003hK-JE for qemu-devel@nongnu.org; Tue, 02 Jun 2020 21:14:10 -0400 Received: by mail-pl1-x644.google.com with SMTP id v24so199532plo.6 for ; Tue, 02 Jun 2020 18:14:10 -0700 (PDT) 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 :mime-version:content-transfer-encoding; bh=uaH1sngv9xlWH/X8rZjic7q7Jho9e1jf1ezwAdUAR9c=; b=W2VpHdhlmXjJWldCJJ/AWBtSxY3UTYaz44DqxLhKEiskonM1uXUpPuN29hCgBFhPvP gA7YjjtvTHhJ8fx92XaeSMXl0EFMTDiukC9LU3Yk9lybiGySoCD1FPyYl6zvjVsQjQ/1 bQ2EaThf9TApdkDsf/53X/YavAdnEWivRfC/g5t8sKJoQ31aoYdEOBXNRTkUlsEOj/HF pEy7asfNnWtpbtpB+r/l0jBmQgdZTeeqoGSkuw3PxtzqKW4l1RH1ulpfwhNN323u4vCQ 18fu0Mjvz++aU6Vdi5E0zAATT6NdUkmOwx78uuxXr/TJyE2Pn5x+g6UZwh7ulqF3O9zU EG3g== 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:mime-version:content-transfer-encoding; bh=uaH1sngv9xlWH/X8rZjic7q7Jho9e1jf1ezwAdUAR9c=; b=iNPNSEr/nAz5FBq2KlQyYWCeL7FNzZx1c1toZhctfds+lBE7pvQ0QLf8rpeBKbqc4w y885PdDp2PO2Dy7zXb8j/BfuFPsIpqQIybwmm4IJBfHCcu9scbJhOnmrXPFsA6Czmj5T jLnHmfVZuBdZweEUWZdve1lWahpz1+HByT7koJg4u+jBmIbBeWLOA7DADh+ZRooTP3ZM FIRbToJQAJkD/N9aUZb1AL7XR2yCycraAvdcVG8k1VszUs6H+3wunhc00+gd491DT0zW cDOUycMtQ8LXz51jUtKBlLWsgXwj4qWVTD/otBGahvR8ph2uglQzy5t3zcOSuzbYC4Di K9Tg== X-Gm-Message-State: AOAM530swloX/ZJovSUyoEUyU1IGuG88WYwVpW+Tos02HvzVLz+0VfhQ nDk/dImhWe18qn+I+9hx37fVKyD57HE= X-Received: by 2002:a17:902:d711:: with SMTP id w17mr28235658ply.122.1591146848946; Tue, 02 Jun 2020 18:14:08 -0700 (PDT) Received: from localhost.localdomain (174-21-143-238.tukw.qwest.net. [174.21.143.238]) by smtp.gmail.com with ESMTPSA id 3sm290067pfe.85.2020.06.02.18.14.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Jun 2020 18:14:08 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH v7 38/42] target/arm: Set PSTATE.TCO on exception entry Date: Tue, 2 Jun 2020 18:13:13 -0700 Message-Id: <20200603011317.473934-39-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200603011317.473934-1-richard.henderson@linaro.org> References: <20200603011317.473934-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::644; envelope-from=richard.henderson@linaro.org; helo=mail-pl1-x644.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_PASS=-0.001, URIBL_BLOCKED=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: , Cc: peter.maydell@linaro.org, qemu-arm@nongnu.org, steplong@quicinc.com Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" D1.10 specifies that exception handlers begin with tag checks overridden. Reviewed-by: Peter Maydell Signed-off-by: Richard Henderson --- v2: Only set if MTE feature present. --- target/arm/helper.c | 3 +++ 1 file changed, 3 insertions(+) -- 2.25.1 diff --git a/target/arm/helper.c b/target/arm/helper.c index 3adafc07f0..50717afa4a 100644 --- a/target/arm/helper.c +++ b/target/arm/helper.c @@ -9702,6 +9702,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;