Message ID | 20180419135901.30035-42-alex.bennee@linaro.org |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 10.46.66.142 with SMTP id h14csp713304ljf; Thu, 19 Apr 2018 07:37:48 -0700 (PDT) X-Google-Smtp-Source: AIpwx49YnSBhbt3Mr419E2R6QV1m4qsy0UQN2JcPX1V0Jn5Eh7XqIQc58ttjTyZrVojSrcyKyqvx X-Received: by 2002:aed:232c:: with SMTP id h41-v6mr6469171qtc.115.1524148668837; Thu, 19 Apr 2018 07:37:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524148668; cv=none; d=google.com; s=arc-20160816; b=atdJP3uHgnQjm0LxK5WwzGt8STuE39ZpLCgv+EQNOrIldLOs5vJDyjTwOSwUhxoJ74 LSgvEnQ7w9gnpeyKoR8IQMxXqVl6HkR6NCACBWFn82pY4/IrFB2w1yM2g7Y57UF79W7e rJvJM9Hfvcc5cpAtFBJrTuXVIjnoh9U1gJZaLGiWK9N5VoYMC7g6U1kDNxJC++2Utj8M mmFPuFXwYMVpPxCCxxqE5n+kW9G0yflRPw23v/NaTcr5GpH2UfbCqBzNGkPWNWr6TWX4 Mibkbzy8bynnIpxeS5H0TIHiT9fK+gi8BnAIiRvQW8UbQp0gS28OAlML5vTmiDr4Dhkk xmVg== 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=o4H2aEHrCUWjd65LdAgAbF6cZHgmMOMeakm1BTDNz9M=; b=Z6z/fJ60QhLsjUt602K/zUYjEyP2M9oYQUjgUJcyYKV2yio1HDvD6iYdHnOKZB4Fa6 q+RXYiatXaNE4VqLnmCndrKWnEVv5p87vYXqoV4nPkCG9WwYzN6P5ZjYEci1S3RcYVrB LgWlbEBY0E+eNO1nqcgl1sUP9S1eIy+wBjBeMpbAdcUim5f5rvx2nF97IoqmU7Vxt4Kr gOmhuW1gNMqnaeNXVLL2nRtOOX+/lKUzkdlbW3f5Yaaxq1luDslrVDFxcNpbhi1JrVNN zgVI1qYHJb5RT21kug9ohmoQuCsdrDLVNyM4bIGyv1BjAkkoalCFlfwQf6nWalqR/5mW NQkQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=Yu5hCit9; 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: <qemu-devel-bounces+patch=linaro.org@nongnu.org> Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id r25si489869qve.3.2018.04.19.07.37.48 for <patch@linaro.org> (version=TLS1 cipher=AES128-SHA bits=128/128); Thu, 19 Apr 2018 07:37:48 -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=Yu5hCit9; 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]:51567 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <qemu-devel-bounces+patch=linaro.org@nongnu.org>) id 1f9Ah2-00088z-Ad for patch@linaro.org; Thu, 19 Apr 2018 10:37:48 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52801) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <alex.bennee@linaro.org>) id 1f9ANX-0004mT-Fm for qemu-devel@nongnu.org; Thu, 19 Apr 2018 10:17:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <alex.bennee@linaro.org>) id 1f9ANU-00068x-5L for qemu-devel@nongnu.org; Thu, 19 Apr 2018 10:17:38 -0400 Received: from mail-wr0-x242.google.com ([2a00:1450:400c:c0c::242]:38511) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from <alex.bennee@linaro.org>) id 1f9ANT-00068H-Uf for qemu-devel@nongnu.org; Thu, 19 Apr 2018 10:17:36 -0400 Received: by mail-wr0-x242.google.com with SMTP id h3-v6so14534057wrh.5 for <qemu-devel@nongnu.org>; Thu, 19 Apr 2018 07:17:35 -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=o4H2aEHrCUWjd65LdAgAbF6cZHgmMOMeakm1BTDNz9M=; b=Yu5hCit9RuckPO96XD6kGc9Gn6z7vlkWXDwLdKCye3YCCGIXKQRG0Fg5aKExDrIL6s tIdJ80SM+Q9dy37EZmrwVfyEmEVhTu6RX+p0dVnUOYvdIi7gixJBI2PDzjaJamP1igDs ibJIRYpqtx7mv/gdig7fUF2HpfD6Fh3usCV5g= 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=o4H2aEHrCUWjd65LdAgAbF6cZHgmMOMeakm1BTDNz9M=; b=WMJtNYYHqII6dlpc9iWjQRzyaroh0/EipGoauxtvTnTsGnup9LxTAvd4Mhb5ldj0jN yeajThBf+lXJA4TxvMjMSvHcTPY/SdnRGFJQKpOPWHUUSlDvTp4t8PTsOTjs/r8m2foq aKbqze38/6g+idrt9CLX+I1lNDAKicz61DRu5gzXQwML0d1W1wqibSolwVtinAtuL+zW H9qSOWpYF2swhATdfGgFXeQ+w+Rrj3IwYLZUZ1m35OCejXwkQj/5HXktP4LY1pS2NDKt 2B2BgyE+tjfMUs3qckHF8nz62VCRi7kJHGXLV0o3WSDkAW1Cdg3sNp75qHF2Y6ayRWkX W8Dw== X-Gm-Message-State: ALQs6tAYC1XzmRgIuaPuNP/DBlKQU8gef5b/jzfssAUuAiheuIcT/CKn Ui73Hrgy4edd+frPH5G1xLJsasizKSw= X-Received: by 10.28.112.3 with SMTP id l3mr5048869wmc.90.1524147454874; Thu, 19 Apr 2018 07:17:34 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id 11sm5011550wmr.16.2018.04.19.07.17.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 19 Apr 2018 07:17:30 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id 9F4673E02CB; Thu, 19 Apr 2018 14:59:04 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= <alex.bennee@linaro.org> To: peter.maydell@linaro.org, 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, 19 Apr 2018 14:58:59 +0100 Message-Id: <20180419135901.30035-42-alex.bennee@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180419135901.30035-1-alex.bennee@linaro.org> References: <20180419135901.30035-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c0c::242 Subject: [Qemu-devel] [PATCH v2 41/43] tests/tcg/multiarch: add fp-test into multiarch set X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <qemu-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <http://lists.nongnu.org/archive/html/qemu-devel/> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Cc: =?utf-8?q?Alex_Benn=C3=A9e?= <alex.bennee@linaro.org>, qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" <qemu-devel-bounces+patch=linaro.org@nongnu.org> |
Series |
fix building of tests/tcg
|
expand
|
diff --git a/tests/tcg/multiarch/Makefile.target b/tests/tcg/multiarch/Makefile.target index a691fd59d3..52adc18625 100644 --- a/tests/tcg/multiarch/Makefile.target +++ b/tests/tcg/multiarch/Makefile.target @@ -28,3 +28,21 @@ run-test-mmap: test-mmap -$(QEMU) -p 16384 ./test-mmap 16384 -$(QEMU) -p 32768 ./test-mmap 32768 +# +# Include the fp-test from the main test suite +# + +VPATH+=$(SRC_PATH)/tests/fp +VPATH+=$(SRC_PATH)/fpu +TESTS+=fp-test + +FP_CFLAGS := $(CFLAGS) -Wall -O0 -g -fno-strict-aliasing +FP_CFLAGS += $(QEMU_INCLUDES) +FP_CFLAGS += -D_GNU_SOURCE -DHW_POISON_H + +fp-test.o softfloat.o: %.o: %.c + $(CC) $(FP_CFLAGS) -c $< -o $@ + +fp-test: fp-test.o softfloat.o + $(CC) $^ -o $@ -lm -static +
The compile for fp-test is a little funky as we need to include a build of QEMU's softfloat as well. There is still a problem caused by the inclusion of config-host.h by osdep.h as it will trigger problems like: In file included from /home/alex/lsrc/qemu/qemu.git/include/qemu/bitops.h:16:0, from /home/alex/lsrc/qemu/qemu.git/fpu/softfloat.c:87: /home/alex/lsrc/qemu/qemu.git/include/qemu/host-utils.h: In function ‘mulu64’: /home/alex/lsrc/qemu/qemu.git/include/qemu/host-utils.h:35:5: error: unknown type name ‘__uint128_t’ __uint128_t r = (__uint128_t)a * b; ^ When trying to cross build i386 on an x86_64 host. Signed-off-by: Alex Bennée <alex.bennee@linaro.org> --- tests/tcg/multiarch/Makefile.target | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) -- 2.17.0