From patchwork Tue Mar 12 17:09:16 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: 160151 Delivered-To: patch@linaro.org Received: by 2002:a02:5cc1:0:0:0:0:0 with SMTP id w62csp13366911jad; Tue, 12 Mar 2019 10:30:13 -0700 (PDT) X-Google-Smtp-Source: APXvYqyve3NzMBXLqGyljMoPROIh/95wMjLEHCzuDpSFTmxsDZ/OGtPT8KHqdDDw+U2sAPlU2XCX X-Received: by 2002:a25:ba8f:: with SMTP id s15mr10357732ybg.411.1552411813234; Tue, 12 Mar 2019 10:30:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552411813; cv=none; d=google.com; s=arc-20160816; b=DFOjiFPu6gUFclvNFkJc4pfRtMiRxlerwfhQCg8iKkIqYISDUVOzzW2smW9AhRaryK bRygkTZhszqRFpfHwTco9qSjFomhOtdE4Fq409/5ujlDxc0jx5Dy0z8U3iBIuOD7bEQ0 jt4WACROFv2kQy46rtl1Vupb/8ktwuY17k7VCk86g5PWOZ/xhbd2RCetg4lVaYWI92Io LVeUyCpBN/ibC2srv+JKCD1qQh8EMQ+/EaC37LgswkF1CaZlsCOparJjcdbkGAAsRowL WPFR9yH4rf9L8iIByy5iInslvsXblC4MWgvo3Fwl6FbWIrfdT+qqWGsJihRedbJgjPnN pBxA== 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=ZArt+ao71AF3UQ9a6LVsEdfkEb+blM5iefgcjXTlA74=; b=BrbHAYLGyy2TfMA1RjLjZZSKSkVtZ0bkz2bBs68hJLHum0PXVkNp5ic5WSX5WFwHsI EDhURARtP4lZhsDmUkxyXB505C/zQyrD9n1qJ+g2UULTu04LHbII83ixc+5/YkGDv7Ho 5/KmaY2klguKe+H9n6iBoN+bYLoSH9ikYw4kIXziYJZ505FsJrFGFWN/fufTwjCBDlY7 DGN5UrPy8B0XszCjkVh67FXwmYhDOqel6a7ot9b45t1QJtKH/16G6YVBFkvMn7TZHZcg b+xdkotUQ6j/bSfYHWvigs4KSmz+L7kVkpQ/By+I8BALVsngGEOTcSQjuvVttknuxXDN us8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=gLlGruI4; 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 t6si1199807ywb.39.2019.03.12.10.30.13 for (version=TLS1 cipher=AES128-SHA bits=128/128); Tue, 12 Mar 2019 10:30:13 -0700 (PDT) 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=gLlGruI4; 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]:56413 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h3lEC-0007Uc-Jx for patch@linaro.org; Tue, 12 Mar 2019 13:30:12 -0400 Received: from eggs.gnu.org ([209.51.188.92]:50688) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h3l2v-0005OA-G2 for qemu-devel@nongnu.org; Tue, 12 Mar 2019 13:18:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h3kuO-00074j-LN for qemu-devel@nongnu.org; Tue, 12 Mar 2019 13:09:45 -0400 Received: from mail-wr1-x42a.google.com ([2a00:1450:4864:20::42a]:37360) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1h3kuO-00073t-D8 for qemu-devel@nongnu.org; Tue, 12 Mar 2019 13:09:44 -0400 Received: by mail-wr1-x42a.google.com with SMTP id y15so3565637wro.4 for ; Tue, 12 Mar 2019 10:09:44 -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=ZArt+ao71AF3UQ9a6LVsEdfkEb+blM5iefgcjXTlA74=; b=gLlGruI4FBDFO9DaXzKbb/VarXl/OosUL8HU6MkjcGvUIrIX4qsJvYdGeq+02aYtOS FWWVXyIb+n1EbMniNJpVrKQXmNwn6NAoaIUotZWZilthKQD05fZX7ivSJJYTWuQytOgl 8OMKmDMPA0u3esXCqMkHIWM8EJ/CNXKlB0F5umeiqzzBvraNHDStuq+7kyli7E5D9Z44 UO7wJ8UpX0UHhUfKHZvqPgD3dsJ5xH3Wp45C86hmFOL3VOX7yVQmh/97oZqPrltJf2hS /kBIQ78+DlAMw/qIXV9yh66Rw098BmMbMo/zLdFhfdVeSfZpILYt1D2QbbeY/BZZ+gTX 9nQw== 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=ZArt+ao71AF3UQ9a6LVsEdfkEb+blM5iefgcjXTlA74=; b=AXCJ+7PPCLZxEaWR3wkGWYnioXEbZDTO44qOhr+zwylAxrohYbhTHmsHI1ALSTUYKl sEFA9BvGyIs+2LR1oL5X5NCf5fOGK8SIfYd7TSB+INKcnOfYzB/4920yT16rkzHvGBwI PiH9HW0mRi6wwpZLa9r3UGM9bS0d8IG1kvZ8iuuTyfLL+2M/5hEh6rZcO8Kr33FIXIzs eHtmmNAX256qtlD31PMnKtLzOH3N+4EmVFSdde/i83Y6/0BVYkfhi4Mre8Lx/1ivOenj Ujh9ByFPfeEP3KLnpPmXNalBqWQlnIdMSmIQoW/If97qMraktewYerPT2O+zlCqQMJtE ybaA== X-Gm-Message-State: APjAAAWhEOdYF5rEnoeFaHNWgtji+f9KiU6VcTle7RyRhVZFn4qUHVBs 6Gk3j97Pd9jvsJcbIaNLTuR2/w== X-Received: by 2002:adf:d84c:: with SMTP id k12mr16108555wrl.58.1552410583147; Tue, 12 Mar 2019 10:09:43 -0700 (PDT) Received: from zen.linaroharston ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id a82sm5042669wmf.11.2019.03.12.10.09.35 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 12 Mar 2019 10:09:36 -0700 (PDT) Received: from zen.linaroharston. (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id E75041FF98; Tue, 12 Mar 2019 17:09:31 +0000 (UTC) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: peter.maydell@linaro.org Date: Tue, 12 Mar 2019 17:09:16 +0000 Message-Id: <20190312170931.25013-12-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190312170931.25013-1-alex.bennee@linaro.org> References: <20190312170931.25013-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::42a Subject: [Qemu-devel] [PULL 11/26] 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: =?utf-8?q?Alex_Benn=C3=A9e?= , qemu-devel@nongnu.org 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 -- 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); }