From patchwork Sun Aug 4 16:18:48 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gustavo Romero X-Patchwork-Id: 816620 Delivered-To: patch@linaro.org Received: by 2002:adf:e00d:0:b0:367:895a:4699 with SMTP id s13csp1031865wrh; Sun, 4 Aug 2024 09:20:11 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCVRG6QOFCoLlIBstL6BaBge37xP3WvyjYEIXl6CarxXsitEPMO44EvP5NUNHVl4cEWifuJYKU+pAHnkQ+Zpbn6e X-Google-Smtp-Source: AGHT+IFIF2Rtg5SEciOKZG1EF0nfrSMkLNBrdQuC4JLCizTwAABIhUZtAwJA8qW2qgEk0VTGtl9U X-Received: by 2002:ac8:5e54:0:b0:44f:9e6f:d00d with SMTP id d75a77b69052e-45189254941mr121147211cf.11.1722788410794; Sun, 04 Aug 2024 09:20:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1722788410; cv=none; d=google.com; s=arc-20160816; b=aztYptahtlR/j5/2CwyC5jIveeCoejyWvMvIlWO3VuFfDObpVad6xGnSJardU/knaA fWgFjctD+Xk+S62tyx6vHC9euZtYk4khpvbNziUyeLmo5tdtBQG/PGRN21bfv+wU9u3T 5Bm86nPKe6xeNGu8IgADi9Lr8jFbANahX+jzT/Osu/2mIkkz5YL/JCBAzCgncdDrOPet z/VSAoUV4ZrZ6BfqAk9ZkUmon0olmO1Yi6KWzDE2k2L0waTAkaaqEuz5P1xjnxeGYfTk vixVNfoUw6csb/fTXpx++xeKNPgBZZMIQvwo/G8mO8I69wPNfGKuTZZZvS9zI9pQDVeb GeYw== 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:cc:to :from:dkim-signature; bh=PV3QfiL0bSdPt8jTZc4TMiZHEwd17GiN9hOOMRggKrk=; fh=9wbfTHfFH9iucpcKtLZ4/oCapWJkG4e2bREEqSbe3uQ=; b=nPX4chBusc9mmKSIx+T6Z5rJw3FMoEsBI4kRDo6yKpU4EyRKlVgfwxRUC5pi/VmwNT JoRv+YF+WGough2PakG7f6SWnCiSmAhU4chx7L47RUDgCCAXJAWrNqWqNqLp02Oz8F8q sJNi9ajmai0aOd9PARRtjpiq2hLIa3N88FZ+wODKzJuC/DptEANVUxBEInDYAq9oDYZX Fr1BUfg26BPaRUVhnvu3IaoQgIm+RDo4ZrTnqZwXYY181EuVW2B5AZFY9TfGPl29OLVk S1G1vbJcP9bA4I0A7oGxmxGWCaR+JtuzLPihplPvNrVrnsF5WXftHjFwPBWX+L4OnPnq FR5g==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=zvw5EZMd; 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; dara=neutral header.i=@linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id d75a77b69052e-4518a765560si70973211cf.255.2024.08.04.09.20.10 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 04 Aug 2024 09:20:10 -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=zvw5EZMd; 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; dara=neutral header.i=@linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sadxC-0007Zx-Mf; Sun, 04 Aug 2024 12:19:30 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sadxA-0007Wl-M3 for qemu-devel@nongnu.org; Sun, 04 Aug 2024 12:19:28 -0400 Received: from mail-oo1-xc31.google.com ([2607:f8b0:4864:20::c31]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sadx9-0003z2-62 for qemu-devel@nongnu.org; Sun, 04 Aug 2024 12:19:28 -0400 Received: by mail-oo1-xc31.google.com with SMTP id 006d021491bc7-5d5c7f23f22so5792012eaf.0 for ; Sun, 04 Aug 2024 09:19:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1722788365; x=1723393165; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=PV3QfiL0bSdPt8jTZc4TMiZHEwd17GiN9hOOMRggKrk=; b=zvw5EZMdMiz1BveuQ69h+uT0JekxRXHYtbZNXS7Q/QHTiNRY298/xAdrZNNaYNObWc G97YNOP3LvxAltfGI+GSLWEH6ysh7II2Cxi5z9dMMEQ4Iy9aUtqc2z4wHgWyV7ky8Rlt RRwlLa48MnpCZTqyQWRDlEia5eBqT1K+NCqzjj2bi3dm0jIv922TskbpCwWsaKJkBw7F zisb8PBx9+CGp6wPj/fUCqPhrgdjWoqNah0JQZHpM7q4L4P8YpN4M9Br2qSkJ+VPYt7U jOWWs3eI85SZy6qx0edA9dF6HGzj7CppKKq5EQi8giAIASnjlSte/gs92edQ38A+quws 4mTA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722788365; x=1723393165; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=PV3QfiL0bSdPt8jTZc4TMiZHEwd17GiN9hOOMRggKrk=; b=epj1zg0SNaBIp5zPdjQydhqpRBhlRC0eIMCOPVaRT2nFBhjo0nblydNInyuJ38YfJs HsLFPerSpGUcJpgo9V4XMYzThObhbDJCn8lM2iGea706wjmyjlarD/jmRXTI7yrhjIPK nBb7et0xNS0XicK3mgrnyPHN2Bw1buBtLsTsLcJeNc8bket5YUPJuQyX3VWXaD281kz5 QhPSwhWc0M3uvoNaA/2CFdxpEWz/zdY8zL56h6Y7udKRXlhaa6LyC8OhEbZGMQH+8ecg +0TUWLSuZTE4HhNxTS87rHInonGV7hy0xc9ggNV1fLpm9W2vChPddayVs/21mNxAlOHp vyLw== X-Gm-Message-State: AOJu0Yz/p3rMqNgKYNnBT8kVjyK5FX6lZV0ZDVNESWlLFhVE4ejJ51Ey u+ALcT1c+u2d9Ens75cgA2VhONEYVsiW60Ml51Vf2K8VFlUq1GaHO2Pnr5QOqfWpJ0LpmusjT5v ckcA= X-Received: by 2002:a05:6870:1718:b0:260:dec5:11cc with SMTP id 586e51a60fabf-26891af7211mr11404927fac.20.1722788365432; Sun, 04 Aug 2024 09:19:25 -0700 (PDT) Received: from amd.. ([2804:7f0:b403:720f:3e7c:3fff:fe7a:e83b]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-7106ec4169csm4117530b3a.64.2024.08.04.09.19.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 04 Aug 2024 09:19:24 -0700 (PDT) From: Gustavo Romero To: qemu-devel@nongnu.org, richard.henderson@linaro.org Cc: alex.bennee@linaro.org, gustavo.romero@linaro.org Subject: [PATCH 1/3] configure: Fix arch detection for GDB_HAS_MTE Date: Sun, 4 Aug 2024 16:18:48 +0000 Message-Id: <20240804161850.2646299-2-gustavo.romero@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240804161850.2646299-1-gustavo.romero@linaro.org> References: <20240804161850.2646299-1-gustavo.romero@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::c31; envelope-from=gustavo.romero@linaro.org; helo=mail-oo1-xc31.google.com 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=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 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-bounces+patch=linaro.org@nongnu.org GDB_HAS_MTE must only be set if GDB supports the aarch64 arch, so the test if "aarch64" string is present must be against GDB-related '$gdb_arches' variable and not against '$arch' variable. Signed-off-by: Gustavo Romero --- configure | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure b/configure index 019fcbd0ef..a3aa257fd3 100755 --- a/configure +++ b/configure @@ -1673,7 +1673,7 @@ for target in $target_list; do echo "GDB=$gdb_bin" >> $config_target_mak fi - if test "${arch}" = "aarch64" && version_ge ${gdb_version##* } 15.0; then + if test "${gdb_arches#*aarch64}" != "$gdb_arches" && version_ge ${gdb_version##* } 15.0; then echo "GDB_HAS_MTE=y" >> $config_target_mak fi