From patchwork Tue Apr 24 15:23:55 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: 134148 Delivered-To: patch@linaro.org Received: by 10.46.151.6 with SMTP id r6csp2445528lji; Tue, 24 Apr 2018 09:31:32 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrw/BhxWweB+HHO2cPkZoKYlVVBfhYevNl2TcpYPcmZkPzcyeHk0YlYvyZOgWMeKROHgyMo X-Received: by 10.12.249.77 with SMTP id i13mr3283932qvo.93.1524587492078; Tue, 24 Apr 2018 09:31:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524587492; cv=none; d=google.com; s=arc-20160816; b=bH7QIkki7W5f8ySfjj/ChzqTusjgVfobR1wJ1ophfc9tjh+LB1MBrX/HRK6jUS5v1l 0SjfGIGNxpdtfCux3afNWZ98XiBhXsl7aOjPzk/6le8uswwOtGBJWSCZ5Fe7HNpzpoBI 8QoOQK8tUQ4lm9NoHv3ae2nFgU87Iw+06XfM0QY4jgei63VGJqQjKFLAiH0JMQr+OqNy FJ6TSS2T6EmlxHdgIz1tBulay327XpZftPyFidQFnMl6USMfsAf0TsIIBQujqOBehGEs xL7FDKjSRe/ywcCJJ5FetHGFN9T9LayhvOHxS+Ag1aP/d9FwZkTwjdbx0tdY1nBzPdIY doSw== 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=rf0ei8V3A5rxkJwm6mG1f92eVz8GOA74iaEbajY8R+k=; b=fY1QPK2mCZI5wd+F/w+Wl5m1ppEYZKQTUgIpFLviYpM3f9ePoXyg0zXY9Z8g/WDQWZ VhXZDESMvjC+FWIVfTxdY8Hw+FBaMBiP3lrvec5GmM+hdM8X/ovZ/2G6yE9SMD/8T0Ie TtbYwBVbNE8cpn3sg7yYqzR6fywaIOaXQIFC37MvpxKfbSz+qZbfsYTZokuIJuh2LCld K/eKCjib1waLnbn+1KYP/1WmjNr2dXi52XBNEsV9SOuK//wBToZ889GcofjaH8W1dg7h 1IeGdtl2HBxU1D1eT5uQzp1rHFW4zXAeOqZfbzUD3vJQeccH/N1Gp9wSqZFBWSCUPebB 2jvg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=ZFbHeEj/; 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 e6si1702424qvh.196.2018.04.24.09.31.31 for (version=TLS1 cipher=AES128-SHA bits=128/128); Tue, 24 Apr 2018 09:31:32 -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=ZFbHeEj/; 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]:59539 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fB0qp-0001v5-CC for patch@linaro.org; Tue, 24 Apr 2018 12:31:31 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53706) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fB06A-0005Fx-Og for qemu-devel@nongnu.org; Tue, 24 Apr 2018 11:43:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fB064-0000cB-Uk for qemu-devel@nongnu.org; Tue, 24 Apr 2018 11:43:18 -0400 Received: from mail-wm0-x241.google.com ([2a00:1450:400c:c09::241]:55561) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fB064-0000bn-Is for qemu-devel@nongnu.org; Tue, 24 Apr 2018 11:43:12 -0400 Received: by mail-wm0-x241.google.com with SMTP id a8so1933016wmg.5 for ; Tue, 24 Apr 2018 08:43:12 -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=rf0ei8V3A5rxkJwm6mG1f92eVz8GOA74iaEbajY8R+k=; b=ZFbHeEj/pW3TegroEs7uFX1Ij3/7EVMSJL00LNUcTgeh9yJct9PV5Yfk71LlgmEeJI k/oQnhziPKe/794Xu5CvLc1zjm4IJr+vpzQ866D+jEGLcE8/t7PwYfibjGWAQkFAiMZl R3+r5IYASTQfFClwH2BTfWZtgEQqtyGbinmCw= 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=rf0ei8V3A5rxkJwm6mG1f92eVz8GOA74iaEbajY8R+k=; b=SKcKIx4hWrI0Y5edU+aMaGYzuyK3y0aABE7FuuSxVkF8pB3fHzG87iBjUA8krPggWz bc0LKhk1PVsL/NA0UH8Z843uegIVYDB6ZGKvq6aH4oROGVsk8w44ZCl+XRzjLLuE3F8m 3yDA8mtguzQpSSd6/IiSdyoocu6mFoXt+gP+Y6dX7uehqVxKj1co6lWjsmsxE+6Rwmjw PfiER2R3uZcZEKxfWJiSOkdOfpjkV50iXDO5lAXKX/P2jyctHVH6k013a4Rou05bSZNu QayfiURgEagle/WohSWdCAILLHU4aTVtD1eimKxCVYxOuKZRqzV/q+5hMPC/nPFtMDVo AG3Q== X-Gm-Message-State: ALQs6tAePDp3Ld3w4AXoqECqblJDDYjS4EdJe/59azSKxG8btT6T6T28 Ed1/vOJ+msTNSkWsQ+ms+1vdxw== X-Received: by 10.28.16.18 with SMTP id 18mr12962161wmq.81.1524584591397; Tue, 24 Apr 2018 08:43:11 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id o16sm10382800wmi.14.2018.04.24.08.43.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 Apr 2018 08:43:10 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id 3DBEA3E1506; Tue, 24 Apr 2018 16:24:08 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= 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: Tue, 24 Apr 2018 16:23:55 +0100 Message-Id: <20180424152405.10304-37-alex.bennee@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180424152405.10304-1-alex.bennee@linaro.org> References: <20180424152405.10304-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:c09::241 Subject: [Qemu-devel] [PATCH v3 36/46] tests/tcg/alpha: add Alpha specific tests 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: =?utf-8?q?Alex_Benn=C3=A9e?= , qemu-devel@nongnu.org, Richard Henderson Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" These tests are a little strange as they use their own crt.o stub instead of the system supplied one. We also disable the multiarch testthread test as that requires a dynamically linked build. Signed-off-by: Alex Bennée --- tests/tcg/alpha/Makefile | 35 -------------------------------- tests/tcg/alpha/Makefile.target | 32 +++++++++++++++++++++++++++++ tests/tcg/alpha/{crt.s => crt.S} | 0 3 files changed, 32 insertions(+), 35 deletions(-) delete mode 100644 tests/tcg/alpha/Makefile create mode 100644 tests/tcg/alpha/Makefile.target rename tests/tcg/alpha/{crt.s => crt.S} (100%) -- 2.17.0 diff --git a/tests/tcg/alpha/Makefile b/tests/tcg/alpha/Makefile deleted file mode 100644 index 2b1f03d048..0000000000 --- a/tests/tcg/alpha/Makefile +++ /dev/null @@ -1,35 +0,0 @@ -CROSS=alpha-linux-gnu- -CC=$(CROSS)gcc -AS=$(CROSS)as - -SIM=../../alpha-linux-user/qemu-alpha - -CFLAGS=-O -LINK=$(CC) -o $@ crt.o $< -nostdlib - -TESTS=test-cond test-cmov - -all: hello-alpha $(TESTS) - -hello-alpha: hello-alpha.o crt.o - $(LINK) - -test-cond: test-cond.o crt.o - $(LINK) - -test-cmov.o: test-cond.c - $(CC) -c $(CFLAGS) -DTEST_CMOV -o $@ $< - -test-cmov: test-cmov.o crt.o - $(LINK) - -test-ovf: test-ovf.o crt.o - $(LINK) - -check: $(TESTS) - for f in $(TESTS); do $(SIM) $$f || exit 1; done - -clean: - $(RM) *.o *~ hello-alpha $(TESTS) - -.PHONY: clean all check diff --git a/tests/tcg/alpha/Makefile.target b/tests/tcg/alpha/Makefile.target new file mode 100644 index 0000000000..5b573f145e --- /dev/null +++ b/tests/tcg/alpha/Makefile.target @@ -0,0 +1,32 @@ +# -*- Mode: makefile -*- +# +# Alpha specific tweaks + +ALPHA_SRC=$(SRC_PATH)/tests/tcg/alpha +VPATH+=$(ALPHA_SRC) + +ALPHA_TESTS=hello-alpha test-cond test-cmov test-ovf +TESTS+=$(ALPHA_TESTS) + +# Our own minimal crt.o, bypassing gcc's version +crt.o: CFLAGS+=-ffreestanding +crt.o: crt.S + $(CC) $(CFLAGS) -c $< -o $@ + +# Alternative build, linking against local crt.o +ALPHA_BUILD=$(CC) -o $@ crt.o $< -nostdlib + +hello-alpha: hello-alpha.c crt.o + $(ALPHA_BUILD) + +test-cond: test-cond.c crt.o + $(ALPHA_BUILD) + +test-cmov.o: test-cond.c + $(CC) $(CFLAGS) -DTEST_CMOV -c $< -o $@ + +test-cmov: test-cmov.o crt.o + $(ALPHA_BUILD) + +test-ovf: test-ovf.c crt.o + $(ALPHA_BUILD) diff --git a/tests/tcg/alpha/crt.s b/tests/tcg/alpha/crt.S similarity index 100% rename from tests/tcg/alpha/crt.s rename to tests/tcg/alpha/crt.S