From nobody Wed Feb 11 02:08:30 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 152956572822564.79770123751234; Thu, 21 Jun 2018 00:22:08 -0700 (PDT) Received: from localhost ([::1]:53565 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fVtuw-0002iA-Jn for importer@patchew.org; Thu, 21 Jun 2018 03:22:06 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:56936) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fVtIH-00055m-14 for qemu-devel@nongnu.org; Thu, 21 Jun 2018 02:42:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fVtIE-0003Sh-GH for qemu-devel@nongnu.org; Thu, 21 Jun 2018 02:42:09 -0400 Received: from mail-wm0-x22b.google.com ([2a00:1450:400c:c09::22b]:40582) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fVtIE-0003Rw-9v for qemu-devel@nongnu.org; Thu, 21 Jun 2018 02:42:06 -0400 Received: by mail-wm0-x22b.google.com with SMTP id n5-v6so3643687wmc.5 for ; Wed, 20 Jun 2018 23:42:06 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id l78-v6sm7493431wmb.39.2018.06.20.23.41.56 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 20 Jun 2018 23:42:02 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id E9CE03E0BF4; Thu, 21 Jun 2018 07:26:06 +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=T7FtWFgAFI0p+zca0z3pYTMJQ35FCcGWJx4KJgKVp+M=; b=AK0V1HiPInYTJ6u4bltnBp9qusAA/aOiLzupEMQ+3RRUQ/TXgMqraUdwtCqT0h142K aVPxhvBXnHflbKz5fcyiiDiMXTyYhJA1bdGtQTmFAbuRYI7UYwqc1+MAEYkPvsfwLtC+ ywcOqb/cA/w9w0osEMJtp48YCWprbU110+8VQ= 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=T7FtWFgAFI0p+zca0z3pYTMJQ35FCcGWJx4KJgKVp+M=; b=OnoIo6+BdRVHOmFL++CJkGGxwQ+ZtR93fhnUY1IOF5LxPp/Wimwjz1AnAW8/SVDGMF msqqs0ue0ap7HslOICEMwDEJZPx1EI8z+KKOCQL1JxDy1D/lNPU+qvb1KMeKDrSN+a0i 8ZkX490Up0Bx6cYsr//69T4EowQKeHOc+h3IxR/AjWTQ02dVUUtM+udi1h9tbA+UrAWY vYC7GbH5lJ10169/Z4b73q7+fFmny1GvgMzFhkOracDlUEBcfgnUuLHjzJ1zt0PpBnfI UHoi4WdIIxNq6YxQRbDzzMhhA0Nam9cvkP4/TCwYqVTut165ZtiLr5EiaZKiBzvaGNgY D0nw== X-Gm-Message-State: APt69E2NQPVF5ffxPqk9x7Nu2dHJ3+L7Vx7Th/2zdMd2WSugB3qV4hkr +TjXv4dahLnrDVlMO87hrVZA9g== X-Google-Smtp-Source: ADUXVKJXX+tGOrm2GI8N9UUu6jogzVPbQEZmjXfxwToQhM0rJdI0XluKAQzmvC+xFUCME+zqMct3Ig== X-Received: by 2002:a1c:e146:: with SMTP id y67-v6mr3982613wmg.17.1529563325245; Wed, 20 Jun 2018 23:42:05 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: peter.maydell@linaro.org Date: Thu, 21 Jun 2018 07:25:28 +0100 Message-Id: <20180621062605.941-21-alex.bennee@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180621062605.941-1-alex.bennee@linaro.org> References: <20180621062605.941-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::22b Subject: [Qemu-devel] [PULL v2 20/57] 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 diff --git a/MAINTAINERS b/MAINTAINERS index 590c24377c..096b5bbf61 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