From patchwork Thu Aug 15 14:48:53 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 819418 Delivered-To: patch@linaro.org Received: by 2002:adf:cd01:0:b0:367:895a:4699 with SMTP id w1csp1196869wrm; Thu, 15 Aug 2024 07:50:07 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCURzE2CWKH2MoOEKcrMLTIwD6GaYhzp1RoOUd5pinbOLif2Ch5v2gjzm7+F0fuKrIpqN9Jaic76Fzb2JbcBr3HA X-Google-Smtp-Source: AGHT+IHnQctjGdx16EBPqzVn0tgY+TCBApXns1x/4aPFFzKl8nfVMoQU8WwpRcMDG3k2rXyN3eHq X-Received: by 2002:a05:6102:3714:b0:48f:4a50:233e with SMTP id ada2fe7eead31-497799e61d2mr22335137.21.1723733407766; Thu, 15 Aug 2024 07:50:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1723733407; cv=none; d=google.com; s=arc-20160816; b=KwPv2wQj3NvcOokJj6hf7bFLv5kwFPAXo6iMRcACplZhFbiDpIXvSlCMKSmigyEEVs m60FEGW9kKmAJ657Xh50HYaV0gC9OeLj8n5LcN7LbA6UFzRtgGLzZaNxeAHUoB/0qJpT n1i0iFdiMVfOp5b+NAQUvlPYE56gHpkqkdPFO/pTItOXOd8ndXidY2JFNVYoGLaaFeN0 Y+70v62qzL5Vr6O7ZiZVkUcJUoTTBtdfUbroH2yM33BQM8iSaXjhU8+radnH+kGabqmp qgCT9O6EGKv2lDjzjzmjw03hMWgedSv6+2vQtX0nH88h0BdMEPHYUmz3tSiWMbWHmoSQ EJzQ== 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=j0KEoUGEE33PJpI6PwWgjdeA/8L5WleKbgGt33xqUss=; fh=+M+8gO26t5vlbWcGapebAnMZlKU/cMZ//ycVIxef2Bs=; b=X8lfqFf6wM3I/4NkwYC0u4ady7wGsGWgghIzfxqboNtmtJUf+dGMwvJMXgW51Mwnn+ 8YdSXciL3RadLZNFNW/JjzUSYD2k2SvtpjXEi4kwqTg3oD1nFmevrhWhFhDw59C6yv4n GIZ+nU34/S3MMJAHLQd21Lh9KrG7jFghbPIwA66J29oEIYR/AxEp+KCSRfMjKs7BA/v8 4wtGTloeBN/RVgide//tz4yGrJ+dRvSjhLsT6xp5ayMwiH97bMSwhwY1AjBGIr70GR1H B3YsdaDaoqiqN8Ek/aC5g1fOXbSyR5sJohXoZS6dpqvVf/YHZrKkoVCETDZQHBUOwHJE zbBg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=zZzJPTza; 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 af79cd13be357-7a4ff0e6072si214023985a.408.2024.08.15.07.50.07 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 15 Aug 2024 07:50:07 -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=zZzJPTza; 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 1sebnD-0003po-Bv; Thu, 15 Aug 2024 10:49:35 -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 1sebn2-0003Ox-Bb for qemu-devel@nongnu.org; Thu, 15 Aug 2024 10:49:25 -0400 Received: from mail-ed1-x529.google.com ([2a00:1450:4864:20::529]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sebmt-0000Bj-Vz for qemu-devel@nongnu.org; Thu, 15 Aug 2024 10:49:24 -0400 Received: by mail-ed1-x529.google.com with SMTP id 4fb4d7f45d1cf-5b7b6a30454so1374660a12.2 for ; Thu, 15 Aug 2024 07:49:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1723733354; x=1724338154; 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=j0KEoUGEE33PJpI6PwWgjdeA/8L5WleKbgGt33xqUss=; b=zZzJPTzarqNEwQ1RpQppA5Hxhc04MGgLELH5DmkUOV1xUlruwLJL7T4AwBQEoJrLAA H3pykXNMDzvqoRTqhCVz2LxeMwj+lHHV4zn7YemNI+5tdgPVrkXVRpP3ZLLdmGRw7Of/ BHLXD3nmsyprNjGrlCRjXTJaK0n0A9Efymx5gD9PrHp+6p+wxKdWHslqqSs2GY/njkZg CQYOc+zB+mqIe4V0Ds04NGhksscmvrz/Rnlt4aqSbRbRUM0tmKty188GtR+TSb3zgrR5 0cZLNLh62O3U28Gj5CoBLE5jj4829/Y9Ls4C5CIMQfr2jldkr0o9OY/UXv7kFlhafybT Hy6w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723733354; x=1724338154; 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=j0KEoUGEE33PJpI6PwWgjdeA/8L5WleKbgGt33xqUss=; b=iUg+kxc44TXlwLupiPzzq8/B4q85+4qa91WLQdq03szchCKtY06SGmcu1jWe7isxH1 guQh85MCVAf8vDy3qr0KJ2r7yZ9LA/2XMj++gnQJC3WXwThs8X7N/3hoWlCQ77h2+HdA TRBCmrSBW4J+hZalDzza625YhG5N05u/esboJ4RQlveYVYBeQxSonzJ8HWPCV2DJmVCS Y2H40iPBz6h8iU4JjJsXclTujgVnxBnypZ7XbmDMFH/zYmIT85sw/Runs91SIuL5I5rt +yhb9m5dB3RArxQduTMNJX0XHIKxvJIFWf3EF5rNUTXxriNIwhJn6HTok/yIks4US7iA mOaw== X-Gm-Message-State: AOJu0YykscIzrfHBrOKFsdVr/hwIPuhopBicsxwnD+xdQbHrD4RxdSHo S8fmLg+LiWPtqNQ9fo8JpPJrxYyG/8ev1pFxvZzKaavoWsc7yEK6Tkya3nDcsrk= X-Received: by 2002:a05:6402:550b:b0:58d:81ac:ea90 with SMTP id 4fb4d7f45d1cf-5bea1cbcf1bmr3062504a12.38.1723733353852; Thu, 15 Aug 2024 07:49:13 -0700 (PDT) Received: from draig.lan ([85.9.250.243]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5bebbde7cd4sm985090a12.39.2024.08.15.07.49.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Aug 2024 07:49:12 -0700 (PDT) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id 00CF15F90B; Thu, 15 Aug 2024 15:49:12 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: Gustavo Romero , =?utf-8?q?Alex_Benn=C3=A9e?= , Paolo Bonzini , Thomas Huth Subject: [PULL 03/21] configure: Fix arch detection for GDB_HAS_MTE Date: Thu, 15 Aug 2024 15:48:53 +0100 Message-Id: <20240815144911.1931487-4-alex.bennee@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240815144911.1931487-1-alex.bennee@linaro.org> References: <20240815144911.1931487-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::529; envelope-from=alex.bennee@linaro.org; helo=mail-ed1-x529.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, T_SCC_BODY_TEXT_LINE=-0.01 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 From: Gustavo Romero 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 Message-Id: <20240804161850.2646299-2-gustavo.romero@linaro.org> Signed-off-by: Alex Bennée Message-Id: <20240813202329.1237572-4-alex.bennee@linaro.org> 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