From nobody Wed Feb 11 02:08:39 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1529426518485238.51489949213146; Tue, 19 Jun 2018 09:41:58 -0700 (PDT) Received: from localhost ([::1]:43754 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fVJhd-0002JL-NV for importer@patchew.org; Tue, 19 Jun 2018 12:41:57 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45934) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fVJ4r-0004Xw-VO for qemu-devel@nongnu.org; Tue, 19 Jun 2018 12:01:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fVJ4m-0007ZT-8Y for qemu-devel@nongnu.org; Tue, 19 Jun 2018 12:01:54 -0400 Received: from mail-wm0-x22f.google.com ([2a00:1450:400c:c09::22f]:39453) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fVJ4m-0007Z3-1J for qemu-devel@nongnu.org; Tue, 19 Jun 2018 12:01:48 -0400 Received: by mail-wm0-x22f.google.com with SMTP id p11-v6so1407498wmc.4 for ; Tue, 19 Jun 2018 09:01:47 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id n7-v6sm39234wrr.39.2018.06.19.09.01.45 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 19 Jun 2018 09:01:45 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id 17A853E0BB0; Tue, 19 Jun 2018 16:44:37 +0100 (BST) 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=sne9Xo1jNejjawySnCbDfbqgOz2Sdg2bMObbr732IZo=; b=DlQAUsX3wg3hoOm0eg/vlnvUK5ZEhsCu9l2O7/Bu6zdMxU1V+CGJXsNilCC2nk+S5m Y1TBoRkDsMhvyk7OgAyrE1gMXniRZ5AgWOYM8wwWIIv+C6IDNTmDa/p0EVxQkmPncEjH lQ4/ijo5LNa/1e8kPf2t/CXuMJpg7G49+LwlQ= 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=sne9Xo1jNejjawySnCbDfbqgOz2Sdg2bMObbr732IZo=; b=efVskwtaSxaPX/htheFMpPZRR6yuMznp9SGUjIx96wvhHxSCFByeh/GWPGz+59fhQq B0wPN6I3qu5VvBLkmpZ1sk7Gz85Lsvx3D6e/FVgD6jT2NavAcLZLBk+yw8Bom9Yz1CKH 5VPjdyyzvk7dCOKpIIBu+RXPFCFkqq2RNv/Vm1YMo0Z7LtWkXvU+0FYG59uXL8lsaeYv aA1zAGV06HijbVy7+IMvjIiuu00iH2UJcl7rwE2t0ehKQ3NU08pigrjyeSRxxOHsXQJM +zQPaxpAygf7NbtTOl/WJF9gVYp/gdfM7AJNlOdZMwlojLTMOavxUhsGFlO8zMkF1i/y DsNQ== X-Gm-Message-State: APt69E3oEWw5N7xLdxkWjmexB/sOHv+KwcdYd0OLwXFb91AVYFdb29Df ioa1wDzuVbDb+GioRYiYxfaWAA== X-Google-Smtp-Source: ADUXVKLVgCv/w7C6A85w2wY4DGo99KkN6RB9sGgdON8Cil3Lan7NWge593V1eNLxdjR0+yj/Ou0TXw== X-Received: by 2002:a1c:3fd1:: with SMTP id m200-v6mr13364984wma.88.1529424106827; Tue, 19 Jun 2018 09:01:46 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: peter.maydell@linaro.org Date: Tue, 19 Jun 2018 16:43:58 +0100 Message-Id: <20180619154435.18898-20-alex.bennee@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180619154435.18898-1-alex.bennee@linaro.org> References: <20180619154435.18898-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c09::22f Subject: [Qemu-devel] [PULL 19/56] tests/tcg/x86_64: add Makefile.target X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: agraf@suse.de, Eduardo Habkost , =?UTF-8?q?Alex=20Benn=C3=A9e?= , richard.henderson@linaro.org, qemu-devel@nongnu.org, f4bug@amsat.org, cota@braap.org, Paolo Bonzini , famz@redhat.com, aurelien@aurel32.net, Richard Henderson Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_0 Z_629925259 SPT_0 The sources for x86_64 are shared in the i386 directory which will be included thanks to TARGET_BASE_ARCH. However not all sources build so we need to filter out the ones we can't build in the 64 bit world and those that can't be built for 32 bit. Signed-off-by: Alex Benn=C3=A9e Reviewed-by: Philippe Mathieu-Daud=C3=A9 Tested-by: Philippe Mathieu-Daud=C3=A9 --- v4 - update MAINTAINERS v5 - merge with disable i386 version of test-i386-ssse diff --git a/MAINTAINERS b/MAINTAINERS index ea298cc910..57c828644f 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -284,6 +284,7 @@ M: Eduardo Habkost S: Maintained F: target/i386/ F: tests/tcg/i386/ +F: tests/tcg/x86_64/ F: hw/i386/ F: disas/i386.c T: git git://github.com/ehabkost/qemu.git x86-next diff --git a/tests/tcg/i386/Makefile.target b/tests/tcg/i386/Makefile.target index 64d241cfdf..cd173363ee 100644 --- a/tests/tcg/i386/Makefile.target +++ b/tests/tcg/i386/Makefile.target @@ -7,9 +7,9 @@ VPATH +=3D $(I386_SRC) =20 I386_SRCS=3D$(notdir $(wildcard $(I386_SRC)/*.c)) I386_TESTS=3D$(I386_SRCS:.c=3D) - +I386_ONLY_TESTS=3D$(filter-out test-i386-ssse3, $(I386_TESTS)) # Update TESTS -TESTS+=3D$(I386_TESTS) +TESTS+=3D$(I386_ONLY_TESTS) =20 ifneq ($(TARGET_NAME),x86_64) CFLAGS+=3D-m32 diff --git a/tests/tcg/x86_64/Makefile.target b/tests/tcg/x86_64/Makefile.t= arget new file mode 100644 index 0000000000..74f170b9ed --- /dev/null +++ b/tests/tcg/x86_64/Makefile.target @@ -0,0 +1,15 @@ +# -*- Mode: makefile -*- +# +# x86_64 tests - included from tests/tcg/Makefile.target +# +# Currently we only build test-x86_64 and test-i386-ssse3 from +# $(SRC)/tests/tcg/i386/ +# + +X86_64_TESTS=3D$(filter-out $(I386_ONLY_TESTS), $(TESTS)) +X86_64_TESTS+=3Dtest-x86_64 +TESTS:=3D$(X86_64_TESTS) + +test-x86_64: LDFLAGS+=3D-lm -lc +test-x86_64: test-i386.c test-i386.h test-i386-shift.h test-i386-muldiv.h + $(CC) $(CFLAGS) $< -o $@ $(LDFLAGS) --=20 2.17.1