From nobody Mon Feb 9 20:31:27 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1639645108; cv=none; d=zohomail.com; s=zohoarc; b=O/YSXCosGzSWXl0W/4S+dX5HpNW1oWRj0sW4RKaxI0oZIknx/gNGXWOz50EWRGBL81qdm40pl0jGTRQ2TQTXEo0VeQXGtT3OMFv3ye/RUoZ0X2o+BCen6TeVdwsexWWNg72W17nVf0coWM/KE6VuS/apHZqkmpriwHhMniYfQCI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1639645108; h=Content-Type:Content-Transfer-Encoding:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=Gg50s1nfYGFLRkj5CFVRlRoEsFcXXd7SBiqjypnbxZg=; b=ji0yFmQ8EX6V3Cydrx4j9csqUXvToM/K+t+T+rMJJhlVVR1frSIVa9BcHFF1yqgi+6EP1fMvvGiFXvUivTQq4iuWn2C491NUivnzNKi/cnJZo0+TvkFIwBr47EBeRJ6u8awJJ5wfy+2HtUTK5V8wvbic5rzSFurDpxIVLDwQFWY= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1639645108955203.5537411404831; Thu, 16 Dec 2021 00:58:28 -0800 (PST) Received: from localhost ([::1]:40748 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mxmap-0003HQ-Rl for importer@patchew.org; Thu, 16 Dec 2021 03:58:27 -0500 Received: from eggs.gnu.org ([209.51.188.92]:35652) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mxmUX-0000lU-3G for qemu-devel@nongnu.org; Thu, 16 Dec 2021 03:51:57 -0500 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:37883) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mxmUU-0004Cf-Ut for qemu-devel@nongnu.org; Thu, 16 Dec 2021 03:51:56 -0500 Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-294-vorzIHeQNIyJ_-vbB6fpDw-1; Thu, 16 Dec 2021 03:51:48 -0500 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 2A539100D682 for ; Thu, 16 Dec 2021 08:51:47 +0000 (UTC) Received: from avogadro.mxp.redhat.com (unknown [10.39.194.194]) by smtp.corp.redhat.com (Postfix) with ESMTP id 9FB4C2C1AB for ; Thu, 16 Dec 2021 08:51:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1639644714; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Gg50s1nfYGFLRkj5CFVRlRoEsFcXXd7SBiqjypnbxZg=; b=bSAA+vfFxZ5WES0KFLmNT7tIZZT6UBMpTq3UKtqGu7Gbrh8CxSS0NTszNfmI1RLnGw2ibd fgSnHs9Ow4HGR4bap6Tap2E59ufJtyllK5uheM8M4RALa0qmYhn07LQFT+OYYDznJBX0DH QWciFAcZdUMtsq0qB1YKqK9DXV9BGqc= X-MC-Unique: vorzIHeQNIyJ_-vbB6fpDw-1 From: Paolo Bonzini To: qemu-devel@nongnu.org Subject: [PATCH 07/10] configure: unify x86_64 and x32 Date: Thu, 16 Dec 2021 09:51:36 +0100 Message-Id: <20211216085139.99682-8-pbonzini@redhat.com> In-Reply-To: <20211216085139.99682-1-pbonzini@redhat.com> References: <20211216085139.99682-1-pbonzini@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=pbonzini@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=170.10.133.124; envelope-from=pbonzini@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -34 X-Spam_score: -3.5 X-Spam_bar: --- X-Spam_report: (-3.5 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.718, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, 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+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1639645109470100001 Content-Type: text/plain; charset="utf-8" The only difference between the two, as far as either configure or Meson are concerned, is in the multilib flags passed to the compiler. For QEMU, this fixes the handling of TYPE_OLDDEVT in include/exec/user/thunk.h and enables testing of dirty ring buffer, because both are using HOST_X86_64. For tests/tcg, this means that on a hypothetical x32 host the cross compiler will not be used to build the tests. Signed-off-by: Paolo Bonzini Reviewed-by: Richard Henderson --- configure | 6 ++---- meson.build | 3 +-- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/configure b/configure index 741ff99f4f..741c33c7ad 100755 --- a/configure +++ b/configure @@ -646,6 +646,7 @@ case "$cpu" in cpu=3D"i386" CPU_CFLAGS=3D"-m32" ;; x32) + cpu=3D"x86_64" CPU_CFLAGS=3D"-mx32" ;; x86_64|amd64) cpu=3D"x86_64" @@ -3735,7 +3736,7 @@ fi if test "$linux" =3D "yes" ; then mkdir -p linux-headers case "$cpu" in - i386|x86_64|x32) + i386|x86_64) linux_arch=3Dx86 ;; ppc|ppc64) @@ -3917,9 +3918,6 @@ if test "$skip_meson" =3D no; then i386) echo "cpu_family =3D 'x86'" >> $cross ;; - x86_64|x32) - echo "cpu_family =3D 'x86_64'" >> $cross - ;; *) echo "cpu_family =3D '$ARCH'" >> $cross ;; diff --git a/meson.build b/meson.build index 96de1a6ef9..903d4f3b10 100644 --- a/meson.build +++ b/meson.build @@ -355,7 +355,7 @@ if not get_option('tcg').disabled() tcg_arch =3D 'tci' elif config_host['ARCH'] =3D=3D 'sparc64' tcg_arch =3D 'sparc' - elif config_host['ARCH'] in ['x86_64', 'x32'] + elif config_host['ARCH'] =3D=3D 'x86_64' tcg_arch =3D 'i386' elif config_host['ARCH'] =3D=3D 'ppc64' tcg_arch =3D 'ppc' @@ -1801,7 +1801,6 @@ disassemblers =3D { 'hppa' : ['CONFIG_HPPA_DIS'], 'i386' : ['CONFIG_I386_DIS'], 'x86_64' : ['CONFIG_I386_DIS'], - 'x32' : ['CONFIG_I386_DIS'], 'm68k' : ['CONFIG_M68K_DIS'], 'microblaze' : ['CONFIG_MICROBLAZE_DIS'], 'mips' : ['CONFIG_MIPS_DIS'], --=20 2.33.1