From nobody Sun Nov 9 23:43:12 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1552411772557887.2748081725301; Tue, 12 Mar 2019 10:29:32 -0700 (PDT) Received: from localhost ([127.0.0.1]:56413 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h3lDU-0007Uc-Gr for importer@patchew.org; Tue, 12 Mar 2019 13:29:28 -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) 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) 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-Google-Smtp-Source: APXvYqwyvCCPDgI9MFGGBAsgL3XseAssLq+1cWVRulOp47w6FxJyLzcDLfY6XBRYXqu25K54xyehKw== X-Received: by 2002:adf:d84c:: with SMTP id k12mr16108555wrl.58.1552410583147; Tue, 12 Mar 2019 10:09:43 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=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 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable 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=20Benn=C3=A9e?= , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) 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=C3=A9e 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=3D$(SRC_PATH)/tests/tcg/mips # Set search path for all sources VPATH +=3D $(MIPS_SRC) =20 +# hello-mips is 32 bit only +ifeq ($(findstring 64,$(TARGET_NAME)),) MIPS_TESTS=3Dhello-mips =20 TESTS +=3D $(MIPS_TESTS) =20 -hello-mips: CFLAGS+=3D-ffreestanding +hello-mips: CFLAGS+=3D-mno-abicalls -fno-PIC -mabi=3D32 hello-mips: LDFLAGS+=3D-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); } --=20 2.20.1