From patchwork Thu May 17 17:46:52 2018 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: 136204 Delivered-To: patch@linaro.org Received: by 2002:a2e:9706:0:0:0:0:0 with SMTP id r6-v6csp273413lji; Thu, 17 May 2018 11:23:39 -0700 (PDT) X-Google-Smtp-Source: AB8JxZr6UTJc6FsyEM++zi3HosZcfNR4ekIzAboq7Oh4zEMHdZZfnxXIgR9gK455PWp9gKxaH4zp X-Received: by 2002:a0c:d2b1:: with SMTP id q46-v6mr6074393qvh.172.1526581419582; Thu, 17 May 2018 11:23:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526581419; cv=none; d=google.com; s=arc-20160816; b=HwZFaqiBNb4a1B4NR1CwuRdOzn037ugJJFd3zd5lFE1oIbQ800OwrALwe66Bh0Dgph Wl3njAlmZ/vNMta6yPS/l0MNKO7IrsE1xdAMeJOuxgzNQx01v5b7lAHe92ZVbDpachhV grbOdZJeoushL1MnWzsfyeKQbgvsfuNmH9GaklJo+9jo81wKe9S9biMXSKvehibC5eHI WKnJjNZxAnn9iBrQNXo6o7dOqkYKPlZrpS7BnpNgsOLNsubeT+vyJj4anlZcAeXkgXGR R8uldc8iwUR5wsF0rHLbJoEdk8oq/ejyli2uMspUyIrUcn8TDD7qNKkARi57EtgiuqTH H9VA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:to:from:dkim-signature:arc-authentication-results; bh=YiBSh/T++hzHq9hLCFZxE7x1u1qOI/U64bs4+sTCVGI=; b=wJpMmmQwlcMnNH/Ke7I5xsdYDx9aY2ub+A3/4+LbEEnZOTlKZlfVD5FVtSCOJbFCTS 7H6VI3RG57OAfz/7rThxSxhr/u8G1GD/xH0ONiCoD0P+PLq5OVrl21AgUdbEh8i7eVrQ HyJDgviKLWsPKgHFSM1psns61KaUuW6/an01lcsL+NwPUJSnPtshNMTXrOC3+YoqY3Pa gGZoVXamGNvxGN/Hmfi1VerDHFmoMTom7vwXy1qVi98TiG/7EAmVt+Yntu0W7AMX2e/l eW2LauDVE8nlD06rTYnGOA5CTd/c42qibqk60jr8bTfDffSuWYgp7XrHvMBfwBBLFkxj omlQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=RxTuxMgC; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom=qemu-devel-bounces+patch=linaro.org@nongnu.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id a67-v6si502430qkj.306.2018.05.17.11.23.39 for (version=TLS1 cipher=AES128-SHA bits=128/128); Thu, 17 May 2018 11:23:39 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=RxTuxMgC; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom=qemu-devel-bounces+patch=linaro.org@nongnu.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:38635 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fJNYx-000370-15 for patch@linaro.org; Thu, 17 May 2018 14:23:39 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52909) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fJN6b-0003df-At for qemu-devel@nongnu.org; Thu, 17 May 2018 13:54:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fJN6Y-0007KY-Sj for qemu-devel@nongnu.org; Thu, 17 May 2018 13:54:21 -0400 Received: from mail-wr0-x230.google.com ([2a00:1450:400c:c0c::230]:40233) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fJN6Y-0007Jp-Md for qemu-devel@nongnu.org; Thu, 17 May 2018 13:54:18 -0400 Received: by mail-wr0-x230.google.com with SMTP id v60-v6so6560474wrc.7 for ; Thu, 17 May 2018 10:54:18 -0700 (PDT) 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=YiBSh/T++hzHq9hLCFZxE7x1u1qOI/U64bs4+sTCVGI=; b=RxTuxMgCrowc1g1+Vb8qxWyU6HM2+JZwVbnsYrxgHm7rZG8Jb5j0yG/cOh0vOHIOU+ +wf7jygYIh069JrAGhxUEBSTcNj8/m6XSBUN/JZqfu/WD2ajQ5MhGa1M5zCFYJxoCvv3 zFR8sjQ+J7/aRysNYWOGXY7YJS4Dw3que2JyE= 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=YiBSh/T++hzHq9hLCFZxE7x1u1qOI/U64bs4+sTCVGI=; b=VxYm9PSETcqK6xs/RceyknZYRvbVfID5o5tCat7FwxcqqT2C2SOYflAg96/zBes11N A7SErjqhlZdC/Fd9CZuV/W+aUp9coo9CnE0/VYrf6Meluj/I4pFJfaraU5Ftcf2xGW2b bBfkF2kf6JTs8A8DUipWnKtv2jYaVfk8FHgPKGdBhid701OkIjI7bvB0b9AoOMYNREsL N5lghwz0blFyrt1Oo1aEgVxV3IEkwCDTC8C3GDPgDWXFpYcHG7u8xKXWRQFN4CIrygK7 WsTwzptfB1C1KuwLgxhfOWgwPS/6F1d6omE4vUlUNtHa+Wq/Kk3aMMeMGVGee+4ZX6CG 5Whg== X-Gm-Message-State: ALKqPwdil3/yP9m7RhA8H6lOjlD+Wu3CgkBaIz2DHVaRUr/zeYGGl7Ee ViMoJtUMB+pBGW2rf6/N0jjcNg== X-Received: by 2002:adf:a38b:: with SMTP id l11-v6mr4756615wrb.208.1526579657509; Thu, 17 May 2018 10:54:17 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id o20-v6sm6791722wro.67.2018.05.17.10.54.02 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 17 May 2018 10:54:13 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id 9F2AF3E0EA7; Thu, 17 May 2018 18:47:20 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: cota@braap.org, famz@redhat.com, berrange@redhat.com, f4bug@amsat.org, richard.henderson@linaro.org, balrogg@gmail.com, aurelien@aurel32.net, agraf@suse.de Date: Thu, 17 May 2018 18:46:52 +0100 Message-Id: <20180517174718.10107-24-alex.bennee@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180517174718.10107-1-alex.bennee@linaro.org> References: <20180517174718.10107-1-alex.bennee@linaro.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c0c::230 Subject: [Qemu-devel] [PATCH v4 23/49] 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: Paolo Bonzini , =?utf-8?q?Alex_Benn=C3=A9e?= , qemu-devel@nongnu.org, Eduardo Habkost , Richard Henderson Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" 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. Signed-off-by: Alex Bennée Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathieu-Daudé --- v4 - update MAINTAINERS --- MAINTAINERS | 1 + tests/tcg/i386/Makefile.target | 2 +- tests/tcg/x86_64/Makefile.target | 15 +++++++++++++++ 3 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 tests/tcg/x86_64/Makefile.target -- 2.17.0 diff --git a/MAINTAINERS b/MAINTAINERS index 688f166d39..17b9fc0fbe 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 290073a882..6d7d4a164e 100644 --- a/tests/tcg/i386/Makefile.target +++ b/tests/tcg/i386/Makefile.target @@ -7,7 +7,7 @@ VPATH += $(I386_SRC) I386_SRCS=$(notdir $(wildcard $(I386_SRC)/*.c)) I386_TESTS=$(I386_SRCS:.c=) - +I386_ONLY_TESTS=$(filter-out test-i386-ssse3, $(I386_TESTS)) # Update TESTS TESTS+=$(I386_ONLY_TESTS) diff --git a/tests/tcg/x86_64/Makefile.target b/tests/tcg/x86_64/Makefile.target 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=$(filter-out $(I386_ONLY_TESTS), $(TESTS)) +X86_64_TESTS+=test-x86_64 +TESTS:=$(X86_64_TESTS) + +test-x86_64: LDFLAGS+=-lm -lc +test-x86_64: test-i386.c test-i386.h test-i386-shift.h test-i386-muldiv.h + $(CC) $(CFLAGS) $< -o $@ $(LDFLAGS)