From patchwork Fri Jun 26 15:14:24 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 191872 Delivered-To: patch@linaro.org Received: by 2002:a92:d244:0:0:0:0:0 with SMTP id v4csp602160ilg; Fri, 26 Jun 2020 08:44:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwW1fO608OUpq4ETg0d+b2qadpvKSmjGY+FtWrgkDedkM7V47opLHFd9aAmny/tQzEveV94 X-Received: by 2002:a25:3d8:: with SMTP id 207mr501924ybd.288.1593186253689; Fri, 26 Jun 2020 08:44:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593186253; cv=none; d=google.com; s=arc-20160816; b=ljEDCnMr3EcZj3Q1KNeKEKeOg0gK3KPdY32lkoPPqE0AqBnq7tImEjIRRV1jjfU4ba JGPo0Np35M74HKE1IWWhQwXkA2f8djHHhpyxKGLpM8rBRCR/sUWk1Uj7AD4tfSDl4mhk cNmWZw+wgg1q5QZc6y7uwy7JUxySnpn2aKY5sHQTvqnXSO7LkyNqTIiY7fCF3CODCSZD 5my6iy3A9R5MLIonrWq7eVD5F8J1MWke2xiSOGW3TEYZlYA6q7+ORGOIf91piwRNYGwF N5/L6cfO/P3E8Zo/N4ensC3hiqm/bKyhZsj+fTrATrswW8Ib074ra6kGCrvJ7bwENdbf /Y9g== 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=uTu7OHovsUuRycqX60tPTOf1KxCYgUCqmiTf0JQrhhE=; b=tqJF6dyBCpZEmHZMcJM5A76+DKWncpkQ9TNrxDK/pJxjpNMv8nfmQmFC9w8c2553H8 wHnNCUOeQ7bccuPqHO9rS1xIFeGkDuoLa1vkPhZKr7yhuNX7pIw5rHYr0+3Igk8whXY5 EMNdDJOwm0sR21pktcO6e2gWS2oi9KqSTyNmUhSyc7Dk3d18XgE9tJifQhRavMAAANPk YzoYtA99YIT1L0WHEmy0RkVrpxhlI+vISiRLOuBfiU1KjRuWDqdVlVH3/T7Ccxgv/Ihm UcQ2eGs8JHcveSuPnhxqBaLPImJVf/LAguSwhRYQXuI5js72xJMRKpIWkDGqgR7JO0Tv eyJw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=colkzIor; 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 a18si1749093ybp.150.2020.06.26.08.44.13 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 26 Jun 2020 08:44:13 -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=colkzIor; 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]:58020 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1joqWT-0004L1-2D for patch@linaro.org; Fri, 26 Jun 2020 11:44:13 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36380) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1joq4q-0003lG-Jk for qemu-devel@nongnu.org; Fri, 26 Jun 2020 11:15:40 -0400 Received: from mail-wr1-x442.google.com ([2a00:1450:4864:20::442]:45353) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1joq4n-0006nV-MO for qemu-devel@nongnu.org; Fri, 26 Jun 2020 11:15:40 -0400 Received: by mail-wr1-x442.google.com with SMTP id s10so9825365wrw.12 for ; Fri, 26 Jun 2020 08:15:37 -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=uTu7OHovsUuRycqX60tPTOf1KxCYgUCqmiTf0JQrhhE=; b=colkzIorq2oOsFQbS+gxoXgnDw0KuD3gCQI5SgWoj3LD1r6nBUFjLf4YdKsjnsS6YW JlE4+0EgreKWXcimb1LN3CFwOBFnIbCW99+6ByD18f6IG/yyv8CZsTHPCEq8cFwpI9V+ dMeZ1C0RuB5i7sNwRJyQRzm5D3h84gqWMyDhfc5SzJRRAUICufJO1vDPi3FeqSHqqjac um3+U6xDcTANHvtBhk59KuiPsHeTTzWT/rT6XDREqETaSoLc/yQjW68btc6e20hmVjvh JcxKpv8izdoAOyBa5oqM2FQW2D9I/V1rmc66dtUkNDsuXhvmUDxnF01VvGZ/VGTuhqfZ 2Afw== 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=uTu7OHovsUuRycqX60tPTOf1KxCYgUCqmiTf0JQrhhE=; b=JA+IIIgMdAq0lYBSxSMZ8cXUfCU2P5EXoG/cGZ1kHT/DT43nwCIbAP1loewQByPR5t gqrNtVRSlNwSmuP7alydZolnUcYtla/Hser9CQyFxWTv6Z9JG4L2809VAepDldT1fPZ+ NluXib6jZ4Nb01Zxbu4EWgC//DeVUbOXHY1Np9jaxhBM2dlg9gmuf/boYYZkhxQZK6Q7 HmDyOfG+KPZtbiUivGGLq8UoBSNO/UBBh99Jazr1MK7uDGWxcoM6lCGmQE5WPzpmMU1I 68iNBGO4XaToS0AVVovlIrox2HpKwaeLNX30SJKy+XURM+w4MRAOYJaM9SeRMDDsxZrl 2gOw== X-Gm-Message-State: AOAM5323VFEG+Z2j8jla3BM58GWAuuVBsSQsCBwp/7so7qwDKXw+zlJm zzXe6tpzMFWOyGjGCu80zTLLiGJK0ZeQcA== X-Received: by 2002:adf:f885:: with SMTP id u5mr4225800wrp.402.1593184536129; Fri, 26 Jun 2020 08:15:36 -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.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Jun 2020 08:15:35 -0700 (PDT) From: Peter Maydell To: qemu-devel@nongnu.org Subject: [PULL 57/57] target/arm: Enable MTE Date: Fri, 26 Jun 2020 16:14:24 +0100 Message-Id: <20200626151424.30117-58-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::442; envelope-from=peter.maydell@linaro.org; helo=mail-wr1-x442.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 We now implement all of the components of MTE, without actually supporting any tagged memory. All MTE instructions will work, trivially, so we can enable support. Reviewed-by: Peter Maydell Signed-off-by: Richard Henderson Message-id: 20200626033144.790098-46-richard.henderson@linaro.org Signed-off-by: Peter Maydell --- target/arm/cpu64.c | 5 +++++ 1 file changed, 5 insertions(+) -- 2.20.1 diff --git a/target/arm/cpu64.c b/target/arm/cpu64.c index a0c1d8894b7..a2f4733eed6 100644 --- a/target/arm/cpu64.c +++ b/target/arm/cpu64.c @@ -654,6 +654,11 @@ static void aarch64_max_initfn(Object *obj) t = cpu->isar.id_aa64pfr1; t = FIELD_DP64(t, ID_AA64PFR1, BT, 1); + /* + * Begin with full support for MTE; will be downgraded to MTE=1 + * during realize if the board provides no tag memory. + */ + t = FIELD_DP64(t, ID_AA64PFR1, MTE, 2); cpu->isar.id_aa64pfr1 = t; t = cpu->isar.id_aa64mmfr1;