From patchwork Thu Feb 28 20:25:26 2019 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: 159438 Delivered-To: patch@linaro.org Received: by 2002:a02:5cc1:0:0:0:0:0 with SMTP id w62csp1091469jad; Thu, 28 Feb 2019 12:32:34 -0800 (PST) X-Google-Smtp-Source: APXvYqzniWYFPqe5etoPpd6a3fMx+Uz9tY8lbcGMcfaTGoVVVE+l84qUM/kI93O/TFHYzCNJLVMq X-Received: by 2002:a0d:e2ce:: with SMTP id l197mr768286ywe.226.1551385954025; Thu, 28 Feb 2019 12:32:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551385954; cv=none; d=google.com; s=arc-20160816; b=Ftkyp8E9OXbHriuubK/CmrVTdYzsr1UJX9nxtvL9xDwgopQCzhjWytU1BmA8Y2EM7A WBTw9VKWfNxoEJJgyiVgSWWiMRoh2C0u6gS5aLmqvP6Dh0/izM0XAlkxY1etxGqltld/ 2KW1xWd/ZRvOL5fhTcMdRJt9x7IVSLWB8Jn9uJV3Hw93zQLgznruBog/kyfz44QpPWDF 6pRQCQNVh++8N3Vf3JMj7glXIzUNukWGYwSYq6/rfORiD7RIkO1PTcdxteJnXPZzzcaK dsMpuJQPB8c7EbOIr1tv9HpqsTYCKt8BVnZoQ2VK/mufA8RWylBswRt0/uIYlHt2Qpmr fLmg== 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; bh=Q3wvM+2npsAP9Qjkt62VE5osetnw17aSf2iSl+MhZ8w=; b=EYQ5AhIBrXxe6teE6G9TBDBujKExBO0wjlubRH/YKBWwOqcJrf6IhRlu93gT8tUkvF U2RzuwWxOxXe5GwE3EyL9Awh0GTUwR8DVs/60VCM6fmAlEk13AQfPPJvggvKzAm/8UDA c0SnxCvR/KQrwzv8AwJTsW85Hb1qkFnrRRtI2Rl/ifT1dk/YOuBCS+Y+iBvZc18dRooU IFXdFmxMkVUNYiX/Hp9eX7yVw2gvOEZ7SaW3hASKqfAjsWVyi/8pv6qZITNP81Zm3wqi WGJL6CgzVZFvdLnWChd81jcElsiXkDvrZ1O1r5xtJ6hMKtk+HHwHoNOob8dCSDzPnUNm c/Pg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=TtIiZ7Vd; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 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. [209.51.188.17]) by mx.google.com with ESMTPS id u130si11229239ybb.221.2019.02.28.12.32.33 for (version=TLS1 cipher=AES128-SHA bits=128/128); Thu, 28 Feb 2019 12:32:34 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=TtIiZ7Vd; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 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 ([127.0.0.1]:46065 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gzSM5-0005T8-G3 for patch@linaro.org; Thu, 28 Feb 2019 15:32:33 -0500 Received: from eggs.gnu.org ([209.51.188.92]:42589) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gzSFV-0000RR-4v for qemu-devel@nongnu.org; Thu, 28 Feb 2019 15:25:48 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gzSFU-0007H1-BI for qemu-devel@nongnu.org; Thu, 28 Feb 2019 15:25:45 -0500 Received: from mail-wm1-x342.google.com ([2a00:1450:4864:20::342]:54223) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gzSFU-0007Cw-2W for qemu-devel@nongnu.org; Thu, 28 Feb 2019 15:25:44 -0500 Received: by mail-wm1-x342.google.com with SMTP id e74so10415264wmg.3 for ; Thu, 28 Feb 2019 12:25:43 -0800 (PST) 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=Q3wvM+2npsAP9Qjkt62VE5osetnw17aSf2iSl+MhZ8w=; b=TtIiZ7Vd0UsTQ8lM8nRje0ndk6AVsk/KfW7Scjva7JiqSc4YAipELfAb5121SzRJFW KeHEUdrLeIDyZySrdUzeXHZ6qD9TFEuThQ9Lppo6axoRTLmXrKg+J8oKRQC0spsVRWN/ IS9ESynrIAD9dsHTnD2fdgRX6CELgAZa6Bal+4Fg1Rb+Iv/7d596rwk4/K696YhN/qRP 9rP2goxeZuCN27DfhHtQ4LoAoBkFU/se14+103aNR2bCxhbn26kVJg1VbdcH0q7cjZh5 6iC1hb5rhhQptXk8j7wXaAQXzmsYpXVknA7mA3Uy2W5q1yjUT5t5+KvDJ+AhpkjR1++A XAOA== 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=Q3wvM+2npsAP9Qjkt62VE5osetnw17aSf2iSl+MhZ8w=; b=dE2x+xxFXGRy/NVzTlCsGbNKsCZnmQRZRQdHgU2Pl4juvmtj/8cEw1EYxurgb6r9bh 7skt7Qda+oKS0sZT19TxAgzDiyrQw++3C1MavhXTxTG5UCgtkMgNC9ZUBuz/IFDc3+E7 VjV5+DDwNsiWJkIo9E/O+lS0H2dctLghD3H9Z51GpS1LHLmOTi1ekE+yzfJ49u4YbW1q u3SGI6evx6BSgXQFBpfpP9Xqr4lDaZqc9wAyDEVU/x6pO4lItQhSxNKeQnhYw06pKLU9 Mj+c6lL5b3EjytdqwWyc2zFrOWtrZfEio+pNNbfnxIQJlWXAo84USdmLxFqwNQdqftPZ F7ug== X-Gm-Message-State: APjAAAU+b3RmGKdxp/fCq1fH8VuU0IXeE7I/+tZodesnmtk0v2d7VKKj SGBvGXiG55e4pIW108+/+TH1gg== X-Received: by 2002:a1c:480a:: with SMTP id v10mr886806wma.57.1551385542864; Thu, 28 Feb 2019 12:25:42 -0800 (PST) Received: from zen.linaroharston ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id w24sm3971010wmi.40.2019.02.28.12.25.39 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 28 Feb 2019 12:25:40 -0800 (PST) Received: from zen.linaroharston. (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 9E9D11FF88; Thu, 28 Feb 2019 20:25:37 +0000 (UTC) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Date: Thu, 28 Feb 2019 20:25:26 +0000 Message-Id: <20190228202537.4638-6-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190228202537.4638-1-alex.bennee@linaro.org> References: <20190228202537.4638-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:4864:20::342 Subject: [Qemu-devel] [PATCH v2 05/16] tests/tcg/mips: fix hello-mips compilation 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: edgar.iglesias@gmail.com, qemu-arm@nongnu.org, =?utf-8?q?Alex_Benn?= =?utf-8?b?w6ll?= , jcmvbkbc@gmail.com Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" The compilation flags for proper building are in the source tree. We also fix exit to 0 so the result is counted as a success. Signed-off-by: Alex Bennée --- tests/tcg/mips/Makefile.target | 11 ++++------- tests/tcg/mips/hello-mips.c | 2 +- 2 files changed, 5 insertions(+), 8 deletions(-) -- 2.20.1 diff --git a/tests/tcg/mips/Makefile.target b/tests/tcg/mips/Makefile.target index 086625f533..1a994d5525 100644 --- a/tests/tcg/mips/Makefile.target +++ b/tests/tcg/mips/Makefile.target @@ -8,15 +8,12 @@ MIPS_SRC=$(SRC_PATH)/tests/tcg/mips # Set search path for all sources VPATH += $(MIPS_SRC) +# hello-mips is 32 bit only +ifeq ($(findstring 64,$(TARGET_NAME)),) MIPS_TESTS=hello-mips TESTS += $(MIPS_TESTS) -hello-mips: CFLAGS+=-ffreestanding +hello-mips: CFLAGS+=-mno-abicalls -fno-PIC -mabi=32 hello-mips: LDFLAGS+=-nostdlib - -# For MIPS32 and 64 we have a bunch of extra tests in sub-directories -# however they are intended for system tests. - -run-hello-mips: hello-mips - $(call skip-test, $<, "BROKEN") +endif diff --git a/tests/tcg/mips/hello-mips.c b/tests/tcg/mips/hello-mips.c index c7052fdf2e..4e1cf501af 100644 --- a/tests/tcg/mips/hello-mips.c +++ b/tests/tcg/mips/hello-mips.c @@ -60,5 +60,5 @@ static inline int write(int fd, const char *buf, int len) void __start(void) { write (1, "Hello, World!\n", 14); - exit1 (42); + exit1(0); }