From patchwork Thu Feb 28 20:25:22 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: 159432 Delivered-To: patch@linaro.org Received: by 2002:a02:5cc1:0:0:0:0:0 with SMTP id w62csp1087807jad; Thu, 28 Feb 2019 12:28:46 -0800 (PST) X-Google-Smtp-Source: APXvYqxs1zMlWTXXwK9xjzBu82eNGV9kokPGCzeceV+v98vrLJ0SwAyAJ7Os0bxsyLRSf05dJCEK X-Received: by 2002:a81:9383:: with SMTP id k125mr693452ywg.323.1551385725959; Thu, 28 Feb 2019 12:28:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551385725; cv=none; d=google.com; s=arc-20160816; b=vGSQOVveeNQy4rCgkIUKpbb0BD5WiT1BFov/uaes6l+Uo2di8YjBhXgaOewZKG34Fe I+aP1gW4t080ZJyZZ3y2C+WfK075b+HdTnY6G9h4AcbjXqu7XyeGO8twRznihKYnucTb NOYTlQ4nxuwPDA48AYgwK3Ob/beijgtDEWZ0v2UPSJhE2jRmnS8Ud2S5VHsMy1lxuieD W8kEOuYULixv8t+IfEkuhNcYkTCI8CWwO2afGyql9yZLnbupQvEHGPb7c5+/ae+5xQVp i3katQWvdqDWM96xs8JB1Usr4IjhL7mQMZ42KepxL//VqC/dn594A0Gf+EEvf6BIS/y+ UgFg== 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=L/z9MUE3cOCWWFeNa1MNv0jMC1VzRLWSs++imNZ+SgY=; b=juowj+/+YRFhFab2u2TRzsgIABDkgVEHSPjd9JqZ8Z8KjHU+fgnJ5g8QOHPcj8/FE2 g0sw33RJrx12SVcZxxVAs6MoH3slHYAlJIx+rwxHtmzL+ge6Chd5QiUwPs6AcGTJzYYn jGoIOvFONco4+OgAAJ7eLd1VXGww0v9hR8rKuLvIN+6r8+Mnferz1xpUnvB56mTy8zp0 XRB9Rpt5vRoG//ie827msgN/sFOin7lqSXkv/+T4zo2lbGNHR4ved1plmb25kyA3GvOk IaUiUqOzEt5DOS2Dyh1NJgCmLbGppTcqLW44PAsYdfRFl5cu+n873xtKNUyJwZXALYLT kUWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=VSILV4X+; 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 f184si10998644ywb.219.2019.02.28.12.28.45 for (version=TLS1 cipher=AES128-SHA bits=128/128); Thu, 28 Feb 2019 12:28:45 -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=VSILV4X+; 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]:45989 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gzSIP-0001ic-CA for patch@linaro.org; Thu, 28 Feb 2019 15:28:45 -0500 Received: from eggs.gnu.org ([209.51.188.92]:42480) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gzSFR-0000QH-Ux for qemu-devel@nongnu.org; Thu, 28 Feb 2019 15:25:42 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gzSFR-00077u-49 for qemu-devel@nongnu.org; Thu, 28 Feb 2019 15:25:41 -0500 Received: from mail-wr1-x444.google.com ([2a00:1450:4864:20::444]:42250) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gzSFQ-000753-T6 for qemu-devel@nongnu.org; Thu, 28 Feb 2019 15:25:41 -0500 Received: by mail-wr1-x444.google.com with SMTP id r5so23418855wrg.9 for ; Thu, 28 Feb 2019 12:25:40 -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=L/z9MUE3cOCWWFeNa1MNv0jMC1VzRLWSs++imNZ+SgY=; b=VSILV4X+ptYsYQRPok9hn3I5BYN5GCJTag/FZhROolS9/FbcaHrD0usvZlAjrX+Jr7 SESQ8sTDiy+C+3Pr6f2KDmPgis5TKABsFqt19PH0Itb5+4xRdrzCEr81zzIICEO+Yrw3 GXl95bQPlvYL5+mRKFo8+zsx5PmIfYEL37oVE4/HE0/wawuFF/2D7FtPJTJtYYd1Ez91 xX3uHUuP05i0QWvKDOPDEGhcDFAhzyGEQ1IFNLePPC5C1C+HmHc8xMQEI4nVEkb5LKey uXj6vz84YCGI/n2j0GOfHU2YKRaVKvoencYSF9vHsZY8bqYMWrttNyf0IfDLxeKg71Km 66mw== 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=L/z9MUE3cOCWWFeNa1MNv0jMC1VzRLWSs++imNZ+SgY=; b=G/tNRQIsSEmoU3JvN1iI1SuTqZ5mHkGCchfyxGtDoPLUr/onGUpWNBQB4rTsyIIQnO hQ1DaJU1MgTDcnoajC4/cz0+LqtcoSMbjCg/plZkbul8T9lyRPN+WaQbdtZuqWs6V4Vy 3HsAy1ZNwFm5A0wbSkwdEslZ3pPQkaJdBl4GEUtUJIaz/Ib//zKy0eQr94hbpr0eO5js rPRSqx+WzZgI+ubtMKT2aws2On/HWV01HMhG50icws5p0F/8t2besWuJifiTU5E7lZcH TXaI9PAtS2VF+ggqU2lW2UcuWu8U4BpCk1bQBMuOVVmCmKBSS9DxFIhfrn360KrKDOdC nskA== X-Gm-Message-State: APjAAAUQTGFLsStp7/rbLrir7N1MkeyZ2VqSSw8Yj9SDbSU7zxsrQzoQ h65upP7tdTZCqnhHu1TbFbc6so2aCwU= X-Received: by 2002:a5d:5504:: with SMTP id b4mr791414wrv.291.1551385539352; Thu, 28 Feb 2019 12:25:39 -0800 (PST) Received: from zen.linaroharston ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id m189sm6380630wmf.7.2019.02.28.12.25.37 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 28 Feb 2019 12:25:37 -0800 (PST) Received: from zen.linaroharston. (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 6E9F61FF82; 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:22 +0000 Message-Id: <20190228202537.4638-2-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::444 Subject: [Qemu-devel] [PATCH v2 01/16] tests/tcg: add softmmu awareness to Makefile 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, Richard Henderson , qemu-arm@nongnu.org, =?utf-8?q?Alex_Benn=C3=A9e?= , jcmvbkbc@gmail.com Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Signed-off-by: Alex Bennée Reviewed-by: Richard Henderson --- tests/tcg/Makefile | 17 ++++++++++++++++- tests/tcg/Makefile.include | 2 +- 2 files changed, 17 insertions(+), 2 deletions(-) -- 2.20.1 diff --git a/tests/tcg/Makefile b/tests/tcg/Makefile index bf06415390..55feab0f67 100644 --- a/tests/tcg/Makefile +++ b/tests/tcg/Makefile @@ -26,7 +26,7 @@ # # We also accept SPEED=slow to enable slower running tests # -# We also expect to be in the tests build dir for the FOO-linux-user. +# We also expect to be in the tests build dir for the FOO-(linux-user|softmmu). # -include ../../config-host.mak @@ -52,7 +52,11 @@ QEMU_CFLAGS= LDFLAGS= # The QEMU for this TARGET +ifdef CONFIG_USER_ONLY QEMU=../qemu-$(TARGET_NAME) +else +QEMU=../qemu-system-$(TARGET_NAME) +endif # If TCG debugging is enabled things are a lot slower ifeq ($(CONFIG_DEBUG_TCG),y) @@ -61,6 +65,7 @@ else TIMEOUT=15 endif +ifdef CONFIG_USER_ONLY # The order we include is important. We include multiarch, base arch # and finally arch if it's not the same as base arch. -include $(SRC_PATH)/tests/tcg/multiarch/Makefile.target @@ -77,6 +82,16 @@ endif %: %.c $(CC) $(CFLAGS) $(EXTRA_CFLAGS) $< -o $@ $(LDFLAGS) +else +# For softmmu targets we include a different Makefile fragement as the +# build options for bare programs are usually pretty different. They +# are expected to provide their own build recipes. +-include $(SRC_PATH)/tests/tcg/$(TARGET_BASE_ARCH)/Makefile.softmmu-target +ifneq ($(TARGET_BASE_ARCH),$(TARGET_NAME)) +-include $(SRC_PATH)/tests/tcg/$(TARGET_NAME)/Makefile.softmmu-target +endif + +endif all: $(TESTS) diff --git a/tests/tcg/Makefile.include b/tests/tcg/Makefile.include index c581bd6ffc..73b5626fc5 100644 --- a/tests/tcg/Makefile.include +++ b/tests/tcg/Makefile.include @@ -67,7 +67,7 @@ endif ifneq ($(GUEST_BUILD),) guest-tests: $(GUEST_BUILD) -run-guest-tests: guest-tests qemu-$(TARGET_NAME) +run-guest-tests: guest-tests qemu-$(subst y,system-,$(CONFIG_SOFTMMU))$(TARGET_NAME) $(call quiet-command, \ (cd tests && $(MAKE) -f $(TCG_MAKE) SPEED=$(SPEED) run), \ "RUN", "tests for $(TARGET_NAME)") From patchwork Thu Feb 28 20:25:23 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: 159434 Delivered-To: patch@linaro.org Received: by 2002:a02:5cc1:0:0:0:0:0 with SMTP id w62csp1088085jad; Thu, 28 Feb 2019 12:29:04 -0800 (PST) X-Google-Smtp-Source: APXvYqzje7EuAFTz5URAhpQRIjr+tRa+w/K8ApHr8lpI7Qipwi27a1xRJVqI9QYaf8/G92K+ZDow X-Received: by 2002:a0d:e644:: with SMTP id p65mr767734ywe.358.1551385744653; Thu, 28 Feb 2019 12:29:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551385744; cv=none; d=google.com; s=arc-20160816; b=gxqssECOJLZHd1jP6EIwe1dDTZg7SmIVRg//rfXjWRDCLPbnC3F1+LGxOzv9fSQkxr pvkTGwyE537fMRcMKVlxUHGynf5L+dwF9bvyUuRtyY73yzUoFnJlYXD9epS9ndKVOS+C /HWannkPMhba/01C8yjCd3X/4gQueTCNu2CvuwSPZY+BB4Ohdriu8CXbYFnCmX2fKJwb oMpXarhZXf/q7WB6poNlX174DmT/CLhWMKmYUNkm1yCNXAmAq3zun82bcB4iTDIaM9rz oOSaEYXDduuZGmdOgPS1romjDUnzhe4BPBBAw8ICdYgIB1cO3nZQeRkyN8JNwMUJcWNI DnDg== 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=jyK9HUdzswcVQLUnL71MTps5arRDVT8LtZeB5tqZdno=; b=sQ0ysQb6ezpaVFkxVYfeun8WRfzuMUoVXKZjdRWlJsdW6s3CWfRXAbSYl1SJh2YO1d aNvp1Tfr6hTqJEIZX3YM1rfqwxAhQMYzvhfuEqb/6A4dnU4B1xK0dDp/p6IBI8sG9SV8 7MEppgOKxlmG0pmFnCccjv7ReRWjnbEEtO0cJHWw1yLTXp1m9vMSOLYVLgFfzKUVkaNG k/+73L3QC7sJrMk3q1bU9HkmHSyJXrvuORtB1cH+WU9/Qb75CSzzENXjTi6DCELtvvUq PFfOgy3MODr1fPUlrrA9y+L3L8w7zoN9QK/QMvr/SpB+lMUU3zuf7r8U9TgfBj3BwmvR EVmA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=OhZbpGGQ; 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 i12si10756509ybp.85.2019.02.28.12.29.04 for (version=TLS1 cipher=AES128-SHA bits=128/128); Thu, 28 Feb 2019 12:29:04 -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=OhZbpGGQ; 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]:45993 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gzSIi-0001zO-26 for patch@linaro.org; Thu, 28 Feb 2019 15:29:04 -0500 Received: from eggs.gnu.org ([209.51.188.92]:42506) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gzSFS-0000QK-O5 for qemu-devel@nongnu.org; Thu, 28 Feb 2019 15:25:43 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gzSFR-00078v-Tr for qemu-devel@nongnu.org; Thu, 28 Feb 2019 15:25:42 -0500 Received: from mail-wr1-x441.google.com ([2a00:1450:4864:20::441]:36152) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gzSFR-00077j-Nm for qemu-devel@nongnu.org; Thu, 28 Feb 2019 15:25:41 -0500 Received: by mail-wr1-x441.google.com with SMTP id o17so23460336wrw.3 for ; Thu, 28 Feb 2019 12:25:41 -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=jyK9HUdzswcVQLUnL71MTps5arRDVT8LtZeB5tqZdno=; b=OhZbpGGQGtHV/BR+N+DFg0wSpALc8F8N3D7L/9OYSLjUomueJrm5utZaT62JR2MaMo qmDuidzy/aA0rQm1LZHnL3p2EjeHVBaqW/Vdh17rxTtvMlV6y1BR0sIuxuXW+Wesh307 9N7do8K05cNBLMGxbWEg2ErR+HwIlGYUE0Nb3DRkvoQskTuMDfAMDYrSP5ClbldHBabz th13MdZT6dtHbG7A2z86MoPfAHVUJTDubFB+eDtaAeefB/JA/h/SffvMygCch406HjKD KIxFMmVXOuw6m6RmzF+p2QvJ1ipqDlNQ3i9W14+Fgp1WC68ToUnd4ifGkREqtBT4d4U1 qHBg== 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=jyK9HUdzswcVQLUnL71MTps5arRDVT8LtZeB5tqZdno=; b=rRNsCBXJ8e9pJTSsaNv6ybGcoikyOsWN29QvzHuGWWUHMjkaUaOpUEVM6Awg7xa71O KPlBlXrJ1nJYjgGu3HVS6pRyTT91JtaQ7UAhBh6bFTEaggDT/pagbJPp6aYb6jzs/kRC /GQAibY+cEAj2NeyMO33e2eyo3LXxpILIx2GO5h1iggqnS8Redy0uAShBQqBC0F2fLIZ w9YUmn6s+4akq9dFLwNPcHPEShk6nH/K6PgYhd//zgpSWbN7gm54nS+0WNdVPBdqMcSC 1G+dFj7vZ9MwvuC76WYdoZ8VYvBzpuEapfD9Het/OxiSJpGY+r3rMv+l68IP/j6LjFnw XJ2w== X-Gm-Message-State: APjAAAWeuGqOkoPpGYgxpgg2RtMejkwlW8d+PHl9EVk0jnEORzQQbkG1 TIugWmc0SHLXt6ugNmmE0lXtiQ== X-Received: by 2002:adf:f80e:: with SMTP id s14mr833042wrp.327.1551385540538; Thu, 28 Feb 2019 12:25:40 -0800 (PST) Received: from zen.linaroharston ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id c67sm51267wmd.47.2019.02.28.12.25.37 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 28 Feb 2019 12:25:37 -0800 (PST) Received: from zen.linaroharston. (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 7AAA01FF83; 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:23 +0000 Message-Id: <20190228202537.4638-3-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::441 Subject: [Qemu-devel] [PATCH v2 02/16] tests/tcg: enable tcg tests for softmmu 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, Richard Henderson , qemu-arm@nongnu.org, =?utf-8?q?Alex_Benn=C3=A9e?= , jcmvbkbc@gmail.com Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Signed-off-by: Alex Bennée Reviewed-by: Richard Henderson --- Makefile.target | 2 -- tests/Makefile.include | 7 +++---- 2 files changed, 3 insertions(+), 6 deletions(-) -- 2.20.1 diff --git a/Makefile.target b/Makefile.target index 3b79e7074c..61b8be31a2 100644 --- a/Makefile.target +++ b/Makefile.target @@ -37,9 +37,7 @@ PROGS=$(QEMU_PROG) $(QEMU_PROGW) STPFILES= # Makefile Tests -ifdef CONFIG_USER_ONLY include $(SRC_PATH)/tests/tcg/Makefile.include -endif config-target.h: config-target.h-timestamp config-target.h-timestamp: config-target.mak diff --git a/tests/Makefile.include b/tests/Makefile.include index 2187b0c5aa..f39b96e250 100644 --- a/tests/Makefile.include +++ b/tests/Makefile.include @@ -1030,10 +1030,9 @@ endif # Per guest TCG tests -LINUX_USER_TARGETS=$(filter %-linux-user,$(TARGET_DIRS)) -BUILD_TCG_TARGET_RULES=$(patsubst %,build-tcg-tests-%, $(LINUX_USER_TARGETS)) -CLEAN_TCG_TARGET_RULES=$(patsubst %,clean-tcg-tests-%, $(LINUX_USER_TARGETS)) -RUN_TCG_TARGET_RULES=$(patsubst %,run-tcg-tests-%, $(LINUX_USER_TARGETS)) +BUILD_TCG_TARGET_RULES=$(patsubst %,build-tcg-tests-%, $(TARGET_DIRS)) +CLEAN_TCG_TARGET_RULES=$(patsubst %,clean-tcg-tests-%, $(TARGET_DIRS)) +RUN_TCG_TARGET_RULES=$(patsubst %,run-tcg-tests-%, $(TARGET_DIRS)) ifeq ($(HAVE_USER_DOCKER),y) # Probe for the Docker Builds needed for each build From patchwork Thu Feb 28 20:25:24 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: 159435 Delivered-To: patch@linaro.org Received: by 2002:a02:5cc1:0:0:0:0:0 with SMTP id w62csp1088524jad; Thu, 28 Feb 2019 12:29:32 -0800 (PST) X-Google-Smtp-Source: APXvYqyzG5lkESe8OTvLjvlES4WNiKJhxXzuDZR9EZA+G02OCe47VtzVRmCmsj1kVIoN6OBCLreD X-Received: by 2002:a25:9848:: with SMTP id k8mr1221112ybo.388.1551385772685; Thu, 28 Feb 2019 12:29:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551385772; cv=none; d=google.com; s=arc-20160816; b=KLz75x4/aRw5UQQxhkGgOwbK3mye93AXUc8nYT7NcDiUlZxQfZIvoOSFJhjgNApffp WQORyytMCmYBiOdsK+wtkXnzdoP8itDm4bGgBa6MHzCJYmchwJOkk0XnGF9lvYbkCKY2 5ByROmHwy0EWercIPzUjikHXq0FzKEgxzw/QxeYVroh8UDPeINngnPzDm8QuF5rSCrtu p7meHV4kV5x80EvuNdgtmCU3ITsIeQ2o/PW4ZtqDfh1qH7upul3UnngYxV/W58UoSLE/ 7ehVec/fY8hrOmaA+c4xZ2HlrGiyRLxS5+SmLuxlDQOpf+6kg3TjDKiK2f1VTtR6hkZp jL+w== 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=5ANdAooO0oWTrix1+yXw8Jckjx/jPmpVf8YWjwuP8hM=; b=QY1p4g49/RsSSHA+ITVTdS35J9kZBB81NTCyQF9WdwpXuZZU5dBA6Lw3V3Fu7r2lmy wv23Pea21m7skiCbXRyqkz/dKSL96o3KtKSHZlJvCEIDoV+k5eeK7FC8etuUA9SlK3Yw Rp9wTxBfb4F3+Rl/ILHfdJPnU74+D3qVptXoYUu1avCnPPi3CAs+aaejC6fEnIn+bB7C Hv7runcEpxN6s1T+BeIsHDKUEX3wSQQ+xoy/gG0B9ymlgzr461wsb2qJ2Z2ItvjdDFIL DmRODamgB1/dnXz1sEc8CC/pbt1eprfig3ooMjbyzYZi9e1x0+DFA6xzrPE5N+7nlN7T SUdQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=VloVgnWN; 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 v196si7081846ybv.435.2019.02.28.12.29.32 for (version=TLS1 cipher=AES128-SHA bits=128/128); Thu, 28 Feb 2019 12:29:32 -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=VloVgnWN; 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]:46007 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gzSJA-0003Ce-6C for patch@linaro.org; Thu, 28 Feb 2019 15:29:32 -0500 Received: from eggs.gnu.org ([209.51.188.92]:42537) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gzSFT-0000QU-CZ for qemu-devel@nongnu.org; Thu, 28 Feb 2019 15:25:44 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gzSFS-0007AA-JZ for qemu-devel@nongnu.org; Thu, 28 Feb 2019 15:25:43 -0500 Received: from mail-wm1-x341.google.com ([2a00:1450:4864:20::341]:50441) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gzSFS-00078e-BE for qemu-devel@nongnu.org; Thu, 28 Feb 2019 15:25:42 -0500 Received: by mail-wm1-x341.google.com with SMTP id x7so10442235wmj.0 for ; Thu, 28 Feb 2019 12:25:42 -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=5ANdAooO0oWTrix1+yXw8Jckjx/jPmpVf8YWjwuP8hM=; b=VloVgnWNIOWDh1kNWPUGI9o8ikXeUqzhxpQb4dJL4YXex9/ynJQncAnjX7AoZjhfwc vZMULJPALFvFqxmGKsVKWIX8Z1ISzGj+XObjQu6ezTkurI1xnk1fsiYv38NlbdXpYv++ VNeBNDUcp38W9dk/qu0MxtWlANu+TOJO5lhLdZ3DTfMj8VsZ23ieomMHuGJOPal/FqHU kt05dpNqH5eRHINYzvnv1nOIY1SOS6d5czQCTzkq9ZdThwIjnHhTEepJPOuGw/R+ZsLr tnRiiOhUX/aUxae8weWd0WBje4hQt02206CYUl+nizL9D+Tmzgpy5O2tj2Gpmy9nJ48n +VWg== 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=5ANdAooO0oWTrix1+yXw8Jckjx/jPmpVf8YWjwuP8hM=; b=m7UzorYj56YHWZebocVWTzjyCdjlYRhs22vLB9CcFRhc3Bs+H4LpCxpwedgFuRHKoo RKusxFb/tCDGN/bnoTLEEzbZ+roN6/Ko4/9nGff0VPmw2gH1JycxUKogo8FskdRig3m9 fvY8KD4XXs/QoHEDlTshR3hZ8zN+jLn3zWis5y4nZ/XNeJ8DG+3QHSjO+3wTFtnrYWIp AtgXrHhP/eJ4XjdH7BF97o4xGg+MpSGEsFNQaFTf+jWQQ44v0v6HzryaSDELRXiH3UaH hJO7kmLIDyZ7a5ulz5yXNbHsJxWz4l8YtjvRGCZKCzpLky8vuOvVrO0cuvlw8cPgsjZV yXCw== X-Gm-Message-State: AHQUAuaB95O1mrnVZLn4CrVEJIsXIjfkN8bagmklpMazGRQTW1vl7E89 3T97oa+qIw9VXypWDlwt1W228g== X-Received: by 2002:a1c:eb19:: with SMTP id j25mr883821wmh.123.1551385541190; Thu, 28 Feb 2019 12:25:41 -0800 (PST) Received: from zen.linaroharston ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id 65sm24507366wrb.62.2019.02.28.12.25.37 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 28 Feb 2019 12:25:39 -0800 (PST) Received: from zen.linaroharston. (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 86D111FF86; 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:24 +0000 Message-Id: <20190228202537.4638-4-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::341 Subject: [Qemu-devel] [PATCH v2 03/16] tests/tcg: add QEMU_OPT option for test runner 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, Richard Henderson , qemu-arm@nongnu.org, =?utf-8?q?Alex_Benn=C3=A9e?= , jcmvbkbc@gmail.com Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" This will allow tests to modify the QEMU invocation with for example different -cpu stazas without having to define a whole new set of runner types. Signed-off-by: Alex Bennée Reviewed-by: Richard Henderson --- v2 - default QEMU_OPTS to --monitor none for system emulation --- tests/tcg/Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) -- 2.20.1 diff --git a/tests/tcg/Makefile b/tests/tcg/Makefile index 55feab0f67..097e6374ea 100644 --- a/tests/tcg/Makefile +++ b/tests/tcg/Makefile @@ -54,10 +54,13 @@ LDFLAGS= # The QEMU for this TARGET ifdef CONFIG_USER_ONLY QEMU=../qemu-$(TARGET_NAME) +QEMU_OPTS= else QEMU=../qemu-system-$(TARGET_NAME) +QEMU_OPTS=--monitor none endif + # If TCG debugging is enabled things are a lot slower ifeq ($(CONFIG_DEBUG_TCG),y) TIMEOUT=45 @@ -108,7 +111,7 @@ RUN_TESTS=$(patsubst %,run-%, $(TESTS)) RUN_TESTS+=$(EXTRA_RUNS) run-%: % - $(call run-test, $<, $(QEMU) $<, "$< on $(TARGET_NAME)") + $(call run-test, $<, $(QEMU) $(QEMU_OPTS) $<, "$< on $(TARGET_NAME)") .PHONY: run run: $(RUN_TESTS) From patchwork Thu Feb 28 20:25:25 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: 159439 Delivered-To: patch@linaro.org Received: by 2002:a02:5cc1:0:0:0:0:0 with SMTP id w62csp1092094jad; Thu, 28 Feb 2019 12:33:13 -0800 (PST) X-Google-Smtp-Source: APXvYqx7c7PNXNIRBrJUy2KypVMi0MWYI8dfXDy61b83RIzfTWPuJDocfzLliQW8r2zhvXl3k8Hx X-Received: by 2002:a25:664a:: with SMTP id z10mr1230322ybm.253.1551385993892; Thu, 28 Feb 2019 12:33:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551385993; cv=none; d=google.com; s=arc-20160816; b=VWpC1pr6rNCMotoG/xQA/MTzgU1ojTq0Ti2BCmMnOI07CBy8VL06jZhw5hO89v7D6D ILVsgWqNw8PsV+8J6i0n1lm0bIPdjDljkaSpP2BMLxYbZKHDAd7qK9/7N2ZXrM02hcZ5 4vN8gRwzjPEnT4D3dveoDBlT0pWg/tpG9nsNLc8RCsPDDVZdy+LQMxj7KMRP+pUrSyvh khFHNhRirSc78YYxy+H6KoR7zeQkd9T+KyPedlJERwMaeLDzKb/M0quILL6pJysg7WZy hi0UwbeBQ7DU6iLtKWqm1KVXbLf2mC39BRlsh352H4OMivE4o8WXMpC43m1Kqz+Rd2Ai 6Tnw== 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=6Iwg8gBxmNX74lrd9FLXQo+bpVujW4RDOBT9zcDiXUI=; b=RW7ZjFLZq44YBoL3hTY/qUZZvuDP0HgVeH4bXWZiKJB53y9xO+xxwNwdbcncnlJpuu 9XJ1Q3j7Ik0THL1btTBSnMC8yBwclwxNJZlFdhKRFq2PVCOPrK8SVrspCm59nZAzUHpc VMYz+R8VQwZ+3RkLwTjKGglM74E8251Zf4IPR5sqKHyDWo9lddTyT3uNfypH8E+HgfMw vJ4YMoJXcxmd7qfIkieVRxvMrP01WODt473B/a/Igw5di5oQfZoRzNVYbcCdeCagJI6o VSTYQbaYfgUNHURDKeBogX3rJoAkz0B+aqmVpm6+3iq2PRMgqDplzr1ZvFgK6c7Wqm3W Nwrg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=nc17BE5V; 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 c79si11311999ywa.394.2019.02.28.12.33.13 for (version=TLS1 cipher=AES128-SHA bits=128/128); Thu, 28 Feb 2019 12:33:13 -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=nc17BE5V; 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]:46071 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gzSMj-0005wq-8O for patch@linaro.org; Thu, 28 Feb 2019 15:33:13 -0500 Received: from eggs.gnu.org ([209.51.188.92]:42566) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gzSFU-0000Ql-9a 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 1gzSFT-0007DE-EJ for qemu-devel@nongnu.org; Thu, 28 Feb 2019 15:25:44 -0500 Received: from mail-wr1-x441.google.com ([2a00:1450:4864:20::441]:41553) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gzSFT-00079o-5v for qemu-devel@nongnu.org; Thu, 28 Feb 2019 15:25:43 -0500 Received: by mail-wr1-x441.google.com with SMTP id n2so23420507wrw.8 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=6Iwg8gBxmNX74lrd9FLXQo+bpVujW4RDOBT9zcDiXUI=; b=nc17BE5VJymlmV+mE+IljEUZoEjqL99lINGs1LL1tb57OAIBsNzduUiJ9fEI9QgymH r6CXIjz+qfMVeyKlwKjEjUys2nuBYlX0ggmTBa2LQV7UvquSLdE1IiJjklMukiDcWzpO HlWbF6m2pKd7Emg5X6Q3BhhFEn1Tu2Q83u3kRfGD4LkLFqb6zaPyIYyU8RzkImTxsxMB qXSFSwYFZi8ktZVMwL16G6/PUwmprlxP5c9Fx6rj7b0J1/WTm7GgoCFN9ca0V+U3coLN 4FPE6bB1SopQRR/NisEvOV/MTr2FbDHaiwfQa2XgYdB1yGp6/DkOdQKlFeHxezgc5D5n pXPw== 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=6Iwg8gBxmNX74lrd9FLXQo+bpVujW4RDOBT9zcDiXUI=; b=N0bqWhZusLWKV2W9dS3Az23EkZBcR9VAeEDUhFrGINCRb5fsEW6QvQ/KGJzxuurxt2 T0EeF5KNvfguktf4Kj3A2vppYRDaB8uFuPkRpn2CmmCCC9/ArMJgan6bEqx+jGgDUFoU RDUbADNKqJccahtgFFraqHXu1XLjqFCJYNt+cmH3KTrRVWm9VqIBLKSUZyicFw/VhnFd da7+aeS6JWttaWjYLjg8zXkN62bLoIQNPDkcHLSYf1aTcGJeDUvfVb8Bz9l7daPaJjZt W7uMW2/mGWIGIhyd0/k44k2osOnnYwk8rI82G5bGuTpupjYNUVxMATwseb64n+9vVdXr sPZQ== X-Gm-Message-State: APjAAAUj3ARI2D/WgH+7cyCj8OyhsbE/8ooPAQm9OViEPfuCvt6H5Uux Gy3qo55aF/mgq6fV5Ykq2HVnbw== X-Received: by 2002:a5d:500e:: with SMTP id e14mr798230wrt.219.1551385542035; Thu, 28 Feb 2019 12:25:42 -0800 (PST) Received: from zen.linaroharston ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id e193sm11768176wmg.18.2019.02.28.12.25.37 (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 9286A1FF87; 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:25 +0000 Message-Id: <20190228202537.4638-5-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::441 Subject: [Qemu-devel] [PATCH v2 04/16] tests/tcg: add gdb runner variant 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" With this you can launch a test in gdb with: cd $(BUILD)/tests make -f $(SRC)/tests/tcg/Makefile gdb-$(TEST_NAME) Signed-off-by: Alex Bennée --- tests/tcg/Makefile | 3 +++ 1 file changed, 3 insertions(+) -- 2.20.1 diff --git a/tests/tcg/Makefile b/tests/tcg/Makefile index 097e6374ea..47f4298e68 100644 --- a/tests/tcg/Makefile +++ b/tests/tcg/Makefile @@ -113,6 +113,9 @@ RUN_TESTS+=$(EXTRA_RUNS) run-%: % $(call run-test, $<, $(QEMU) $(QEMU_OPTS) $<, "$< on $(TARGET_NAME)") +gdb-%: % + gdb --args $(QEMU) $(QEMU_OPTS) $< + .PHONY: run run: $(RUN_TESTS) 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); } From patchwork Thu Feb 28 20:25:27 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: 159437 Delivered-To: patch@linaro.org Received: by 2002:a02:5cc1:0:0:0:0:0 with SMTP id w62csp1090955jad; Thu, 28 Feb 2019 12:31:59 -0800 (PST) X-Google-Smtp-Source: APXvYqx+SS3nhDoLmBiprDk8GSgyTP/tHkI+pj2ZHOresVlnKF3aMIZ2IlYUQX/waCknU0PRQXkH X-Received: by 2002:a25:4ac6:: with SMTP id x189mr1169043yba.259.1551385919692; Thu, 28 Feb 2019 12:31:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551385919; cv=none; d=google.com; s=arc-20160816; b=aQ+AeMOjgmm5hvAkmxjAtBZCll9M7JrMT6cVscAwrYadldGiUFSxM9pW1kLN6OeqAs MXmo8PcJmbW1DcuP71QjLb8is4BmD6VkT7Qh/dq5ZrXnjFcovUTKbmdZw8JEHbNFMKCM 6zV7fMcfpKhIEJRRs9vK9nSdHh5rf6ogYrWnn3KY9BFDObTucpvW0Qyhrrb9T3V/vVPQ z3dJRyNh9lWILuh/YhMnD+haJgm141W3qasefteShdVxQrdemElC4IJdwjcrOoE+b8nl NnZ0i/d5Z5yMgQGv0jCcuBz2kgHruoDEV6IaqqwpODUskI7J3EqNPU5kmj/dAq0cM0VL jRhA== 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=QXJ3lfkk33PrrjtnU8P/06NiWtLnegdIM7eA8oCO+u4=; b=T0VnIfQZs7RTcMKALUWJYXXAUgVpr+nO9KE/NBrXUaC0mH7XK8212SD0QbnIaLtLDC 591J7wyCh27oYIiWI6IJluMIWizlDyuneF7QScr2h+JKL8x+ToqsPyTFb3/4fdD7yDa6 EjiOH+tGUM9Amv8G+6rfnhaSh6mTmk7jw6Rv6YQpvD1jMd8xmtSYzHV5TTafiHcEiniD kZ5yXnCdIPUIGfc/f70CQVYR/7Q7yRMb6vbGBQZ9QBFQii32tzWMySnbqIei+qnzSsCa mwhBoQ6cza5PkhJod7Xzg50ke49tOeNH2nyx2fKVfHoNPMVh194cQDSJIdu3HZ6KSGfw ytQw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=mQF2hdLB; 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 e9si11795672ywb.188.2019.02.28.12.31.59 for (version=TLS1 cipher=AES128-SHA bits=128/128); Thu, 28 Feb 2019 12:31:59 -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=mQF2hdLB; 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]:46051 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gzSLW-0004A2-Uo for patch@linaro.org; Thu, 28 Feb 2019 15:31:59 -0500 Received: from eggs.gnu.org ([209.51.188.92]:42610) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gzSFV-0000RS-TU 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-0007Hn-W6 for qemu-devel@nongnu.org; Thu, 28 Feb 2019 15:25:45 -0500 Received: from mail-wr1-x444.google.com ([2a00:1450:4864:20::444]:34041) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gzSFU-0007GG-OG for qemu-devel@nongnu.org; Thu, 28 Feb 2019 15:25:44 -0500 Received: by mail-wr1-x444.google.com with SMTP id f14so23462233wrg.1 for ; Thu, 28 Feb 2019 12:25:44 -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=QXJ3lfkk33PrrjtnU8P/06NiWtLnegdIM7eA8oCO+u4=; b=mQF2hdLBO4Wt/DTB/whPToYkTvWiCE7uOplf1EJdh8x5GnyUB0JPiXMRwNuD4ZpIZR bo2v2HZ4PjVLz/HKAZ3pTh5pgv0KRdV/UGM8dZhyGVPfUUi37XGgQ//GqydK/3oByYyQ vI0BesLynQCvzadY3DX/+Y/+jSZeupioeojSrJWp3pobpjEqVWA+FnkcW9x1xfMXoTLM 1U3vEJcJGHy+beKVxHfd43mEOXgvY0aY2PMbBaZKEotG23XiVzy+n7cnaRid3B4I202/ SYA2Z4P5IlE7Z0DuyDQN2bcu0IOLBQiAZ7xgaleVj9/+dvfe9MqmuznY1Y4Exhp1NE+b fqmA== 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=QXJ3lfkk33PrrjtnU8P/06NiWtLnegdIM7eA8oCO+u4=; b=ECIDeawVo8LRBmc8CJo3nU/iuyaVaTLtTXXINakc0dy0D4idArHoWcc4aJ/+4OnlHw wAk0G9Pp+TaxJwQDVYOMqf9+2kPe1tyYKsOv4BkYVtdBsU4qGG4M3J4SCZeFdzUkr/LZ 3tqYH2IF1imG9J4Ida7Nr4NUB1zfIAm4zqX23oX/pQDq6+l8uRuKe3cqmNi3B1SxL8Vu bQCBfQ3f879IzVqD5M0GjxXkzRSUIFKCgi9oaP5CvNSfXuaZvQNiyVDdzFF5sQoWDeBZ Jf21gWcqNjnZJxXg9Szp676XKyERCyML6XaLazCJsrEfhdx42lIjRANAZAT1YZfFD94g uZ4g== X-Gm-Message-State: APjAAAX0zZQ+7kOIQNsvNihOPZxkRr0fqXnX+Ob6lKsv6QvsUHJqTbJa kPgZudrgHF7XIT2Iby7aVmQxUg== X-Received: by 2002:adf:f103:: with SMTP id r3mr951571wro.50.1551385543760; Thu, 28 Feb 2019 12:25:43 -0800 (PST) Received: from zen.linaroharston ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id o18sm54598841wrg.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 AA12B1FF89; 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:27 +0000 Message-Id: <20190228202537.4638-7-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::444 Subject: [Qemu-devel] [PATCH v2 06/16] tests/docker: add debian-xtensa-cross image 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?= , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , jcmvbkbc@gmail.com Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: Philippe Mathieu-Daudé Xtensa cpu supported: - dc232b - dc233c - csp Signed-off-by: Philippe Mathieu-Daudé Signed-off-by: Alex Bennée --- v2 - the compiler only works for system tests (no libc) --- .../dockerfiles/debian-xtensa-cross.docker | 31 +++++++++++++++++++ tests/tcg/xtensa/Makefile.include | 11 +++++++ 2 files changed, 42 insertions(+) create mode 100644 tests/docker/dockerfiles/debian-xtensa-cross.docker create mode 100644 tests/tcg/xtensa/Makefile.include -- 2.20.1 diff --git a/tests/docker/dockerfiles/debian-xtensa-cross.docker b/tests/docker/dockerfiles/debian-xtensa-cross.docker new file mode 100644 index 0000000000..afd2ab9163 --- /dev/null +++ b/tests/docker/dockerfiles/debian-xtensa-cross.docker @@ -0,0 +1,31 @@ +# +# Docker cross-compiler target +# +# This docker target builds on the debian stretch base image, +# using a prebuilt toolchains for Xtensa cores from: +# https://github.com/foss-xtensa/toolchain/releases +# +FROM debian:stretch-slim + +RUN apt-get update && \ + DEBIAN_FRONTEND=noninteractive apt install -yy eatmydata +RUN DEBIAN_FRONTEND=noninteractive eatmydata \ + apt-get install -y --no-install-recommends \ + bison \ + build-essential \ + ca-certificates \ + curl \ + flex \ + gettext \ + git \ + python-minimal + +ENV CPU_LIST csp dc232b dc233c +ENV TOOLCHAIN_RELEASE 2018.02 + +RUN for cpu in $CPU_LIST; do \ + curl -#SL http://github.com/foss-xtensa/toolchain/releases/download/$TOOLCHAIN_RELEASE/x86_64-$TOOLCHAIN_RELEASE-xtensa-$cpu-elf.tar.gz \ + | tar -xzC /opt; \ + done + +ENV PATH $PATH:/opt/$TOOLCHAIN_RELEASE/xtensa-dc232b-elf/bin:/opt/$TOOLCHAIN_RELEASE/xtensa-dc233c-elf/bin:/opt/$TOOLCHAIN_RELEASE/xtensa-csp-elf/bin diff --git a/tests/tcg/xtensa/Makefile.include b/tests/tcg/xtensa/Makefile.include new file mode 100644 index 0000000000..423c00a5d3 --- /dev/null +++ b/tests/tcg/xtensa/Makefile.include @@ -0,0 +1,11 @@ +# Makefile.include for xtensa targets +# +# The compilers can only be used for building system tests + +ifeq ($(CONFIG_SOFTMMU),y) +DOCKER_IMAGE=debian-xtensa-cross + +# default to the dc232b cpu +DOCKER_CROSS_COMPILER=/opt/2018.02/xtensa-dc232b-elf/bin/xtensa-dc232b-elf-gcc +DOCKER_CROSS_LINKER=/opt/2018.02/xtensa-dc232b-elf/bin/xtensa-dc232b-elf-ld +endif From patchwork Thu Feb 28 20:25:28 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: 159440 Delivered-To: patch@linaro.org Received: by 2002:a02:5cc1:0:0:0:0:0 with SMTP id w62csp1092224jad; Thu, 28 Feb 2019 12:33:23 -0800 (PST) X-Google-Smtp-Source: APXvYqystmVSlio/jbsEUvc+0W/jz6LuWpo3ZT4EjkSzQwAPh00XaeBbtdbkuL70Y/JtjNDZNVqU X-Received: by 2002:a81:4b45:: with SMTP id y66mr694933ywa.421.1551386003477; Thu, 28 Feb 2019 12:33:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551386003; cv=none; d=google.com; s=arc-20160816; b=kt5SVZEhvmiJo65DxvqsdPDF3tWiz2hU13RoFjVqnez2rZ0NgltQbDXZqrg8+Bnfmk vbXAY2xslewGtIKTKZXQ6dWrHtO2RtbSi1xNQ65TGL8DkMC43ClNxtrhTp+ABI4yzEps VJGjc2R4kBUfc37lE5fN3UaMT0CclLl2PdUam4QrkZSJIg4olGhIHrS2D8JTXzDIiwTe Ol6DFH5Oo51xHYst/qvih4KHcmQ85VmRUYhTRNSL40R1pM6O8jhvItzUhl+Iovuj7kvV g//hYxOefkImQPQhxrR6X7+xnQJzW6dQDn1M32Kpv2Numh4/hHbbs615VW+FDB7cY9ef EPwA== 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=3TSOdPIlax1RuD630cCZAnT/ylBHj/DkmzxzTatxKBc=; b=VjiDfo6BbaWAO8ouooXSfbaf/ICxxHou+xh/xbkPg1hic09wUch2/cy8tG5xyPWKWM ovW2TOD/fdkBcRN9+qpVIqFLf8TPbYKwQ5GB7Imk7VC8C09lTSYfzSvS0RYZUHQ1E5QR 90c3FdpI5xkNIwDl6Fxf+XHPNKISt5x5j1jyK9Ux18l36RsHBkKwp6C9Llh4KO684pYY sGLIJstpml20hJcNhcgSi2FP+/0hDJmA1t5epw34Wy0V3KUATkWiqZmqrbLl6bn4Yfsk SMnlVnjrJ19g+q6dzWzEPYQFkXDSuEBTvxgR2cZ9+HD4JyFmYlxCO+AU6L1DtpZaZm+n jhsQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=bsR2XAnm; 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 t141si11819810ywe.21.2019.02.28.12.33.23 for (version=TLS1 cipher=AES128-SHA bits=128/128); Thu, 28 Feb 2019 12:33:23 -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=bsR2XAnm; 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]:46061 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gzSMs-0005Dz-Tr for patch@linaro.org; Thu, 28 Feb 2019 15:33:22 -0500 Received: from eggs.gnu.org ([209.51.188.92]:42653) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gzSFX-0000RW-98 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 1gzSFW-0007MD-8k for qemu-devel@nongnu.org; Thu, 28 Feb 2019 15:25:47 -0500 Received: from mail-wr1-x443.google.com ([2a00:1450:4864:20::443]:43115) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gzSFW-0007K2-1v for qemu-devel@nongnu.org; Thu, 28 Feb 2019 15:25:46 -0500 Received: by mail-wr1-x443.google.com with SMTP id d17so23389347wre.10 for ; Thu, 28 Feb 2019 12:25:45 -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=3TSOdPIlax1RuD630cCZAnT/ylBHj/DkmzxzTatxKBc=; b=bsR2XAnmtFXSsP+mpQ33I1EWYRp379YPzAZnoGX0gv6AhZsx9+yr8Nl1+ga6H51ekh ZEDMZO95Aaf0p+YBtXsr5U5KrS2ZkZy/zkWT/bxqp3c0xtu7C5hyKf+fQL8jVKzFKInw ItYELfEs7sVDgCOZimsGvAkMQwea1I16zCW+kpdiUNavZDNS59Wnc5Cj6NUBBjo8vmy7 JJTP+NjFO9tx9mb+znJcNtqnlAxTKEqWEtwb/P2v6xO2UND4/L8qJdrlrYYUT5qpIjWK PmSxDNU9G+GCExo0v+wI65SEyrUTVAHmTfZlIVtOlElNHEXZl95SbLStDhYSKLhH2BBA +F7w== 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=3TSOdPIlax1RuD630cCZAnT/ylBHj/DkmzxzTatxKBc=; b=MJ43+/MxivXL+I0LWBK9YZKgO5a+Lsm3UkCwsJGmB3IgRH5aKQIol6OrJCTUUrwKXt iD3I8bhtEbqSjqZuC90rg19w61Rc1IuC9FPx2pA4zorNMrofH6YPMlupnCkRDq3gYdt7 z1/K5ICJmXX1VXFZn3My5HJi3izSpoXLu2TN0AHHo7kF46sa/MCFY8WzRb8SR/i+XIqD RzE0ue897NTBNLV1ZGV88hFiw1TvfgS9Q7LyU0sXyLZuFgvNQclPT5uCqARhhjpTgG/x IJjG7YMFA8yIUyTmGMuLykdkSLFybPHxWahXH1DGM/IyLGlsWoXFLrk6Qm7uP4TWYiRd e8bw== X-Gm-Message-State: APjAAAXx0TUZkQBY1FEBkVwUwXY5Ytgs5CIDLQ04iIHNoGuFKbAuY1UK xQKjTIYuLzpP5T3QAJ6rAARjUQ== X-Received: by 2002:a5d:4903:: with SMTP id x3mr852221wrq.151.1551385545036; Thu, 28 Feb 2019 12:25:45 -0800 (PST) Received: from zen.linaroharston ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id v4sm4672711wmg.1.2019.02.28.12.25.39 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 28 Feb 2019 12:25:41 -0800 (PST) Received: from zen.linaroharston. (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id B62F11FF8A; 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:28 +0000 Message-Id: <20190228202537.4638-8-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::443 Subject: [Qemu-devel] [PATCH v2 07/16] tests/tcg/xtensa: enable system 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: 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" Signed-off-by: Alex Bennée --- v2 - use cross CC for linker - fix up test selection to skip linker.ld.S --- tests/tcg/xtensa/Makefile | 93 ------------------------ tests/tcg/xtensa/Makefile.softmmu-target | 40 ++++++++++ 2 files changed, 40 insertions(+), 93 deletions(-) delete mode 100644 tests/tcg/xtensa/Makefile create mode 100644 tests/tcg/xtensa/Makefile.softmmu-target -- 2.20.1 diff --git a/tests/tcg/xtensa/Makefile b/tests/tcg/xtensa/Makefile deleted file mode 100644 index 2f5691f75b..0000000000 --- a/tests/tcg/xtensa/Makefile +++ /dev/null @@ -1,93 +0,0 @@ --include ../../../config-host.mak - -CORE=dc232b -CROSS=xtensa-$(CORE)-elf- - -ifndef XT -SIM = ../../../xtensa-softmmu/qemu-system-xtensa -SIMFLAGS = -M sim -cpu $(CORE) -nographic -semihosting -icount 6 $(EXTFLAGS) -kernel -SIMDEBUG = -s -S -else -SIM = xt-run -SIMFLAGS = --xtensa-core=DC_B_232L --exit_with_target_code $(EXTFLAGS) -SIMDEBUG = --gdbserve=0 -endif - -HOST_CC = gcc -CC = $(CROSS)gcc -AS = $(CROSS)gcc -x assembler-with-cpp -LD = $(CROSS)ld - -XTENSA_SRC_PATH = $(SRC_PATH)/tests/tcg/xtensa -INCLUDE_DIRS = $(XTENSA_SRC_PATH) $(SRC_PATH)/target/xtensa/core-$(CORE) -XTENSA_INC = $(addprefix -I,$(INCLUDE_DIRS)) - -LDFLAGS = -Tlinker.ld - -CRT = crt.o vectors.o - -TESTCASES += test_b.tst -TESTCASES += test_bi.tst -#TESTCASES += test_boolean.tst -TESTCASES += test_break.tst -TESTCASES += test_bz.tst -TESTCASES += test_cache.tst -TESTCASES += test_clamps.tst -TESTCASES += test_extui.tst -TESTCASES += test_fail.tst -TESTCASES += test_interrupt.tst -TESTCASES += test_loop.tst -TESTCASES += test_mac16.tst -TESTCASES += test_max.tst -TESTCASES += test_min.tst -TESTCASES += test_mmu.tst -TESTCASES += test_mul16.tst -TESTCASES += test_mul32.tst -TESTCASES += test_nsa.tst -TESTCASES += test_phys_mem.tst -ifdef XT -TESTCASES += test_pipeline.tst -endif -TESTCASES += test_quo.tst -TESTCASES += test_rem.tst -TESTCASES += test_rst0.tst -TESTCASES += test_s32c1i.tst -TESTCASES += test_sar.tst -TESTCASES += test_sext.tst -TESTCASES += test_shift.tst -TESTCASES += test_sr.tst -TESTCASES += test_timer.tst -TESTCASES += test_windowed.tst - -all: build - -linker.ld: $(XTENSA_SRC_PATH)/linker.ld.S - $(HOST_CC) $(XTENSA_INC) -E -P $< -o $@ - -%.o: $(XTENSA_SRC_PATH)/%.c - $(CC) $(XTENSA_INC) $(CFLAGS) -c $< -o $@ - -%.o: $(XTENSA_SRC_PATH)/%.S - $(CC) $(XTENSA_INC) $(ASFLAGS) -c $< -o $@ - -%.tst: %.o linker.ld $(XTENSA_SRC_PATH)/macros.inc $(CRT) Makefile - $(LD) $(LDFLAGS) $(NOSTDFLAGS) $(CRT) $< -o $@ - -build: $(TESTCASES) - -check: $(addprefix run-, $(TESTCASES)) - -run-%.tst: %.tst - $(SIM) $(SIMFLAGS) ./$< - -run-test_fail.tst: test_fail.tst - ! $(SIM) $(SIMFLAGS) ./$< - -debug-%.tst: %.tst - $(SIM) $(SIMDEBUG) $(SIMFLAGS) ./$< - -host-debug-%.tst: %.tst - gdb --args $(SIM) $(SIMFLAGS) ./$< - -clean: - $(RM) -fr $(TESTCASES) $(CRT) linker.ld diff --git a/tests/tcg/xtensa/Makefile.softmmu-target b/tests/tcg/xtensa/Makefile.softmmu-target new file mode 100644 index 0000000000..1a4014506f --- /dev/null +++ b/tests/tcg/xtensa/Makefile.softmmu-target @@ -0,0 +1,40 @@ +# +# Xtensa softmmu tests +# + +ifneq ($(TARGET_WORDS_BIGENDIAN),y) + +XTENSA_SRC = $(SRC_PATH)/tests/tcg/xtensa +XTENSA_ALL = $(filter-out $(XTENSA_SRC)/linker.ld.S,$(wildcard $(XTENSA_SRC)/*.S)) +XTENSA_TESTS = $(patsubst $(XTENSA_SRC)/%.S, %, $(XTENSA_ALL)) +# Filter out common blobs and broken tests +XTENSA_BROKEN_TESTS = crt vectors test_boolean test_pipeline test_fail +XTENSA_USABLE_TESTS = $(filter-out $(XTENSA_BROKEN_TESTS), $(XTENSA_TESTS)) + +# add to the list of tests +TESTS += $(XTENSA_USABLE_TESTS) +VPATH += $(XTENSA_SRC) + +CORE=dc232b +QEMU_OPTS+=-M sim -cpu $(CORE) -nographic -semihosting -icount 6 $(EXTFLAGS) -kernel + +INCLUDE_DIRS = $(SRC_PATH)/target/xtensa/core-$(CORE) +XTENSA_INC = $(addprefix -I,$(INCLUDE_DIRS)) + +LDFLAGS = -Tlinker.ld -nostartfiles -nostdlib + +CRT = crt.o vectors.o + +linker.ld: linker.ld.S + $(CC) $(XTENSA_INC) -E -P $< -o $@ + +$(XTENSA_USABLE_TESTS): linker.ld macros.inc $(CRT) Makefile.softmmu-target + +# special rule for common blobs +%.o: %.S + $(CC) $(XTENSA_INC) $(ASFLAGS) -c $< -o $@ + +%: %.S + $(CC) $(XTENSA_INC) $(ASFLAGS) $< -o $@ $(LDFLAGS) $(NOSTDFLAGS) $(CRT) + +endif From patchwork Thu Feb 28 20:25:29 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: 159445 Delivered-To: patch@linaro.org Received: by 2002:a02:5cc1:0:0:0:0:0 with SMTP id w62csp1096844jad; Thu, 28 Feb 2019 12:38:31 -0800 (PST) X-Google-Smtp-Source: APXvYqyB+l5d+gskaZKiCZvJpfKySwLCRCivwgaLVBZq/+O4ScZkuKU7mgWyr/SgMpIxX33dQWe8 X-Received: by 2002:a25:3482:: with SMTP id b124mr1220410yba.23.1551386311243; Thu, 28 Feb 2019 12:38:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551386311; cv=none; d=google.com; s=arc-20160816; b=0MPiQFrIn203LO9T5KoowjEsZEqfBodLwtpgOCf2SiYOKb/3OT4sKoi505hujRy9V4 8oPPf8LcVRSRda2H3/sJ2dHrc55zwfCsdRZViHyor1o0FbFBkrpofqegczQe/KxxK/mj UglaWivZJEnaj4pDhiwpooiiIR1mkkddjs4fcq28KG0kFtTzk6zx4B4lgltSWlcXp6gW QWxMPDL4DZPCUH74oeOginze0Feoq2PMUHlXFmJSXIj8Iu1DRzM5GoKutU8q151b91Ej Jw/UMQ/MAFJU9EyaixQbP2MzaMgWXOldVCdP9BBIke8rmqiLP//sFqEHvY9Cdj9CQT2H ImjA== 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=LOsSu8Eq6x2dR75aHJwrZ0rC0QsKzLcjJP/Aa5vKmvA=; b=DyOeoEFQeCOv/k5w4AWbiYrUQXdiIB85fNS4w96DJBTUPWx3SMNQ6LZVX3elfI9z0a wMYA0fWAxQgW/fDaD70wf+JJ9to1g/eWYpAT/AKooPL3oNcbv6OsS5uq3GaIlAntjSpl HqiON3DNpNVBFX9cqhVfRwFiuLXa+YLfzrMalvx1RRYgmANzXZ9b/2uwQsPmbmsL1amQ J5D+RChf2oM1CoII2U8ti+NuWfZiSjkrBtdVnQxJEO7fP8dia+F2MUKWo5+7XCh328pz JFewqy08DkcjWzL5a66b0uUonPNv675qglEFQhYlMe6vBbxG1K15y5qWB9wOMnnH/voQ UriQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=VDw+NH4i; 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 f68si10822076yba.424.2019.02.28.12.38.31 for (version=TLS1 cipher=AES128-SHA bits=128/128); Thu, 28 Feb 2019 12:38:31 -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=VDw+NH4i; 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]:46151 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gzSRq-00013R-NK for patch@linaro.org; Thu, 28 Feb 2019 15:38:30 -0500 Received: from eggs.gnu.org ([209.51.188.92]:42676) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gzSFY-0000Rf-6U for qemu-devel@nongnu.org; Thu, 28 Feb 2019 15:25:49 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gzSFW-0007Ml-Uo for qemu-devel@nongnu.org; Thu, 28 Feb 2019 15:25:48 -0500 Received: from mail-wm1-x344.google.com ([2a00:1450:4864:20::344]:54225) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gzSFW-0007M3-LY for qemu-devel@nongnu.org; Thu, 28 Feb 2019 15:25:46 -0500 Received: by mail-wm1-x344.google.com with SMTP id e74so10415384wmg.3 for ; Thu, 28 Feb 2019 12:25:46 -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=LOsSu8Eq6x2dR75aHJwrZ0rC0QsKzLcjJP/Aa5vKmvA=; b=VDw+NH4ic/19NGaqLC8VDVdOSp56nRzTKAuabRUq3uz0EWhSJvOTGzw86nilzBaEpi U6cgYxFmRSeQGOOAF8ke7q215bWJAvYEDDcFy26AYfjmS/qL2H4k7Q3PAHrVYECbjKO5 LS5VI2fjDWRAUPVpAXRZVMROAC2REcVIJmPzu6cknTaqfJYm1ns40QdLyPvNmPMGct3Z vEStKmIJ7Q6oo4JMtHuVNczfooXUkTNTOXLCIy7Daabel9Q80di1YPPFqYz0D7Lk3brt aVOP7LvVjii3dxIoGy0frzZgl27gxlcbxgyMsGMpKAmz6l0SjvVImdL1BY7wd5WCNwLA pqQQ== 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=LOsSu8Eq6x2dR75aHJwrZ0rC0QsKzLcjJP/Aa5vKmvA=; b=biShVnftfLWRzLBvzj1W2nhqbRwoWlBIRr8PtxGfVlXjT3aoOs4S2C3x9cJcPm7Nwl 3i1bDxlbHJ5JcFuAw9Vh4n8XanetjkOEKgcIRymqIXgyN5sf6p8hqRJyVlaLdsLAE40K EgjnpPyULCKB+hUWQbX2V0PA+TtoDGg/uVnPdsls6nazGPtsDVKEQoHG2Hpw2jDqiC/F Wa7+TYsiY8YTOB516xVeDY9KWsBgue4nlJVy8QDwgwzprLC2m8G2xUfxDzWjCg1JXP/M sF7QAQBHIThTZLFdbFK5be2Rzen2alPBvlawT2DgPhHfNxorL0Tu7qXK9ZX2+1GR9F0O iKkg== X-Gm-Message-State: AHQUAubAtGPAyHoGGAswM1+dv3ioS5s4resel1JfU8zO+JBmxuf707UK kl8LQVKWFfrOef0f1aUOKkEqpg== X-Received: by 2002:a1c:2545:: with SMTP id l66mr883568wml.96.1551385545545; Thu, 28 Feb 2019 12:25:45 -0800 (PST) Received: from zen.linaroharston ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id c18sm5162234wre.88.2019.02.28.12.25.39 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 28 Feb 2019 12:25:41 -0800 (PST) Received: from zen.linaroharston. (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id C17881FF8B; 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:29 +0000 Message-Id: <20190228202537.4638-9-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::344 Subject: [Qemu-devel] [PATCH v2 08/16] tests/tcg/arm: add ARMv6-M UNDEFINED 32-bit instruction test 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?= , Stefan Hajnoczi , jcmvbkbc@gmail.com Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: Stefan Hajnoczi Test that 32-bit instructions declared UNDEFINED in the ARMv6-M Reference Manual really do raise an exception. Also test that the 6 32-bit instructions defined in the ARMv6-M Reference Manual do not raise an exception. Based-on: <20181029194519.15628-1-stefanha@redhat.com> Signed-off-by: Stefan Hajnoczi Message-Id: <20181129185113.30353-1-stefanha@redhat.com> [AJB: integrated into system tests] Signed-off-by: Alex Bennée --- v2 - added to series - used softmmu-target Makefile with single compile/link step - launches with -kernel - drop .hex file --- tests/tcg/arm/Makefile.softmmu-target | 29 +++++ tests/tcg/arm/test-armv6m-undef.S | 154 ++++++++++++++++++++++++++ tests/tcg/arm/test-armv6m-undef.ld | 21 ++++ 3 files changed, 204 insertions(+) create mode 100644 tests/tcg/arm/Makefile.softmmu-target create mode 100644 tests/tcg/arm/test-armv6m-undef.S create mode 100644 tests/tcg/arm/test-armv6m-undef.ld -- 2.20.1 diff --git a/tests/tcg/arm/Makefile.softmmu-target b/tests/tcg/arm/Makefile.softmmu-target new file mode 100644 index 0000000000..49d48d8a1c --- /dev/null +++ b/tests/tcg/arm/Makefile.softmmu-target @@ -0,0 +1,29 @@ +# -*- Mode: makefile -*- +# +# ARM SoftMMU tests - included from tests/tcg/Makefile +# + +ifeq ($(TARGET_ABI_DIR),arm) + +ARM_SRC=$(SRC_PATH)/tests/tcg/arm + +# Set search path for all sources +VPATH += $(ARM_SRC) + +ARM_TESTS=test-armv6m-undef + +TESTS += $(ARM_TESTS) + +CFLAGS+=-Wl,--build-id=none -x assembler-with-cpp +LDFLAGS+=-nostdlib -N -static + +%: %.S %.ld + $(CC) $(CFLAGS) $(ASFLAGS) $< -o $@ $(LDFLAGS) -T $(ARM_SRC)/$@.ld + +# Specific Test Rules + +test-armv6m-undef: EXTRA_CFLAGS+=-mcpu=cortex-m0 + +run-test-armv6m-undef: QEMU_OPTS+=-semihosting -M microbit -kernel + +endif diff --git a/tests/tcg/arm/test-armv6m-undef.S b/tests/tcg/arm/test-armv6m-undef.S new file mode 100644 index 0000000000..d18ca56b4a --- /dev/null +++ b/tests/tcg/arm/test-armv6m-undef.S @@ -0,0 +1,154 @@ +/* + * Test ARMv6-M UNDEFINED 32-bit instructions + * + * Copyright 2018 Red Hat Inc. + * + * This work is licensed under the terms of the GNU GPL, version 2 + * or later. See the COPYING file in the top-level directory. + */ + +/* + * Test that UNDEFINED 32-bit instructions fault as expected. This is an + * interesting test because ARMv6-M shares code with its more fully-featured + * siblings and it's necessary to verify that its limited instruction set is + * emulated correctly. + * + * The emulator must be invoked with -semihosting so that the test case can + * terminate with exit code 0 on success or 1 on failure. + * + * Failures can be debugged with -d in_asm,int,exec,cpu and the + * gdbstub (-S -s). + */ + +.syntax unified +.cpu cortex-m0 +.thumb + +/* + * Memory map + */ +#define SRAM_BASE 0x20000000 +#define SRAM_SIZE (16 * 1024) + +/* + * Semihosting interface on ARM T32 + * See "Semihosting for AArch32 and AArch64 Version 2.0 Documentation" by ARM + */ +#define semihosting_call bkpt 0xab +#define SYS_EXIT 0x18 + +vector_table: + .word SRAM_BASE + SRAM_SIZE /* 0. SP_main */ + .word exc_reset_thumb /* 1. Reset */ + .word 0 /* 2. NMI */ + .word exc_hard_fault_thumb /* 3. HardFault */ + .rept 7 + .word 0 /* 4-10. Reserved */ + .endr + .word 0 /* 11. SVCall */ + .word 0 /* 12. Reserved */ + .word 0 /* 13. Reserved */ + .word 0 /* 14. PendSV */ + .word 0 /* 15. SysTick */ + .rept 32 + .word 0 /* 16-47. External Interrupts */ + .endr + +exc_reset: +.equ exc_reset_thumb, exc_reset + 1 +.global exc_reset_thumb + /* The following 32-bit UNDEFINED instructions are tested by executing + * them. The HardFault exception handler should execute and return to + * the next test case. If no exception is raised the test fails. + */ + + /* Table A5-9 32-bit Thumb encoding */ + .short 0b1110100000000000 + .short 0b0000000000000000 + b not_reached + .short 0b1110100000000000 + .short 0b1000000000000000 + b not_reached + .short 0b1111100000000000 + .short 0b0000000000000000 + b not_reached + .short 0b1111100000000000 + .short 0b1000000000000000 + b not_reached + .short 0b1111000000000000 + .short 0b0000000000000000 + b not_reached + + /* Table A5-10 Branch and miscellaneous control instructions */ + .short 0b1111011111110000 + .short 0b1010000000000000 + b not_reached + + /* The following are valid 32-bit instructions that must not raise a + * HardFault. + */ + + /* B4.2.3 Move to Special Register (moves to IPSR are ignored) */ + msr ipsr, r0 + b 1f + b not_reached +1: + /* B4.2.2 Move from Special Register */ + mrs r0, ipsr + b 1f + b not_reached +1: + /* A6.7.13 Branch with Link (immediate) */ + bl 1f +1: + b 1f + b not_reached +1: + /* A6.7.21 Data Memory Barrier */ + dmb + b 1f + b not_reached +1: + /* A6.7.22 Data Synchronization Barrier */ + dsb + b 1f + b not_reached +1: + /* A6.7.24 Instruction Memory Barrier */ + isb + b 1f + b not_reached +1: + + /* Success! */ + movs r0, 1 + b exit + +not_reached: /* Failure :( */ + movs r0, 0 + b exit + +/* When a HardFault occurs, return to pc+6 (test cases are 3 halfwords long) */ +exc_hard_fault: +.equ exc_hard_fault_thumb, exc_hard_fault + 1 +.global exc_hard_fault_thumb + ldr r0, [sp, 0x18] + adds r0, 6 + str r0, [sp, 0x18] + bx lr + +/* + * exit: Terminate emulator + * @r0: 0 - failure, 1 - success + */ +exit: + movs r1, 0 + cmp r0, 1 + bne 1f + ldr r1, ADP_Stopped_ApplicationExit +1: + movs r0, SYS_EXIT + semihosting_call +.align 2 +ADP_Stopped_ApplicationExit: + .word 0x20026 diff --git a/tests/tcg/arm/test-armv6m-undef.ld b/tests/tcg/arm/test-armv6m-undef.ld new file mode 100644 index 0000000000..43dbbf17d5 --- /dev/null +++ b/tests/tcg/arm/test-armv6m-undef.ld @@ -0,0 +1,21 @@ +ENTRY(exc_reset_thumb) + +SECTIONS +{ + . = 0x0; + .text : { + *(.text) + } + .data : { + *(.data) + } + .rodata : { + *(.rodata) + } + .bss : { + *(.bss) + } + /DISCARD/ : { + *(.ARM.attributes) + } +} From patchwork Thu Feb 28 20:25:30 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: 159436 Delivered-To: patch@linaro.org Received: by 2002:a02:5cc1:0:0:0:0:0 with SMTP id w62csp1088698jad; Thu, 28 Feb 2019 12:29:43 -0800 (PST) X-Google-Smtp-Source: APXvYqzv/YIQXbetdNw1oQBxJGrPWX4UYggSYX8umLJoDP0qHhT7S+fF735if+h4JrxlmyN3kv5t X-Received: by 2002:a25:34d3:: with SMTP id b202mr1272502yba.188.1551385783697; Thu, 28 Feb 2019 12:29:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551385783; cv=none; d=google.com; s=arc-20160816; b=zWPPSeOgayJLCsFinNK07f9IaROwqGXF4XAyy0iRCvCsrAUyvTcbsUSgGd14gtdpba A7UNfQ+1LvH+jEIzML/3TfwGrZLeOA+TEhGhznln7tTjmhrDXo5BVwn891Wi0yEkHbzV 73lbo9QoLd40XqMzEwbWqfWM5l8Vitm5UMNXzFmdnnkWxjcHV6n2k0/pBpVyK8Yj4V9P X8zNYMB1GXt+U/Jpvx6l7EEaddUTA/w9EPYvmvQZSmfW7PJreeKUNd9z0VOL8hfRNbWU duhLmpYNGAw2eszfQE2sRqNqSTdX0qVx5wqHRyTKDuKckxIgW4jmaP6TzTI02KelPR0z KnZQ== 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=pAjTk7wWyPMv819XInqes+mFXree4x+cfQ6ntOuh1/0=; b=tp5PMZgMrno0r9NqNbgXlGaMxTwpfmmzphE5tHmNymgSxWO1pm3vHYVl11g2j0B/kT bQs8GXcfWV3967BClUHGatEXMr7nwFbLuK/XlO+ODB9Ob6kD6LhnMnhdRioAxYLuN5lE RCtL+ML8d8cS1ZNfq0klXzmT7k7e3eWtMySM9Q4ykfc5shKBFBVaPL75FvVwCnCBzofx bE7rDgsBagAm//k9olqBjApTlGpPbEWXFTPJVZAL1F6zb5cX6a0+H+9s1XhYuFfHkIF2 aL81zaIFGbYDFec+7xBoWYF8eJOHQoCS3KCCjKgcv4zwlaOvCL0KQWLQ+L8DPsQThxel pI7w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b="X//2/5nb"; 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 e206si6653400ybb.371.2019.02.28.12.29.43 for (version=TLS1 cipher=AES128-SHA bits=128/128); Thu, 28 Feb 2019 12:29:43 -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="X//2/5nb"; 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]:45995 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gzSJL-0002U8-4n for patch@linaro.org; Thu, 28 Feb 2019 15:29:43 -0500 Received: from eggs.gnu.org ([209.51.188.92]:42721) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gzSFa-0000UF-CV for qemu-devel@nongnu.org; Thu, 28 Feb 2019 15:25:51 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gzSFZ-0007Oj-Lx for qemu-devel@nongnu.org; Thu, 28 Feb 2019 15:25:50 -0500 Received: from mail-wm1-x32c.google.com ([2a00:1450:4864:20::32c]:40717) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gzSFZ-0007O2-GJ for qemu-devel@nongnu.org; Thu, 28 Feb 2019 15:25:49 -0500 Received: by mail-wm1-x32c.google.com with SMTP id g20so9427895wmh.5 for ; Thu, 28 Feb 2019 12:25:49 -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=pAjTk7wWyPMv819XInqes+mFXree4x+cfQ6ntOuh1/0=; b=X//2/5nb7AlhdZmR9l4LwAVl7QlIwYdih5JsAsbSKVwHp3q9tZfiPSHUYrclsBMj64 Q8boDyU6Q2eEckriYpnY53r6xvTUMR9bsd688HKtxZ1/AoqVB/Ae3qKPkm+Jw/ZpVDBe 6VGFvjyA+e7zJq15wH8sSm0kRe4Hu2MPjUGJtBRVUf1zVpWSbURQy+tOsmPT/ZbZ2t0j /7QHQHgvZckftjEYdFzogJqiz77qXJi8IRqsJea00ZDvL+Zf+ZpphW6zQUW8AQE8E3O1 2tDzz9LL6wmgHyESczsp+97vTVOSRFk1vAZyvoZ/pvuB4J4pM6jgU3nBUJRJTe9ONndz yAwg== 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=pAjTk7wWyPMv819XInqes+mFXree4x+cfQ6ntOuh1/0=; b=cUuE3MfzaTECeMYSzfgStLHCdOM9+exRTxQsaJd5q+VjGU086SFkrPjBxM6QC0NpbK oTrShy2N+RN0xhW2bEbdbLa+TX0DH2eZgxHUuTHiPnj/BenvsLe3x4ABTTLox7bCKIur /ozWzMQAYpsfGa0mnz/IsmCLN54OA9WBbZYS0USrXZX3RTK5Lb/jsZ721/kbgG3BbSA1 mo9vC7O1hRK/v+edo9EwulT9b8YLUY1h4fhu19UPp+BwBWhUqXkjZMTbdEgK8VIqfRJ6 Y/IdE5TkBB37uvu2uF2OyD+yH/dCKnCEGx21fdT9jMujxZ7u/mb/7iik99WjxKfyjoyc 6MJA== X-Gm-Message-State: AHQUAubM8AOr/+Ms8ZjPtKdBUIpEWgO4oTnLiorliLSepME7MwAKv1k8 Tvh+ByC/YRgmenpYGsMcl1u7XQ== X-Received: by 2002:a1c:d147:: with SMTP id i68mr971959wmg.41.1551385547948; Thu, 28 Feb 2019 12:25:47 -0800 (PST) Received: from zen.linaroharston ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id d21sm54907067wrc.44.2019.02.28.12.25.40 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 28 Feb 2019 12:25:44 -0800 (PST) Received: from zen.linaroharston. (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id CD1E91FF8C; 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:30 +0000 Message-Id: <20190228202537.4638-10-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::32c Subject: [Qemu-devel] [PATCH v2 09/16] tests/docker: add fedora-cris-cross compilers 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" Signed-off-by: Alex Bennée --- tests/docker/dockerfiles/fedora-cris-cross.docker | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 tests/docker/dockerfiles/fedora-cris-cross.docker -- 2.20.1 diff --git a/tests/docker/dockerfiles/fedora-cris-cross.docker b/tests/docker/dockerfiles/fedora-cris-cross.docker new file mode 100644 index 0000000000..b168ada615 --- /dev/null +++ b/tests/docker/dockerfiles/fedora-cris-cross.docker @@ -0,0 +1,8 @@ +# +# Cross compiler for cris system tests +# + +FROM fedora:latest +ENV PACKAGES gcc-cris-linux-gnu +RUN dnf install -y $PACKAGES +RUN rpm -q $PACKAGES | sort > /packages.txt From patchwork Thu Feb 28 20:25:31 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: 159446 Delivered-To: patch@linaro.org Received: by 2002:a02:5cc1:0:0:0:0:0 with SMTP id w62csp1099489jad; Thu, 28 Feb 2019 12:41:31 -0800 (PST) X-Google-Smtp-Source: APXvYqzYodzb+j1+AUe8/fTyiq7qE8PuIctV1krOYTHTXGhOqGvenk+C0azVDfvj80s3xXRMUCkH X-Received: by 2002:a25:ba90:: with SMTP id s16mr1252615ybg.336.1551386491831; Thu, 28 Feb 2019 12:41:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551386491; cv=none; d=google.com; s=arc-20160816; b=oXlC25j3Z6gpU5Kbmmf1xHfa8Dj1MptHhvCiNRmawzWllAOTRT6ulk+RKNpWYYFo+7 uyEgAa9q4QRX2H75e7Z8bfIHxmv0eWhj/eIgZEJ+dnPGKbO/wSUBfHS7DiGNFpidiuyq oD+HD2/HowCU7u9LwIIa6R1F+q19mHBPe8A+ShSUTgFOeyxiR9EDbnaDfLJZjMUAkUCy Ep8pH+ew11FhwlTo1cKKym3kQ1oxO4ei89i6yU6kxcZcPzZhw5qTRh7GJTxOJTz8dKv3 qY2KanE5NL6UgSxTsj/OfOm06xqeT02MaEfEyWYEZjHkLuoXz3bMLnufIZeA51R6qO8A OzIA== 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=1NT8wLYrOo4YLp0/p2Wevas7OSKsfTh86H7g/dcsnjo=; b=uTLUw/tZjxHuWd6djtOub8f87ngYSmAd7mFT1fVt4J67SpflvhhvpcMOCStzxZNJAl PYbSmWLCQ+z3ST2Zx6zqz+jVRljD5hLHZzhrTYzeG3Wb8342ikZ8WOfsmK9CJp59p6Zo KDJlQtkbWyKWuO5phwlKbZAiNZvbrPzf9MKG/FiVy05GtNedV7nbzorFew4wtoQMbPpD sPaAfO1Cp2/w3y8p4JpP0ie51onaV1pt76L4AC+b4GT8PHgMriKwumItuwgx3VPWQMC0 4RY0qLW1LScy5EzU1v1I6cqex4j+mWjBx53laQHo7VZyogtl94TcMfB/h+Smw+4IG5L2 9Zng== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=fvhsWR8K; 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 201si7678017ybl.381.2019.02.28.12.41.31 for (version=TLS1 cipher=AES128-SHA bits=128/128); Thu, 28 Feb 2019 12:41:31 -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=fvhsWR8K; 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]:46217 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gzSUl-0003PB-8W for patch@linaro.org; Thu, 28 Feb 2019 15:41:31 -0500 Received: from eggs.gnu.org ([209.51.188.92]:42817) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gzSFh-0000eA-0h for qemu-devel@nongnu.org; Thu, 28 Feb 2019 15:26:01 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gzSFc-0007Qo-0c for qemu-devel@nongnu.org; Thu, 28 Feb 2019 15:25:56 -0500 Received: from mail-wr1-x441.google.com ([2a00:1450:4864:20::441]:43114) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gzSFb-0007Q0-Hq for qemu-devel@nongnu.org; Thu, 28 Feb 2019 15:25:51 -0500 Received: by mail-wr1-x441.google.com with SMTP id d17so23389617wre.10 for ; Thu, 28 Feb 2019 12:25:51 -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=1NT8wLYrOo4YLp0/p2Wevas7OSKsfTh86H7g/dcsnjo=; b=fvhsWR8KvotYj6Z53Y1nWM5o5PwB1AXO0HyJh/+IotKEMcmPnjCUhLUC34rD1Sa2WC NQL4iLld+jut5Tasw/JhWpR8nuVsRZ0w5eVKnr9gGz5Gs1bf/L3xkWENlTjG658PdkcY vsEI9+hsk3eWpnmzqpccoY8DzZMHUlck+EKG3+g+U4QGGtQbbyNqrl6+cc5W31kkMY1M zgoWYqZRowz7FEpeKguSssJuoEIAvXYzhYOrvELBkEzmir3iBX/jHgO0WLfRbwoTOZC9 QlOvx6v2x4R8OXDNw0CoQgACAO2hOafOUxIWsqW/TddvnXlM5OzMtnynuS84ZGn4sEiv OIZA== 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=1NT8wLYrOo4YLp0/p2Wevas7OSKsfTh86H7g/dcsnjo=; b=izOtHbbXyyUmncT5G6OGMXL+rSalGreib4q38vW6e+B93pOrUkcx0ffAP5tb4llhxH lpVyFDJielQBuYzJzf0+5O8jEfY3p8Nr6VKrwZpAXg9oUi8fF7rcAyCqpFK/NaxymVo5 lWGeibX8tB6vNEeY8M8wdNjnMATkDCKJuYZSEgXqTxg2+YFQcTSTy2Yidx5jvr9WiCBQ 4gJFXL0uswHOzIt/ot7WZUybs7CNOJYN0iPXoLss6qUl+NxWTOQiha3HVK5DZhBSNMcG nTSZyp9FxS86itkzqyaBHhNQ0yaE4iIJrZeD+x7hMhd2kJLkyndajDqnelDM64f+/KnR h+sA== X-Gm-Message-State: APjAAAV8IeYWetw6nJjkV/pKPmGF0RvjXKs2hMbNjxlJNvESuYvnOypV EyFtStJ6w2LJO7AvWWo+Tno67Q== X-Received: by 2002:adf:f487:: with SMTP id l7mr821849wro.86.1551385550161; Thu, 28 Feb 2019 12:25:50 -0800 (PST) Received: from zen.linaroharston ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id i12sm30997071wrq.21.2019.02.28.12.25.40 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 28 Feb 2019 12:25:44 -0800 (PST) Received: from zen.linaroharston. (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id D90091FF8D; 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:31 +0000 Message-Id: <20190228202537.4638-11-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::441 Subject: [Qemu-devel] [PATCH v2 10/16] tests/tcg: split cris tests into bare and libc directories 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" Bare tests are standalone assembly tests that don't require linking to any libc and hence can be built with kernel only compilers. The libc tests need a compiler capable of building properly linked userspace binaries. As we don't have such a cross compiler at the moment we won't be building those tests. Signed-off-by: Alex Bennée --- v2 - split between bare/libc instead of system/user --- tests/tcg/cris/{ => bare}/check_addcv17.s | 0 tests/tcg/cris/{ => bare}/check_addi.s | 0 tests/tcg/cris/{ => bare}/check_addiv32.s | 0 tests/tcg/cris/{ => bare}/check_addm.s | 0 tests/tcg/cris/{ => bare}/check_addq.s | 0 tests/tcg/cris/{ => bare}/check_addr.s | 0 tests/tcg/cris/{ => bare}/check_addxc.s | 0 tests/tcg/cris/{ => bare}/check_addxm.s | 0 tests/tcg/cris/{ => bare}/check_addxr.s | 0 tests/tcg/cris/{ => bare}/check_andc.s | 0 tests/tcg/cris/{ => bare}/check_andm.s | 0 tests/tcg/cris/{ => bare}/check_andq.s | 0 tests/tcg/cris/{ => bare}/check_andr.s | 0 tests/tcg/cris/{ => bare}/check_asr.s | 0 tests/tcg/cris/{ => bare}/check_ba.s | 0 tests/tcg/cris/{ => bare}/check_bas.s | 0 tests/tcg/cris/{ => bare}/check_bcc.s | 0 tests/tcg/cris/{ => bare}/check_boundc.s | 0 tests/tcg/cris/{ => bare}/check_boundr.s | 0 tests/tcg/cris/{ => bare}/check_btst.s | 0 tests/tcg/cris/{ => bare}/check_clearfv32.s | 0 tests/tcg/cris/{ => bare}/check_clrjmp1.s | 0 tests/tcg/cris/{ => bare}/check_cmp-2.s | 0 tests/tcg/cris/{ => bare}/check_cmpc.s | 0 tests/tcg/cris/{ => bare}/check_cmpm.s | 0 tests/tcg/cris/{ => bare}/check_cmpq.s | 0 tests/tcg/cris/{ => bare}/check_cmpr.s | 0 tests/tcg/cris/{ => bare}/check_cmpxc.s | 0 tests/tcg/cris/{ => bare}/check_cmpxm.s | 0 tests/tcg/cris/{ => bare}/check_dstep.s | 0 tests/tcg/cris/{ => bare}/check_jsr.s | 0 tests/tcg/cris/{ => bare}/check_lapc.s | 0 tests/tcg/cris/{ => bare}/check_lsl.s | 0 tests/tcg/cris/{ => bare}/check_lsr.s | 0 tests/tcg/cris/{ => bare}/check_mcp.s | 0 tests/tcg/cris/{ => bare}/check_movdelsr1.s | 0 tests/tcg/cris/{ => bare}/check_movecr.s | 0 tests/tcg/cris/{ => bare}/check_movei.s | 0 tests/tcg/cris/{ => bare}/check_movemr.s | 0 tests/tcg/cris/{ => bare}/check_movemrv32.s | 0 tests/tcg/cris/{ => bare}/check_mover.s | 0 tests/tcg/cris/{ => bare}/check_moverm.s | 0 tests/tcg/cris/{ => bare}/check_movmp.s | 0 tests/tcg/cris/{ => bare}/check_movpmv32.s | 0 tests/tcg/cris/{ => bare}/check_movpr.s | 0 tests/tcg/cris/{ => bare}/check_movprv32.s | 0 tests/tcg/cris/{ => bare}/check_movscr.s | 0 tests/tcg/cris/{ => bare}/check_movsm.s | 0 tests/tcg/cris/{ => bare}/check_movsr.s | 0 tests/tcg/cris/{ => bare}/check_movucr.s | 0 tests/tcg/cris/{ => bare}/check_movum.s | 0 tests/tcg/cris/{ => bare}/check_movur.s | 0 tests/tcg/cris/{ => bare}/check_mulv32.s | 0 tests/tcg/cris/{ => bare}/check_mulx.s | 0 tests/tcg/cris/{ => bare}/check_neg.s | 0 tests/tcg/cris/{ => bare}/check_not.s | 0 tests/tcg/cris/{ => bare}/check_orc.s | 0 tests/tcg/cris/{ => bare}/check_orm.s | 0 tests/tcg/cris/{ => bare}/check_orq.s | 0 tests/tcg/cris/{ => bare}/check_orr.s | 0 tests/tcg/cris/{ => bare}/check_ret.s | 0 tests/tcg/cris/{ => bare}/check_scc.s | 0 tests/tcg/cris/{ => bare}/check_subc.s | 0 tests/tcg/cris/{ => bare}/check_subm.s | 0 tests/tcg/cris/{ => bare}/check_subq.s | 0 tests/tcg/cris/{ => bare}/check_subr.s | 0 tests/tcg/cris/{ => bare}/check_xarith.s | 0 tests/tcg/cris/{ => bare}/crt.s | 0 tests/tcg/cris/{ => bare}/sys.c | 0 tests/tcg/cris/{ => bare}/testutils.inc | 0 tests/tcg/cris/{ => libc}/check_abs.c | 0 tests/tcg/cris/{ => libc}/check_addc.c | 0 tests/tcg/cris/{ => libc}/check_addcm.c | 0 tests/tcg/cris/{ => libc}/check_addo.c | 0 tests/tcg/cris/{ => libc}/check_addoq.c | 0 tests/tcg/cris/{ => libc}/check_bound.c | 0 tests/tcg/cris/{ => libc}/check_ftag.c | 0 .../{ => libc}/check_gcctorture_pr28634-1.c | 0 .../{ => libc}/check_gcctorture_pr28634.c | 0 .../{ => libc}/check_glibc_kernelversion.c | 0 tests/tcg/cris/{ => libc}/check_hello.c | 0 tests/tcg/cris/{ => libc}/check_int64.c | 0 tests/tcg/cris/{ => libc}/check_lz.c | 0 tests/tcg/cris/{ => libc}/check_mapbrk.c | 0 tests/tcg/cris/{ => libc}/check_mmap1.c | 0 tests/tcg/cris/{ => libc}/check_mmap2.c | 0 tests/tcg/cris/{ => libc}/check_mmap3.c | 0 tests/tcg/cris/{ => libc}/check_moveq.c | 0 tests/tcg/cris/{ => libc}/check_openpf1.c | 0 tests/tcg/cris/{ => libc}/check_openpf2.c | 0 tests/tcg/cris/{ => libc}/check_openpf3.c | 0 tests/tcg/cris/{ => libc}/check_openpf5.c | 0 tests/tcg/cris/{ => libc}/check_settls1.c | 0 tests/tcg/cris/{ => libc}/check_sigalrm.c | 0 tests/tcg/cris/{ => libc}/check_stat1.c | 0 tests/tcg/cris/{ => libc}/check_stat2.c | 0 tests/tcg/cris/{ => libc}/check_stat3.c | 0 tests/tcg/cris/{ => libc}/check_stat4.c | 0 tests/tcg/cris/{ => libc}/check_swap.c | 0 tests/tcg/cris/{ => libc}/check_time2.c | 0 tests/tcg/cris/{ => libc}/crisutils.h | 0 tests/tcg/cris/libc/sys.c | 58 +++++++++++++++++++ tests/tcg/cris/{ => libc}/sys.h | 0 103 files changed, 58 insertions(+) rename tests/tcg/cris/{ => bare}/check_addcv17.s (100%) rename tests/tcg/cris/{ => bare}/check_addi.s (100%) rename tests/tcg/cris/{ => bare}/check_addiv32.s (100%) rename tests/tcg/cris/{ => bare}/check_addm.s (100%) rename tests/tcg/cris/{ => bare}/check_addq.s (100%) rename tests/tcg/cris/{ => bare}/check_addr.s (100%) rename tests/tcg/cris/{ => bare}/check_addxc.s (100%) rename tests/tcg/cris/{ => bare}/check_addxm.s (100%) rename tests/tcg/cris/{ => bare}/check_addxr.s (100%) rename tests/tcg/cris/{ => bare}/check_andc.s (100%) rename tests/tcg/cris/{ => bare}/check_andm.s (100%) rename tests/tcg/cris/{ => bare}/check_andq.s (100%) rename tests/tcg/cris/{ => bare}/check_andr.s (100%) rename tests/tcg/cris/{ => bare}/check_asr.s (100%) rename tests/tcg/cris/{ => bare}/check_ba.s (100%) rename tests/tcg/cris/{ => bare}/check_bas.s (100%) rename tests/tcg/cris/{ => bare}/check_bcc.s (100%) rename tests/tcg/cris/{ => bare}/check_boundc.s (100%) rename tests/tcg/cris/{ => bare}/check_boundr.s (100%) rename tests/tcg/cris/{ => bare}/check_btst.s (100%) rename tests/tcg/cris/{ => bare}/check_clearfv32.s (100%) rename tests/tcg/cris/{ => bare}/check_clrjmp1.s (100%) rename tests/tcg/cris/{ => bare}/check_cmp-2.s (100%) rename tests/tcg/cris/{ => bare}/check_cmpc.s (100%) rename tests/tcg/cris/{ => bare}/check_cmpm.s (100%) rename tests/tcg/cris/{ => bare}/check_cmpq.s (100%) rename tests/tcg/cris/{ => bare}/check_cmpr.s (100%) rename tests/tcg/cris/{ => bare}/check_cmpxc.s (100%) rename tests/tcg/cris/{ => bare}/check_cmpxm.s (100%) rename tests/tcg/cris/{ => bare}/check_dstep.s (100%) rename tests/tcg/cris/{ => bare}/check_jsr.s (100%) rename tests/tcg/cris/{ => bare}/check_lapc.s (100%) rename tests/tcg/cris/{ => bare}/check_lsl.s (100%) rename tests/tcg/cris/{ => bare}/check_lsr.s (100%) rename tests/tcg/cris/{ => bare}/check_mcp.s (100%) rename tests/tcg/cris/{ => bare}/check_movdelsr1.s (100%) rename tests/tcg/cris/{ => bare}/check_movecr.s (100%) rename tests/tcg/cris/{ => bare}/check_movei.s (100%) rename tests/tcg/cris/{ => bare}/check_movemr.s (100%) rename tests/tcg/cris/{ => bare}/check_movemrv32.s (100%) rename tests/tcg/cris/{ => bare}/check_mover.s (100%) rename tests/tcg/cris/{ => bare}/check_moverm.s (100%) rename tests/tcg/cris/{ => bare}/check_movmp.s (100%) rename tests/tcg/cris/{ => bare}/check_movpmv32.s (100%) rename tests/tcg/cris/{ => bare}/check_movpr.s (100%) rename tests/tcg/cris/{ => bare}/check_movprv32.s (100%) rename tests/tcg/cris/{ => bare}/check_movscr.s (100%) rename tests/tcg/cris/{ => bare}/check_movsm.s (100%) rename tests/tcg/cris/{ => bare}/check_movsr.s (100%) rename tests/tcg/cris/{ => bare}/check_movucr.s (100%) rename tests/tcg/cris/{ => bare}/check_movum.s (100%) rename tests/tcg/cris/{ => bare}/check_movur.s (100%) rename tests/tcg/cris/{ => bare}/check_mulv32.s (100%) rename tests/tcg/cris/{ => bare}/check_mulx.s (100%) rename tests/tcg/cris/{ => bare}/check_neg.s (100%) rename tests/tcg/cris/{ => bare}/check_not.s (100%) rename tests/tcg/cris/{ => bare}/check_orc.s (100%) rename tests/tcg/cris/{ => bare}/check_orm.s (100%) rename tests/tcg/cris/{ => bare}/check_orq.s (100%) rename tests/tcg/cris/{ => bare}/check_orr.s (100%) rename tests/tcg/cris/{ => bare}/check_ret.s (100%) rename tests/tcg/cris/{ => bare}/check_scc.s (100%) rename tests/tcg/cris/{ => bare}/check_subc.s (100%) rename tests/tcg/cris/{ => bare}/check_subm.s (100%) rename tests/tcg/cris/{ => bare}/check_subq.s (100%) rename tests/tcg/cris/{ => bare}/check_subr.s (100%) rename tests/tcg/cris/{ => bare}/check_xarith.s (100%) rename tests/tcg/cris/{ => bare}/crt.s (100%) rename tests/tcg/cris/{ => bare}/sys.c (100%) rename tests/tcg/cris/{ => bare}/testutils.inc (100%) rename tests/tcg/cris/{ => libc}/check_abs.c (100%) rename tests/tcg/cris/{ => libc}/check_addc.c (100%) rename tests/tcg/cris/{ => libc}/check_addcm.c (100%) rename tests/tcg/cris/{ => libc}/check_addo.c (100%) rename tests/tcg/cris/{ => libc}/check_addoq.c (100%) rename tests/tcg/cris/{ => libc}/check_bound.c (100%) rename tests/tcg/cris/{ => libc}/check_ftag.c (100%) rename tests/tcg/cris/{ => libc}/check_gcctorture_pr28634-1.c (100%) rename tests/tcg/cris/{ => libc}/check_gcctorture_pr28634.c (100%) rename tests/tcg/cris/{ => libc}/check_glibc_kernelversion.c (100%) rename tests/tcg/cris/{ => libc}/check_hello.c (100%) rename tests/tcg/cris/{ => libc}/check_int64.c (100%) rename tests/tcg/cris/{ => libc}/check_lz.c (100%) rename tests/tcg/cris/{ => libc}/check_mapbrk.c (100%) rename tests/tcg/cris/{ => libc}/check_mmap1.c (100%) rename tests/tcg/cris/{ => libc}/check_mmap2.c (100%) rename tests/tcg/cris/{ => libc}/check_mmap3.c (100%) rename tests/tcg/cris/{ => libc}/check_moveq.c (100%) rename tests/tcg/cris/{ => libc}/check_openpf1.c (100%) rename tests/tcg/cris/{ => libc}/check_openpf2.c (100%) rename tests/tcg/cris/{ => libc}/check_openpf3.c (100%) rename tests/tcg/cris/{ => libc}/check_openpf5.c (100%) rename tests/tcg/cris/{ => libc}/check_settls1.c (100%) rename tests/tcg/cris/{ => libc}/check_sigalrm.c (100%) rename tests/tcg/cris/{ => libc}/check_stat1.c (100%) rename tests/tcg/cris/{ => libc}/check_stat2.c (100%) rename tests/tcg/cris/{ => libc}/check_stat3.c (100%) rename tests/tcg/cris/{ => libc}/check_stat4.c (100%) rename tests/tcg/cris/{ => libc}/check_swap.c (100%) rename tests/tcg/cris/{ => libc}/check_time2.c (100%) rename tests/tcg/cris/{ => libc}/crisutils.h (100%) create mode 100644 tests/tcg/cris/libc/sys.c rename tests/tcg/cris/{ => libc}/sys.h (100%) -- 2.20.1 diff --git a/tests/tcg/cris/check_addcv17.s b/tests/tcg/cris/bare/check_addcv17.s similarity index 100% rename from tests/tcg/cris/check_addcv17.s rename to tests/tcg/cris/bare/check_addcv17.s diff --git a/tests/tcg/cris/check_addi.s b/tests/tcg/cris/bare/check_addi.s similarity index 100% rename from tests/tcg/cris/check_addi.s rename to tests/tcg/cris/bare/check_addi.s diff --git a/tests/tcg/cris/check_addiv32.s b/tests/tcg/cris/bare/check_addiv32.s similarity index 100% rename from tests/tcg/cris/check_addiv32.s rename to tests/tcg/cris/bare/check_addiv32.s diff --git a/tests/tcg/cris/check_addm.s b/tests/tcg/cris/bare/check_addm.s similarity index 100% rename from tests/tcg/cris/check_addm.s rename to tests/tcg/cris/bare/check_addm.s diff --git a/tests/tcg/cris/check_addq.s b/tests/tcg/cris/bare/check_addq.s similarity index 100% rename from tests/tcg/cris/check_addq.s rename to tests/tcg/cris/bare/check_addq.s diff --git a/tests/tcg/cris/check_addr.s b/tests/tcg/cris/bare/check_addr.s similarity index 100% rename from tests/tcg/cris/check_addr.s rename to tests/tcg/cris/bare/check_addr.s diff --git a/tests/tcg/cris/check_addxc.s b/tests/tcg/cris/bare/check_addxc.s similarity index 100% rename from tests/tcg/cris/check_addxc.s rename to tests/tcg/cris/bare/check_addxc.s diff --git a/tests/tcg/cris/check_addxm.s b/tests/tcg/cris/bare/check_addxm.s similarity index 100% rename from tests/tcg/cris/check_addxm.s rename to tests/tcg/cris/bare/check_addxm.s diff --git a/tests/tcg/cris/check_addxr.s b/tests/tcg/cris/bare/check_addxr.s similarity index 100% rename from tests/tcg/cris/check_addxr.s rename to tests/tcg/cris/bare/check_addxr.s diff --git a/tests/tcg/cris/check_andc.s b/tests/tcg/cris/bare/check_andc.s similarity index 100% rename from tests/tcg/cris/check_andc.s rename to tests/tcg/cris/bare/check_andc.s diff --git a/tests/tcg/cris/check_andm.s b/tests/tcg/cris/bare/check_andm.s similarity index 100% rename from tests/tcg/cris/check_andm.s rename to tests/tcg/cris/bare/check_andm.s diff --git a/tests/tcg/cris/check_andq.s b/tests/tcg/cris/bare/check_andq.s similarity index 100% rename from tests/tcg/cris/check_andq.s rename to tests/tcg/cris/bare/check_andq.s diff --git a/tests/tcg/cris/check_andr.s b/tests/tcg/cris/bare/check_andr.s similarity index 100% rename from tests/tcg/cris/check_andr.s rename to tests/tcg/cris/bare/check_andr.s diff --git a/tests/tcg/cris/check_asr.s b/tests/tcg/cris/bare/check_asr.s similarity index 100% rename from tests/tcg/cris/check_asr.s rename to tests/tcg/cris/bare/check_asr.s diff --git a/tests/tcg/cris/check_ba.s b/tests/tcg/cris/bare/check_ba.s similarity index 100% rename from tests/tcg/cris/check_ba.s rename to tests/tcg/cris/bare/check_ba.s diff --git a/tests/tcg/cris/check_bas.s b/tests/tcg/cris/bare/check_bas.s similarity index 100% rename from tests/tcg/cris/check_bas.s rename to tests/tcg/cris/bare/check_bas.s diff --git a/tests/tcg/cris/check_bcc.s b/tests/tcg/cris/bare/check_bcc.s similarity index 100% rename from tests/tcg/cris/check_bcc.s rename to tests/tcg/cris/bare/check_bcc.s diff --git a/tests/tcg/cris/check_boundc.s b/tests/tcg/cris/bare/check_boundc.s similarity index 100% rename from tests/tcg/cris/check_boundc.s rename to tests/tcg/cris/bare/check_boundc.s diff --git a/tests/tcg/cris/check_boundr.s b/tests/tcg/cris/bare/check_boundr.s similarity index 100% rename from tests/tcg/cris/check_boundr.s rename to tests/tcg/cris/bare/check_boundr.s diff --git a/tests/tcg/cris/check_btst.s b/tests/tcg/cris/bare/check_btst.s similarity index 100% rename from tests/tcg/cris/check_btst.s rename to tests/tcg/cris/bare/check_btst.s diff --git a/tests/tcg/cris/check_clearfv32.s b/tests/tcg/cris/bare/check_clearfv32.s similarity index 100% rename from tests/tcg/cris/check_clearfv32.s rename to tests/tcg/cris/bare/check_clearfv32.s diff --git a/tests/tcg/cris/check_clrjmp1.s b/tests/tcg/cris/bare/check_clrjmp1.s similarity index 100% rename from tests/tcg/cris/check_clrjmp1.s rename to tests/tcg/cris/bare/check_clrjmp1.s diff --git a/tests/tcg/cris/check_cmp-2.s b/tests/tcg/cris/bare/check_cmp-2.s similarity index 100% rename from tests/tcg/cris/check_cmp-2.s rename to tests/tcg/cris/bare/check_cmp-2.s diff --git a/tests/tcg/cris/check_cmpc.s b/tests/tcg/cris/bare/check_cmpc.s similarity index 100% rename from tests/tcg/cris/check_cmpc.s rename to tests/tcg/cris/bare/check_cmpc.s diff --git a/tests/tcg/cris/check_cmpm.s b/tests/tcg/cris/bare/check_cmpm.s similarity index 100% rename from tests/tcg/cris/check_cmpm.s rename to tests/tcg/cris/bare/check_cmpm.s diff --git a/tests/tcg/cris/check_cmpq.s b/tests/tcg/cris/bare/check_cmpq.s similarity index 100% rename from tests/tcg/cris/check_cmpq.s rename to tests/tcg/cris/bare/check_cmpq.s diff --git a/tests/tcg/cris/check_cmpr.s b/tests/tcg/cris/bare/check_cmpr.s similarity index 100% rename from tests/tcg/cris/check_cmpr.s rename to tests/tcg/cris/bare/check_cmpr.s diff --git a/tests/tcg/cris/check_cmpxc.s b/tests/tcg/cris/bare/check_cmpxc.s similarity index 100% rename from tests/tcg/cris/check_cmpxc.s rename to tests/tcg/cris/bare/check_cmpxc.s diff --git a/tests/tcg/cris/check_cmpxm.s b/tests/tcg/cris/bare/check_cmpxm.s similarity index 100% rename from tests/tcg/cris/check_cmpxm.s rename to tests/tcg/cris/bare/check_cmpxm.s diff --git a/tests/tcg/cris/check_dstep.s b/tests/tcg/cris/bare/check_dstep.s similarity index 100% rename from tests/tcg/cris/check_dstep.s rename to tests/tcg/cris/bare/check_dstep.s diff --git a/tests/tcg/cris/check_jsr.s b/tests/tcg/cris/bare/check_jsr.s similarity index 100% rename from tests/tcg/cris/check_jsr.s rename to tests/tcg/cris/bare/check_jsr.s diff --git a/tests/tcg/cris/check_lapc.s b/tests/tcg/cris/bare/check_lapc.s similarity index 100% rename from tests/tcg/cris/check_lapc.s rename to tests/tcg/cris/bare/check_lapc.s diff --git a/tests/tcg/cris/check_lsl.s b/tests/tcg/cris/bare/check_lsl.s similarity index 100% rename from tests/tcg/cris/check_lsl.s rename to tests/tcg/cris/bare/check_lsl.s diff --git a/tests/tcg/cris/check_lsr.s b/tests/tcg/cris/bare/check_lsr.s similarity index 100% rename from tests/tcg/cris/check_lsr.s rename to tests/tcg/cris/bare/check_lsr.s diff --git a/tests/tcg/cris/check_mcp.s b/tests/tcg/cris/bare/check_mcp.s similarity index 100% rename from tests/tcg/cris/check_mcp.s rename to tests/tcg/cris/bare/check_mcp.s diff --git a/tests/tcg/cris/check_movdelsr1.s b/tests/tcg/cris/bare/check_movdelsr1.s similarity index 100% rename from tests/tcg/cris/check_movdelsr1.s rename to tests/tcg/cris/bare/check_movdelsr1.s diff --git a/tests/tcg/cris/check_movecr.s b/tests/tcg/cris/bare/check_movecr.s similarity index 100% rename from tests/tcg/cris/check_movecr.s rename to tests/tcg/cris/bare/check_movecr.s diff --git a/tests/tcg/cris/check_movei.s b/tests/tcg/cris/bare/check_movei.s similarity index 100% rename from tests/tcg/cris/check_movei.s rename to tests/tcg/cris/bare/check_movei.s diff --git a/tests/tcg/cris/check_movemr.s b/tests/tcg/cris/bare/check_movemr.s similarity index 100% rename from tests/tcg/cris/check_movemr.s rename to tests/tcg/cris/bare/check_movemr.s diff --git a/tests/tcg/cris/check_movemrv32.s b/tests/tcg/cris/bare/check_movemrv32.s similarity index 100% rename from tests/tcg/cris/check_movemrv32.s rename to tests/tcg/cris/bare/check_movemrv32.s diff --git a/tests/tcg/cris/check_mover.s b/tests/tcg/cris/bare/check_mover.s similarity index 100% rename from tests/tcg/cris/check_mover.s rename to tests/tcg/cris/bare/check_mover.s diff --git a/tests/tcg/cris/check_moverm.s b/tests/tcg/cris/bare/check_moverm.s similarity index 100% rename from tests/tcg/cris/check_moverm.s rename to tests/tcg/cris/bare/check_moverm.s diff --git a/tests/tcg/cris/check_movmp.s b/tests/tcg/cris/bare/check_movmp.s similarity index 100% rename from tests/tcg/cris/check_movmp.s rename to tests/tcg/cris/bare/check_movmp.s diff --git a/tests/tcg/cris/check_movpmv32.s b/tests/tcg/cris/bare/check_movpmv32.s similarity index 100% rename from tests/tcg/cris/check_movpmv32.s rename to tests/tcg/cris/bare/check_movpmv32.s diff --git a/tests/tcg/cris/check_movpr.s b/tests/tcg/cris/bare/check_movpr.s similarity index 100% rename from tests/tcg/cris/check_movpr.s rename to tests/tcg/cris/bare/check_movpr.s diff --git a/tests/tcg/cris/check_movprv32.s b/tests/tcg/cris/bare/check_movprv32.s similarity index 100% rename from tests/tcg/cris/check_movprv32.s rename to tests/tcg/cris/bare/check_movprv32.s diff --git a/tests/tcg/cris/check_movscr.s b/tests/tcg/cris/bare/check_movscr.s similarity index 100% rename from tests/tcg/cris/check_movscr.s rename to tests/tcg/cris/bare/check_movscr.s diff --git a/tests/tcg/cris/check_movsm.s b/tests/tcg/cris/bare/check_movsm.s similarity index 100% rename from tests/tcg/cris/check_movsm.s rename to tests/tcg/cris/bare/check_movsm.s diff --git a/tests/tcg/cris/check_movsr.s b/tests/tcg/cris/bare/check_movsr.s similarity index 100% rename from tests/tcg/cris/check_movsr.s rename to tests/tcg/cris/bare/check_movsr.s diff --git a/tests/tcg/cris/check_movucr.s b/tests/tcg/cris/bare/check_movucr.s similarity index 100% rename from tests/tcg/cris/check_movucr.s rename to tests/tcg/cris/bare/check_movucr.s diff --git a/tests/tcg/cris/check_movum.s b/tests/tcg/cris/bare/check_movum.s similarity index 100% rename from tests/tcg/cris/check_movum.s rename to tests/tcg/cris/bare/check_movum.s diff --git a/tests/tcg/cris/check_movur.s b/tests/tcg/cris/bare/check_movur.s similarity index 100% rename from tests/tcg/cris/check_movur.s rename to tests/tcg/cris/bare/check_movur.s diff --git a/tests/tcg/cris/check_mulv32.s b/tests/tcg/cris/bare/check_mulv32.s similarity index 100% rename from tests/tcg/cris/check_mulv32.s rename to tests/tcg/cris/bare/check_mulv32.s diff --git a/tests/tcg/cris/check_mulx.s b/tests/tcg/cris/bare/check_mulx.s similarity index 100% rename from tests/tcg/cris/check_mulx.s rename to tests/tcg/cris/bare/check_mulx.s diff --git a/tests/tcg/cris/check_neg.s b/tests/tcg/cris/bare/check_neg.s similarity index 100% rename from tests/tcg/cris/check_neg.s rename to tests/tcg/cris/bare/check_neg.s diff --git a/tests/tcg/cris/check_not.s b/tests/tcg/cris/bare/check_not.s similarity index 100% rename from tests/tcg/cris/check_not.s rename to tests/tcg/cris/bare/check_not.s diff --git a/tests/tcg/cris/check_orc.s b/tests/tcg/cris/bare/check_orc.s similarity index 100% rename from tests/tcg/cris/check_orc.s rename to tests/tcg/cris/bare/check_orc.s diff --git a/tests/tcg/cris/check_orm.s b/tests/tcg/cris/bare/check_orm.s similarity index 100% rename from tests/tcg/cris/check_orm.s rename to tests/tcg/cris/bare/check_orm.s diff --git a/tests/tcg/cris/check_orq.s b/tests/tcg/cris/bare/check_orq.s similarity index 100% rename from tests/tcg/cris/check_orq.s rename to tests/tcg/cris/bare/check_orq.s diff --git a/tests/tcg/cris/check_orr.s b/tests/tcg/cris/bare/check_orr.s similarity index 100% rename from tests/tcg/cris/check_orr.s rename to tests/tcg/cris/bare/check_orr.s diff --git a/tests/tcg/cris/check_ret.s b/tests/tcg/cris/bare/check_ret.s similarity index 100% rename from tests/tcg/cris/check_ret.s rename to tests/tcg/cris/bare/check_ret.s diff --git a/tests/tcg/cris/check_scc.s b/tests/tcg/cris/bare/check_scc.s similarity index 100% rename from tests/tcg/cris/check_scc.s rename to tests/tcg/cris/bare/check_scc.s diff --git a/tests/tcg/cris/check_subc.s b/tests/tcg/cris/bare/check_subc.s similarity index 100% rename from tests/tcg/cris/check_subc.s rename to tests/tcg/cris/bare/check_subc.s diff --git a/tests/tcg/cris/check_subm.s b/tests/tcg/cris/bare/check_subm.s similarity index 100% rename from tests/tcg/cris/check_subm.s rename to tests/tcg/cris/bare/check_subm.s diff --git a/tests/tcg/cris/check_subq.s b/tests/tcg/cris/bare/check_subq.s similarity index 100% rename from tests/tcg/cris/check_subq.s rename to tests/tcg/cris/bare/check_subq.s diff --git a/tests/tcg/cris/check_subr.s b/tests/tcg/cris/bare/check_subr.s similarity index 100% rename from tests/tcg/cris/check_subr.s rename to tests/tcg/cris/bare/check_subr.s diff --git a/tests/tcg/cris/check_xarith.s b/tests/tcg/cris/bare/check_xarith.s similarity index 100% rename from tests/tcg/cris/check_xarith.s rename to tests/tcg/cris/bare/check_xarith.s diff --git a/tests/tcg/cris/crt.s b/tests/tcg/cris/bare/crt.s similarity index 100% rename from tests/tcg/cris/crt.s rename to tests/tcg/cris/bare/crt.s diff --git a/tests/tcg/cris/sys.c b/tests/tcg/cris/bare/sys.c similarity index 100% rename from tests/tcg/cris/sys.c rename to tests/tcg/cris/bare/sys.c diff --git a/tests/tcg/cris/testutils.inc b/tests/tcg/cris/bare/testutils.inc similarity index 100% rename from tests/tcg/cris/testutils.inc rename to tests/tcg/cris/bare/testutils.inc diff --git a/tests/tcg/cris/check_abs.c b/tests/tcg/cris/libc/check_abs.c similarity index 100% rename from tests/tcg/cris/check_abs.c rename to tests/tcg/cris/libc/check_abs.c diff --git a/tests/tcg/cris/check_addc.c b/tests/tcg/cris/libc/check_addc.c similarity index 100% rename from tests/tcg/cris/check_addc.c rename to tests/tcg/cris/libc/check_addc.c diff --git a/tests/tcg/cris/check_addcm.c b/tests/tcg/cris/libc/check_addcm.c similarity index 100% rename from tests/tcg/cris/check_addcm.c rename to tests/tcg/cris/libc/check_addcm.c diff --git a/tests/tcg/cris/check_addo.c b/tests/tcg/cris/libc/check_addo.c similarity index 100% rename from tests/tcg/cris/check_addo.c rename to tests/tcg/cris/libc/check_addo.c diff --git a/tests/tcg/cris/check_addoq.c b/tests/tcg/cris/libc/check_addoq.c similarity index 100% rename from tests/tcg/cris/check_addoq.c rename to tests/tcg/cris/libc/check_addoq.c diff --git a/tests/tcg/cris/check_bound.c b/tests/tcg/cris/libc/check_bound.c similarity index 100% rename from tests/tcg/cris/check_bound.c rename to tests/tcg/cris/libc/check_bound.c diff --git a/tests/tcg/cris/check_ftag.c b/tests/tcg/cris/libc/check_ftag.c similarity index 100% rename from tests/tcg/cris/check_ftag.c rename to tests/tcg/cris/libc/check_ftag.c diff --git a/tests/tcg/cris/check_gcctorture_pr28634-1.c b/tests/tcg/cris/libc/check_gcctorture_pr28634-1.c similarity index 100% rename from tests/tcg/cris/check_gcctorture_pr28634-1.c rename to tests/tcg/cris/libc/check_gcctorture_pr28634-1.c diff --git a/tests/tcg/cris/check_gcctorture_pr28634.c b/tests/tcg/cris/libc/check_gcctorture_pr28634.c similarity index 100% rename from tests/tcg/cris/check_gcctorture_pr28634.c rename to tests/tcg/cris/libc/check_gcctorture_pr28634.c diff --git a/tests/tcg/cris/check_glibc_kernelversion.c b/tests/tcg/cris/libc/check_glibc_kernelversion.c similarity index 100% rename from tests/tcg/cris/check_glibc_kernelversion.c rename to tests/tcg/cris/libc/check_glibc_kernelversion.c diff --git a/tests/tcg/cris/check_hello.c b/tests/tcg/cris/libc/check_hello.c similarity index 100% rename from tests/tcg/cris/check_hello.c rename to tests/tcg/cris/libc/check_hello.c diff --git a/tests/tcg/cris/check_int64.c b/tests/tcg/cris/libc/check_int64.c similarity index 100% rename from tests/tcg/cris/check_int64.c rename to tests/tcg/cris/libc/check_int64.c diff --git a/tests/tcg/cris/check_lz.c b/tests/tcg/cris/libc/check_lz.c similarity index 100% rename from tests/tcg/cris/check_lz.c rename to tests/tcg/cris/libc/check_lz.c diff --git a/tests/tcg/cris/check_mapbrk.c b/tests/tcg/cris/libc/check_mapbrk.c similarity index 100% rename from tests/tcg/cris/check_mapbrk.c rename to tests/tcg/cris/libc/check_mapbrk.c diff --git a/tests/tcg/cris/check_mmap1.c b/tests/tcg/cris/libc/check_mmap1.c similarity index 100% rename from tests/tcg/cris/check_mmap1.c rename to tests/tcg/cris/libc/check_mmap1.c diff --git a/tests/tcg/cris/check_mmap2.c b/tests/tcg/cris/libc/check_mmap2.c similarity index 100% rename from tests/tcg/cris/check_mmap2.c rename to tests/tcg/cris/libc/check_mmap2.c diff --git a/tests/tcg/cris/check_mmap3.c b/tests/tcg/cris/libc/check_mmap3.c similarity index 100% rename from tests/tcg/cris/check_mmap3.c rename to tests/tcg/cris/libc/check_mmap3.c diff --git a/tests/tcg/cris/check_moveq.c b/tests/tcg/cris/libc/check_moveq.c similarity index 100% rename from tests/tcg/cris/check_moveq.c rename to tests/tcg/cris/libc/check_moveq.c diff --git a/tests/tcg/cris/check_openpf1.c b/tests/tcg/cris/libc/check_openpf1.c similarity index 100% rename from tests/tcg/cris/check_openpf1.c rename to tests/tcg/cris/libc/check_openpf1.c diff --git a/tests/tcg/cris/check_openpf2.c b/tests/tcg/cris/libc/check_openpf2.c similarity index 100% rename from tests/tcg/cris/check_openpf2.c rename to tests/tcg/cris/libc/check_openpf2.c diff --git a/tests/tcg/cris/check_openpf3.c b/tests/tcg/cris/libc/check_openpf3.c similarity index 100% rename from tests/tcg/cris/check_openpf3.c rename to tests/tcg/cris/libc/check_openpf3.c diff --git a/tests/tcg/cris/check_openpf5.c b/tests/tcg/cris/libc/check_openpf5.c similarity index 100% rename from tests/tcg/cris/check_openpf5.c rename to tests/tcg/cris/libc/check_openpf5.c diff --git a/tests/tcg/cris/check_settls1.c b/tests/tcg/cris/libc/check_settls1.c similarity index 100% rename from tests/tcg/cris/check_settls1.c rename to tests/tcg/cris/libc/check_settls1.c diff --git a/tests/tcg/cris/check_sigalrm.c b/tests/tcg/cris/libc/check_sigalrm.c similarity index 100% rename from tests/tcg/cris/check_sigalrm.c rename to tests/tcg/cris/libc/check_sigalrm.c diff --git a/tests/tcg/cris/check_stat1.c b/tests/tcg/cris/libc/check_stat1.c similarity index 100% rename from tests/tcg/cris/check_stat1.c rename to tests/tcg/cris/libc/check_stat1.c diff --git a/tests/tcg/cris/check_stat2.c b/tests/tcg/cris/libc/check_stat2.c similarity index 100% rename from tests/tcg/cris/check_stat2.c rename to tests/tcg/cris/libc/check_stat2.c diff --git a/tests/tcg/cris/check_stat3.c b/tests/tcg/cris/libc/check_stat3.c similarity index 100% rename from tests/tcg/cris/check_stat3.c rename to tests/tcg/cris/libc/check_stat3.c diff --git a/tests/tcg/cris/check_stat4.c b/tests/tcg/cris/libc/check_stat4.c similarity index 100% rename from tests/tcg/cris/check_stat4.c rename to tests/tcg/cris/libc/check_stat4.c diff --git a/tests/tcg/cris/check_swap.c b/tests/tcg/cris/libc/check_swap.c similarity index 100% rename from tests/tcg/cris/check_swap.c rename to tests/tcg/cris/libc/check_swap.c diff --git a/tests/tcg/cris/check_time2.c b/tests/tcg/cris/libc/check_time2.c similarity index 100% rename from tests/tcg/cris/check_time2.c rename to tests/tcg/cris/libc/check_time2.c diff --git a/tests/tcg/cris/crisutils.h b/tests/tcg/cris/libc/crisutils.h similarity index 100% rename from tests/tcg/cris/crisutils.h rename to tests/tcg/cris/libc/crisutils.h diff --git a/tests/tcg/cris/libc/sys.c b/tests/tcg/cris/libc/sys.c new file mode 100644 index 0000000000..b8e759eee3 --- /dev/null +++ b/tests/tcg/cris/libc/sys.c @@ -0,0 +1,58 @@ +/* + * Minilib helpers functions for system test + */ + + +void exit (int status) { + register unsigned int callno asm ("r9") = 1; /* NR_exit */ + asm volatile ("break 13\n" + : + : "r" (callno) + : "memory" ); + while(1); +} + +ssize_t write (int fd, const void *buf, size_t count) { + register unsigned int callno asm ("r9") = 4; /* NR_write */ + register unsigned int r10 asm ("r10") = fd; + register const void *r11 asm ("r11") = buf; + register size_t r12 asm ("r12") = count; + register unsigned int r asm ("r10"); + + asm volatile ("break 13\n" + : "=r" (r) + : "r" (callno), "0" (r10), "r" (r11), "r" (r12) + : "memory"); + + return r; +} + +static inline int mystrlen(char *s) { + int i = 0; + while (s[i]) + i++; + return i; +} + +void pass(void) { + char s[] = "passed.\n"; + write (1, s, sizeof (s) - 1); + exit (0); +} + +void _fail(char *reason) { + char s[] = "\nfailed: "; + int len = mystrlen(reason); + write (1, s, sizeof (s) - 1); + write (1, reason, len); + write (1, "\n", 1); +// exit (1); +} + +void *memset (void *s, int c, size_t n) { + char *p = s; + int i; + for (i = 0; i < n; i++) + p[i] = c; + return p; +} diff --git a/tests/tcg/cris/sys.h b/tests/tcg/cris/libc/sys.h similarity index 100% rename from tests/tcg/cris/sys.h rename to tests/tcg/cris/libc/sys.h From patchwork Thu Feb 28 20:25:32 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: 159441 Delivered-To: patch@linaro.org Received: by 2002:a02:5cc1:0:0:0:0:0 with SMTP id w62csp1093117jad; Thu, 28 Feb 2019 12:34:23 -0800 (PST) X-Google-Smtp-Source: APXvYqx+G/87CiAVWs6BZRJ6COvJbWkuQ9ECCk0AdDUyWyw+h43x5iOsYXJ2/Zo4ILP5CompjjgY X-Received: by 2002:a25:2d44:: with SMTP id s4mr1251871ybe.510.1551386063201; Thu, 28 Feb 2019 12:34:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551386063; cv=none; d=google.com; s=arc-20160816; b=kHJRCvWUON4rH3UyRyAs2Sa1tswz4tbHPwuDCc9d3IYXJmpTMli5SfU2NzMBsvV1PO K+4UFEbDbV5ObOD/ATAViCklVdTOmMCe2MxcnelgAzH0BH7q/xbMwORcMI7GS+JdsVZu w4qBQsqEewjfM/pAL0qC0GRF3kP/qjjEEZm4XnhYyLLwN6riM4rXT7mklJETAta/Pc2O z07DAQQ+cTzNZuPvfsCr6M8qCcSV74ZOnZs06byGjclux9FTpE4crA4MMG+HaZPk6SJ+ ZaMsapyGZlZDDdtzRTpsORnqEtA19hvVmcRcWAoR/yCFO0Y8x+Hztkn8ROSZVsO0HddY 1EFA== 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=IhmDA8Paz4xh5btvDJbvSxpnzxmgwJBv6Kvn01RZQX4=; b=nZabEVo437Do/mixqkyiu2Ltpl9bnqoUO4+gCl7H/DO44kuBcat99K0NnXVJdcnIes OS13PrJWwmD/iTctE2RlUI5xqLWfE3ZX494B7xgcUu63kt2+6Y6nbNXIYHivoNpGRpoL b9zcN+LCfFOmXGaOuVnjRzpIq1NOJJHsPTKu90n+bHlz7ZCfsy8pAULacZajBemEPxf1 pbHdRCyLhZjVn2M6e2GCeRRFvTOmhb34a9P5QzFAPq4aeMcaK/evhV0A+WbMMWCKZdmr faKM3VznusKba0tJS/pdcxtpgREDzaw+vshpbDUa6Jn5MiGNAiefmoZhoz398dgkoNKK KYcQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=MjRKO5wQ; 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 q189si10814766ywg.464.2019.02.28.12.34.23 for (version=TLS1 cipher=AES128-SHA bits=128/128); Thu, 28 Feb 2019 12:34:23 -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=MjRKO5wQ; 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]:46087 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gzSNq-0006nE-In for patch@linaro.org; Thu, 28 Feb 2019 15:34:22 -0500 Received: from eggs.gnu.org ([209.51.188.92]:42748) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gzSFb-0000VS-CG for qemu-devel@nongnu.org; Thu, 28 Feb 2019 15:25:52 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gzSFa-0007PO-Bj for qemu-devel@nongnu.org; Thu, 28 Feb 2019 15:25:51 -0500 Received: from mail-wr1-x443.google.com ([2a00:1450:4864:20::443]:44118) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gzSFa-0007Oe-31 for qemu-devel@nongnu.org; Thu, 28 Feb 2019 15:25:50 -0500 Received: by mail-wr1-x443.google.com with SMTP id w2so23414163wrt.11 for ; Thu, 28 Feb 2019 12:25:50 -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=IhmDA8Paz4xh5btvDJbvSxpnzxmgwJBv6Kvn01RZQX4=; b=MjRKO5wQFy1j2r9a3RgaJnu11c4bG1dcQi6FDMqTJOIMwaPypVh6UOFBfbRQmC4glI 8DdtC3Eh7P9v+EzNvVDuDgGN0PCPZEfwdeGqUNBYk6B4L5w4Yb6AxYvEjpMhbP/Slq/S dkD0K+P73bn/CSUOCQKZwzPJTdp/120HMqY9+sR+DOgYpmF/764OwELczSLXYZTdY0c0 3aVZrRVZrVs/Z2xKbDRjYjtCWS4CKQPK17KElbCwP84pevQhpx2WlkJruK2Syg4YoDto xMdRmOmPPkg/HCJh29rucka9oMI5hqS94pmf8g674/0dtoKCRtSlvo3EwBSceN9tHH+D P0Zw== 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=IhmDA8Paz4xh5btvDJbvSxpnzxmgwJBv6Kvn01RZQX4=; b=QsofyXcEKfBYrsBrpJ0MY0B8FA6+DJoRPr2GcV/WJJWSlhFMcm214nNWYSuSX3zNF+ BeH7Sd69jPRaEPW8kvH9/WnzRlPSKz0FIixGLjsCW7n0/wQmdtDeV6pIufkibpK/HXtL L7PGD5KOkO+L+e2euBoDGkk0B0NPmak4BlZrUP4o/baC7bwMNMq0mZoPk1x031WYcB6H r6NiapSz2n4hu6E3wkISViQYGdsyf9RF0YHqrX/naFvrmb1uhYch5OU38WxBMidwRBfh l0UpNsAaYdvDUCJUpHsjZnxt8wtvd0V3eBnrsqYgB8LzZyqc099ECocZc5x2dUK7Nel1 NziA== X-Gm-Message-State: APjAAAXN1IVON2jaoMNo+h2lrRKpxTEjCypcL3RPpAEskHEMmUtcLyCH +TWwgULJgXbtqacOQ6PFqJyyew== X-Received: by 2002:a5d:4945:: with SMTP id r5mr779762wrs.295.1551385549123; Thu, 28 Feb 2019 12:25:49 -0800 (PST) Received: from zen.linaroharston ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id a8sm7401392wmh.26.2019.02.28.12.25.41 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 28 Feb 2019 12:25:45 -0800 (PST) Received: from zen.linaroharston. (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id E47681FF8E; 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:32 +0000 Message-Id: <20190228202537.4638-12-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::443 Subject: [Qemu-devel] [PATCH v2 11/16] tests/tcg/cris: cleanup sys.c 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" This is a mini library which provides helper functions to the tests which are all currently written in assembly. A bunch of minor changes: - removed libc related headers (fedora-cris-cross is a system compiler) - re-organised the functions to avoid forward declarations - cleaned up brace usage - restored exit for _fail case - removed tabs and fixed indentation Signed-off-by: Alex Bennée --- tests/tcg/cris/bare/sys.c | 96 +++++++++++++++++++-------------------- tests/tcg/cris/libc/sys.c | 23 ++++++---- 2 files changed, 62 insertions(+), 57 deletions(-) -- 2.20.1 diff --git a/tests/tcg/cris/bare/sys.c b/tests/tcg/cris/bare/sys.c index 21f08c0747..aa342335d6 100644 --- a/tests/tcg/cris/bare/sys.c +++ b/tests/tcg/cris/bare/sys.c @@ -1,59 +1,59 @@ -#include -#include -#include - -static inline int mystrlen(char *s) { - int i = 0; - while (s[i]) - i++; - return i; +/* + * Helper functions for CRIS system tests + * + * There is no libc and only a limited set of headers. + */ + +#include + +void exit(int status) +{ + register unsigned int callno asm ("r9") = 1; /* NR_exit */ + + asm volatile ("break 13\n" + : /* no outputs */ + : "r" (callno) + : "memory" ); + while(1); } -void pass(void) { - char s[] = "passed.\n"; - write (1, s, sizeof (s) - 1); - exit (0); -} +size_t write(int fd, const void *buf, size_t count) +{ + register unsigned int callno asm ("r9") = 4; /* NR_write */ + register unsigned int r10 asm ("r10") = fd; + register const void *r11 asm ("r11") = buf; + register size_t r12 asm ("r12") = count; + register unsigned int r asm ("r10"); -void _fail(char *reason) { - char s[] = "\nfailed: "; - int len = mystrlen(reason); - write (1, s, sizeof (s) - 1); - write (1, reason, len); - write (1, "\n", 1); -// exit (1); -} + asm volatile ("break 13\n" + : "=r" (r) + : "r" (callno), "0" (r10), "r" (r11), "r" (r12) + : "memory"); -void *memset (void *s, int c, size_t n) { - char *p = s; - int i; - for (i = 0; i < n; i++) - p[i] = c; - return p; + return r; } -void exit (int status) { - register unsigned int callno asm ("r9") = 1; /* NR_exit */ - - asm volatile ("break 13\n" - : - : "r" (callno) - : "memory" ); - while(1) - ; +static inline int mystrlen(char *s) +{ + int i = 0; + while (s[i]) { + i++; + } + return i; } -ssize_t write (int fd, const void *buf, size_t count) { - register unsigned int callno asm ("r9") = 4; /* NR_write */ - register unsigned int r10 asm ("r10") = fd; - register const void *r11 asm ("r11") = buf; - register size_t r12 asm ("r12") = count; - register unsigned int r asm ("r10"); - asm volatile ("break 13\n" - : "=r" (r) - : "r" (callno), "0" (r10), "r" (r11), "r" (r12) - : "memory"); +void pass(void) { + char s[] = "passed.\n"; + write(1, s, sizeof (s) - 1); + exit(0); +} - return r; +void _fail(char *reason) { + char s[] = "\nfailed: "; + int len = mystrlen(reason); + write(1, s, sizeof (s) - 1); + write(1, reason, len); + write(1, "\n", 1); + exit(1); } diff --git a/tests/tcg/cris/libc/sys.c b/tests/tcg/cris/libc/sys.c index b8e759eee3..6ec4e77b22 100644 --- a/tests/tcg/cris/libc/sys.c +++ b/tests/tcg/cris/libc/sys.c @@ -3,16 +3,18 @@ */ -void exit (int status) { +void exit(int status) +{ register unsigned int callno asm ("r9") = 1; /* NR_exit */ asm volatile ("break 13\n" : : "r" (callno) - : "memory" ); + : "memory"); while(1); } -ssize_t write (int fd, const void *buf, size_t count) { +ssize_t write(int fd, const void *buf, size_t count) +{ register unsigned int callno asm ("r9") = 4; /* NR_write */ register unsigned int r10 asm ("r10") = fd; register const void *r11 asm ("r11") = buf; @@ -27,29 +29,32 @@ ssize_t write (int fd, const void *buf, size_t count) { return r; } -static inline int mystrlen(char *s) { +static inline int mystrlen(char *s) +{ int i = 0; while (s[i]) i++; return i; } -void pass(void) { +void pass(void) +{ char s[] = "passed.\n"; - write (1, s, sizeof (s) - 1); + write (1, s, sizeof(s) - 1); exit (0); } -void _fail(char *reason) { +void _fail(char *reason) +{ char s[] = "\nfailed: "; int len = mystrlen(reason); write (1, s, sizeof (s) - 1); write (1, reason, len); write (1, "\n", 1); -// exit (1); } -void *memset (void *s, int c, size_t n) { +void *memset(void *s, int c, size_t n) +{ char *p = s; int i; for (i = 0; i < n; i++) From patchwork Thu Feb 28 20:25:33 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: 159443 Delivered-To: patch@linaro.org Received: by 2002:a02:5cc1:0:0:0:0:0 with SMTP id w62csp1095714jad; Thu, 28 Feb 2019 12:37:17 -0800 (PST) X-Google-Smtp-Source: APXvYqwGSinw5ZU7BGFFZfNC8fGqNF7RCMbU2echNBCx7xKos05iLFJzFM2WfraIS04J6SAVEk4y X-Received: by 2002:a0d:ca07:: with SMTP id m7mr776442ywd.192.1551386237733; Thu, 28 Feb 2019 12:37:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551386237; cv=none; d=google.com; s=arc-20160816; b=P6aWpnRHlGeIQGLAzdn0JoCnQYV6qgdOKiclIEZOYsXZQbzSYCZWkUe+S8wGwPe2xW T8e3bhmqdhqiCyY8FDgqj3Wa8jUB/jqQo8hoRKcoiwh0WrIm1dC5hi6KjiZu1ITQOh7U 7qDcAp/s1FNDw983JNGLhyrC5JdYPyoMl8PiR6lOdHG4r5Tymo0prRl5Ak0ZnswhUAC2 gXey9CoCMPDJ0wTMArwnlTxI6UliyDJNgxQGuFbZ7WYEk56Wa5KiWs9XHWtDgT5pw3eE oW5Kn9wE0Giz43BdTMXY7pzohEPtVwssZTviV45h3RJ1zr5h0eOJ/oOslR4lkFAxZRg+ bMcg== 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=qZ2UmGUg+VEUSmps6F0SarBKmSuXqmswsaB4YDkuNKw=; b=0kts72MC26ncef0L0233O2BCBtNLUh9Hli4fxNkBOO/eaiyWS53h3zVp59EEYkCbtn lKkmS5nMtvUWluA1NOiBcKZAonN3Y2oeN9GGIvcgzv/vDKwwZuaEXp+216YrdWphkFbc 5qY0zuF34e/jJghUXaHeBok0efmn6lN0ymf1GIDpBx29pH4a7Z9zsdaM7JN9bHenNKYu zn+VLapJ8rFJvAPfjPPGtRg+/EvjUQOA/vkL2cnEAv4V4nvjv8hcniY1DZSs1nT7Z/IU iWt+vnul+VpVKZGcTmq8x8XF9jdnkUmJPsBiC0fZi52yx39Ux5tSDmeC3w6KMmsUPAwS k3Dw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=eZdUn3F0; 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 d186si11775069ywb.18.2019.02.28.12.37.17 for (version=TLS1 cipher=AES128-SHA bits=128/128); Thu, 28 Feb 2019 12:37:17 -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=eZdUn3F0; 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]:46147 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gzSQf-0000nT-6A for patch@linaro.org; Thu, 28 Feb 2019 15:37:17 -0500 Received: from eggs.gnu.org ([209.51.188.92]:42779) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gzSFc-0000YB-Pk for qemu-devel@nongnu.org; Thu, 28 Feb 2019 15:25:53 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gzSFc-0007R1-2J for qemu-devel@nongnu.org; Thu, 28 Feb 2019 15:25:52 -0500 Received: from mail-wm1-x330.google.com ([2a00:1450:4864:20::330]:51096) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gzSFb-0007Q9-Sp for qemu-devel@nongnu.org; Thu, 28 Feb 2019 15:25:52 -0500 Received: by mail-wm1-x330.google.com with SMTP id x7so10442601wmj.0 for ; Thu, 28 Feb 2019 12:25:51 -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=qZ2UmGUg+VEUSmps6F0SarBKmSuXqmswsaB4YDkuNKw=; b=eZdUn3F0MVXokp+QLK+5WrolcbY4ccXrOtUCaHLtUV2hCiUZpuyL7RJJLqZwpOfYiX 7G1BnUqJ2YSHC1rXeG3yvYcMyFhmwjR1mkYoUm+qd4IRPW7sCJxoq/uarU05pR7/P0ik D5NsTDkKJpjEftd8JG6CqePRcGKF4eMhQ6gaPYJLKwjC3ggPW4LodmzVwcitYB61pJe7 winpmZ+/G2B0yduoLKTDy6j50lgDwryGNY+tWRar4SzzuDN2PCsYtbAvxvFAQiA+OMlE L2exS4VWCluRBg5i1Knyd9QMrzYewWuLIqDUIsbOfdDKArBQ4+kvv110NAjo3qU0iA6q MPmw== 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=qZ2UmGUg+VEUSmps6F0SarBKmSuXqmswsaB4YDkuNKw=; b=NB2Q1IZgC8WrdMjyZvRQWJBzBUI8q7FQ2CaIFD89kM09U9lfbk9FVuPsc2OT3krHtQ 9fxlA208CWbx//n8YthOaB0ROEjh+8iV5qirrIPD4Ez3XgK7C9mZDg7X1Q+8UYNpFZo0 5SNYvudTathqeOFzLcRSnU06/2WivNKGfu1bWKp2qGBGEPLVzyWvWNKYr8STSaLF7qVY VJPN2VWlCpXkLd1Lpckjb4oiRCzggdNRyvUz+xdF3ndOxIH8Dcziyj7ARW9vfeer/E08 IIaF6FdzjL/Aq8OW2YfPxvDHKQdJXZPOwlxxCZGStWVfwn45aNjhK7iO8s8Vmtqm9yUu Sv3w== X-Gm-Message-State: AHQUAuYE2OVsUm9QgwZKKybF5H+lWz/PCAj9TAxEpFO8ZSPnzJ7sN3Xo FS1r+pSloXyaPmkNr9um5aPgEQ== X-Received: by 2002:a1c:4d17:: with SMTP id o23mr957801wmh.53.1551385550677; Thu, 28 Feb 2019 12:25:50 -0800 (PST) Received: from zen.linaroharston ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id m15sm15509956wrx.30.2019.02.28.12.25.41 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 28 Feb 2019 12:25:45 -0800 (PST) Received: from zen.linaroharston. (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id F016D1FF8F; 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:33 +0000 Message-Id: <20190228202537.4638-13-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::330 Subject: [Qemu-devel] [PATCH v2 12/16] tests/tcg/cris: comment out the ccs test 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" Evidently upstream gcc doesn't like this opcode. Signed-off-by: Alex Bennée --- tests/tcg/cris/bare/check_btst.s | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) -- 2.20.1 diff --git a/tests/tcg/cris/bare/check_btst.s b/tests/tcg/cris/bare/check_btst.s index e39fc8f4d6..485deb2006 100644 --- a/tests/tcg/cris/bare/check_btst.s +++ b/tests/tcg/cris/bare/check_btst.s @@ -85,12 +85,12 @@ checkr3 1111 ; check that X gets cleared and that only the NZ flags are touched. - move.d 0xff, $r0 - move $r0, $ccs - btst r3,r3 - move $ccs, $r0 - and.d 0xff, $r0 - cmp.d 0xe3, $r0 - test_cc 0 1 0 0 + ;; move.d 0xff, $r0 + ;; move $r0, $ccs + ;; btst r3,r3 + ;; move $ccs, $r0 + ;; and.d 0xff, $r0 + ;; cmp.d 0xe3, $r0 + ;; test_cc 0 1 0 0 quit From patchwork Thu Feb 28 20:25:34 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: 159442 Delivered-To: patch@linaro.org Received: by 2002:a02:5cc1:0:0:0:0:0 with SMTP id w62csp1094597jad; Thu, 28 Feb 2019 12:36:01 -0800 (PST) X-Google-Smtp-Source: APXvYqyHZMc+kJsVYuJNCnasa48wblDVkL27kPxescR+CCV+cClXM/bcVBlPQFg/R2MnDX3YoBpe X-Received: by 2002:a5b:cc6:: with SMTP id e6mr1230611ybr.7.1551386161212; Thu, 28 Feb 2019 12:36:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551386161; cv=none; d=google.com; s=arc-20160816; b=vFLw+d97d0WZ+9JXdl+PqAqvTi3KwSYfiKC7yOX71blMYf9XrmchWkjcSCqe6bDjGi fdid7xYWQYpT7x5j6rP+WKRjdPQhN+bavjdawISXyJxczIKhs5Jx1BbrAM3/ZPwcRFb9 GSNlPRRAQeC+8gZiw4SaQ/4tKDr5XNr6ud58+qdtFWrk64jl63QVZiVm7cKFwXm5p/3l h1qTBh5o+e3nupjF1X30uW09K2+1INA7uLuoSpCf9xmAKqmpquflMGXQT2AYBo8sTOcV yar6OHmKgNJJUmMfMin0OFBLNM6ilc2CPIJ2rJ2h/FBjJWt3XCP+x4+gyjhkRdsVA1uU wyrg== 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=wY2lUNdgGIgvYY1zuQQVz86aNMRCsik3LN1nFzvi7z4=; b=gdgog42t6B5ku1RBk6k9RSKZIBe5uLx4uv6sbfO/Ps9YCMPEx+GHX9RF1QX19Ap+QX hCMKUZ564hgFfebrNCkQFis4yQz1YUsECJdV8uzMUqQOUfPOhnvhgf50dJhyEiHTC3g2 W+/xzvgeqJ+ilqsEGrHCFAP+/Zr76fB1RmHuDQHZnAYLifpGFSyX8NHDMz71ZcsCio5Q IXkfaE+PdGR0wamAVyzs5o7vUtNc5z5P1dz5S3xiVQ3EOw2cMlqzjlVgZ2LVeIjFy7pv f/pq/YTjlZPlwm15az4KpKbnepa2WIQsq4kYglKbCaV81fphdvp8cw3pxhy059HQ1NwX q65g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=w8pQhjk6; 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 d21si4814324ywd.459.2019.02.28.12.36.01 for (version=TLS1 cipher=AES128-SHA bits=128/128); Thu, 28 Feb 2019 12:36:01 -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=w8pQhjk6; 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]:46092 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gzSPQ-0007BN-Le for patch@linaro.org; Thu, 28 Feb 2019 15:36:00 -0500 Received: from eggs.gnu.org ([209.51.188.92]:44102) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gzSKj-0004mT-0C for qemu-devel@nongnu.org; Thu, 28 Feb 2019 15:31:09 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gzSKh-0002Fs-3n for qemu-devel@nongnu.org; Thu, 28 Feb 2019 15:31:08 -0500 Received: from mail-wr1-x442.google.com ([2a00:1450:4864:20::442]:46050) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gzSKd-00029D-EP for qemu-devel@nongnu.org; Thu, 28 Feb 2019 15:31:05 -0500 Received: by mail-wr1-x442.google.com with SMTP id w17so23426211wrn.12 for ; Thu, 28 Feb 2019 12:31:03 -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=wY2lUNdgGIgvYY1zuQQVz86aNMRCsik3LN1nFzvi7z4=; b=w8pQhjk642zepCCh7ELezllJ+Rs1J1klUdjBfnZFe1VG0gMVu9LL8JVrkJaWSirQFK Pbok14rPnEK1VGRqOuFQXxXQjeN1aNsuX9iXkP///+QaVqRMeLIZ4g4YkTsLRb6Go08L GdhV/OGyIURZasqqmHWumceaGsGb/JA4SJ9LMIAdsbWl4yY8jhOAEfcF3pQYDmlicYOJ bwXPjxyfT9WlFkr5vmCyHsl6dr48F3wzkOr80fiZC2U3GMHPYYFuG3HFk2Oio4cWAPwV BRYYKQJJwlTUfBLBvZl6r95CLQVhcTsySqj/Jh4NX4GU0rN6YJaNf+E3ABeDEyqNsTTh OPRw== 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=wY2lUNdgGIgvYY1zuQQVz86aNMRCsik3LN1nFzvi7z4=; b=RLAo37U4lHRuuqSLB0SrrIFgNpT5TTcw+Dm4cwMQelsU8Xl9O8juC5bCFtFhpu23wM aMRnRkl/Y9Gi40gANV6lxN7mdhDMqS0oEhzyiAQy5VLFL7Z1/5Z+zyDiumzdjkwPNp7c W9+55QWSwotuBm6q+BWuKwZ/8bSqH12ZTW6nFji6ZzlnYnM9VQmZGKH2WjXnaEFdOSMz 1AOIsGbJfU1JxNkbF0QVgPLjL2gLaOrH2/dtWUVxVqBiPe1Wi/55tTnwBkEoD4Bb5rNt h6jK9qw4xPksm6yM7toJ8bcJ7pr81PVOePNtCg9Vwx9jjWONPbfLYJcI+8PuI/nJa6FV Ee4g== X-Gm-Message-State: APjAAAVMyXoolW/C/I3jHmy1iKPHhqEVglU29pnk4K2v9sG9URZLfghO +DOIoe+TeF3inCx3p6LrqTMpbg== X-Received: by 2002:a5d:680d:: with SMTP id w13mr822029wru.196.1551385862240; Thu, 28 Feb 2019 12:31:02 -0800 (PST) Received: from zen.linaroharston ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id m189sm6397662wmf.7.2019.02.28.12.31.01 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 28 Feb 2019 12:31:01 -0800 (PST) Received: from zen.linaroharston. (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 07C561FF90; Thu, 28 Feb 2019 20:25:38 +0000 (UTC) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Date: Thu, 28 Feb 2019 20:25:34 +0000 Message-Id: <20190228202537.4638-14-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::442 Subject: [Qemu-devel] [PATCH v2 13/16] tests/tcg/cris: align mul operations 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" To avoid: Error: dangerous MULS/MULU location; give it higher alignment Signed-off-by: Alex Bennée --- tests/tcg/cris/bare/check_mulx.s | 11 +++++++++++ 1 file changed, 11 insertions(+) -- 2.20.1 diff --git a/tests/tcg/cris/bare/check_mulx.s b/tests/tcg/cris/bare/check_mulx.s index d43241a6f5..a7a1f82a82 100644 --- a/tests/tcg/cris/bare/check_mulx.s +++ b/tests/tcg/cris/bare/check_mulx.s @@ -3,6 +3,8 @@ .include "testutils.inc" start + + .align 4 moveq -1,r3 moveq 2,r4 muls.d r4,r3 @@ -11,6 +13,7 @@ move mof,r3 checkr3 ffffffff + .align 4 moveq -1,r3 moveq 2,r4 mulu.d r4,r3 @@ -19,6 +22,7 @@ move mof,r3 checkr3 1 + .align 4 moveq 2,r3 moveq -1,r4 muls.d r4,r3 @@ -27,6 +31,7 @@ move mof,r3 checkr3 ffffffff + .align 4 moveq 2,r3 moveq -1,r4 mulu.d r4,r3 @@ -98,6 +103,7 @@ checkr3 1fffe move mof,r3 checkr3 0 + nop moveq 2,r3 move.d 0xffff,r4 @@ -138,6 +144,7 @@ checkr3 fdbdade2 move mof,r3 checkr3 ffffffff + nop move.d 0x5432f789,r4 move.d 0x78134452,r3 @@ -146,6 +153,7 @@ checkr3 420fade2 move mof,r3 checkr3 0 + nop move.d 0xff,r3 moveq 2,r4 @@ -186,6 +194,7 @@ checkr3 1 move mof,r3 checkr3 0 + nop moveq -1,r4 move.d r4,r3 @@ -194,6 +203,7 @@ checkr3 fe01 move mof,r3 checkr3 0 + nop move.d 0xfeda49ff,r4 move.d r4,r3 @@ -202,6 +212,7 @@ checkr3 1 move mof,r3 checkr3 0 + nop move.d 0xfeda49ff,r4 move.d r4,r3 From patchwork Thu Feb 28 20:25:35 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: 159447 Delivered-To: patch@linaro.org Received: by 2002:a02:5cc1:0:0:0:0:0 with SMTP id w62csp1100341jad; Thu, 28 Feb 2019 12:42:30 -0800 (PST) X-Google-Smtp-Source: APXvYqzZC0AFiPostS02uPTTu6yTSnoNlo6guPJtPYrMIleUbLkBe3DKVK0rPv/LohdJQE7/RJgI X-Received: by 2002:a25:ade3:: with SMTP id d35mr1316522ybe.354.1551386550090; Thu, 28 Feb 2019 12:42:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551386550; cv=none; d=google.com; s=arc-20160816; b=Tgd5RIfx+4k7mjp/hyjDjETZAYaRq6g9FU4opbHrl1HuXcmOjZ+G5+Whsaf93knRV/ gC4YcJ3pNITBMUgSzuJ/p4rTDSPJdeOsLF1++K2awTWIyK5uYIIlzqb9vOFblVr/dnmh ZVjTNMn4ghL+WonkQKvQXI7WDagwrUxC1479blVleS6SzubPd/VsckhTwx32VnyfdQh8 xWHSGdsB99DSkgIApAliamOGJpRW0LR/Nle0P1D9MqWJ4REjQ+vWeHZ7e28t4PVCVPlm L4KbULR4ZIKj9GgD0DNmDHaIHIGv1mE7dYVvoAi0FpwxRZVq7q/HLCbyozGRkI1cHh/5 Doag== 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=tjLSIWJEgeVweWOD3dvO1il0QaXnyiXHZBI5XL4xPeE=; b=re5smDE+CtdExJXm/bx3aCw3azd5Slm2FEwz9XEcv2b3ktBJzkNyoUCUjK3gXtyRU7 jt4nnqZESf0W1F1OafnBtVbsKFiQzPQFAEcxNpdCJwO3ATauT5yhOT+o/GlIIWtC3J+9 lB1RNcAYVfrau3kHG3mJMEKxEP11Ug+qCuxJ6xhVMoo6wu4kjUyYWmOlsijFhhtGHVa5 rOGHsWcVsqogtHiwtrqKLAhkr1/Yq/523TK0rXA0oXM2YTzojEZgB9PuyMTOtCSj6C/G wrgbWrtWaKIwktpXXMBf6CkqVFGxVf/5Fbkf4uIeeHYORC2Wi2pXYsGW6yUBf7YIBKEg WKhA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=iwzz0PtN; 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 w5si11312569ybp.383.2019.02.28.12.42.29 for (version=TLS1 cipher=AES128-SHA bits=128/128); Thu, 28 Feb 2019 12:42:30 -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=iwzz0PtN; 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]:46238 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gzSVh-0004EU-J4 for patch@linaro.org; Thu, 28 Feb 2019 15:42:29 -0500 Received: from eggs.gnu.org ([209.51.188.92]:44106) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gzSKj-0004mW-0i for qemu-devel@nongnu.org; Thu, 28 Feb 2019 15:31:12 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gzSKh-0002Fi-3M for qemu-devel@nongnu.org; Thu, 28 Feb 2019 15:31:08 -0500 Received: from mail-wr1-x441.google.com ([2a00:1450:4864:20::441]:35587) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gzSKd-00027i-ER for qemu-devel@nongnu.org; Thu, 28 Feb 2019 15:31:05 -0500 Received: by mail-wr1-x441.google.com with SMTP id t18so23463963wrx.2 for ; Thu, 28 Feb 2019 12:31:03 -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=tjLSIWJEgeVweWOD3dvO1il0QaXnyiXHZBI5XL4xPeE=; b=iwzz0PtNgoipvE/jx+KbXSTYYZWim1YS4eNGQOwMStLhB3mIx900kqpMOvm8Ns6jDU cqkcAT5s39rI2aA5O5WUOR3JuEwAEPePVQrdVtsa4gbkAl6OYY0tl2248CrzedK7DeoU 9aIEEMg0K0jFSas3hHZuFMXfpH5qm5PrBqpDNBvamR1xPq5/Lskf0eCjJ/AblCKD1TeP ce0capIo1VpYIYBQKZRgIKEnPJScpoahNsvWy+EgsV48qzSaGNc4/7HyTMB5tyoBrWck hIciT7ejDdK9pYmmqyb+jEqKXl/E438MFZy2gxev+rRub06ABKxwC4dT95rxGRn9YgEL Vr0g== 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=tjLSIWJEgeVweWOD3dvO1il0QaXnyiXHZBI5XL4xPeE=; b=p2HPed3XPLBE7SSZ8h6+Wg3YtAcesCLCUYEjmKjZGeKGUZHgvRUTvB9HuWuXBZw7y9 c+UQP4puccy7BzUDVDpwS3rhL1BWp7gF1eVxi6Tn7iSuyg4Iirr03XfmIxK31fALN4xH f/CrIwKEnaGTpMZnYcAEkdkDpliEcEp0hz55iZ6LymPGFp0Jgh7THmHS92SZ6nMhw/Ld a+FRD71eE2t/rqEVCxhKL3w/bAPh7Oae2fy4GmKyFPh1eSEcXungNbimHoPp4ZEDCMrt kEhGLd102kUSpbWImqVG2xQL3DulDXHHkeVHZSM9GcWlMrlExOk0ccH5B2j/le1jI5MD iLHA== X-Gm-Message-State: APjAAAUmZK8Itol9Fksa7iK9N00dTxI6qoXE5ZYrnlWRQCAY4gUOmpkp PyaHl+S8QrF3wgTBvztYCsD0yw== X-Received: by 2002:adf:ba84:: with SMTP id p4mr882316wrg.156.1551385861754; Thu, 28 Feb 2019 12:31:01 -0800 (PST) Received: from zen.linaroharston ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id n189sm9744379wmb.28.2019.02.28.12.31.01 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 28 Feb 2019 12:31:01 -0800 (PST) Received: from zen.linaroharston. (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 139691FF91; Thu, 28 Feb 2019 20:25:38 +0000 (UTC) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Date: Thu, 28 Feb 2019 20:25:35 +0000 Message-Id: <20190228202537.4638-15-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::441 Subject: [Qemu-devel] [PATCH v2 14/16] tests/tcg: enable cris base user-mode 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: 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" This converts the existing Makefile into a Makefile.target and updates it so it can be called by the tcg build system. The original Makefile didn't set -cpu except for the v17 tests however that has broken (I assume because linux-user is a "max" cpu) so here I force it to be crisv17. I've also replicated the GNU simulator targets (run-FOO-on-sim). Signed-off-by: Alex Bennée --- tests/docker/Makefile.include | 1 + tests/tcg/cris/Makefile | 168 -------------------------------- tests/tcg/cris/Makefile.include | 6 ++ tests/tcg/cris/Makefile.target | 58 +++++++++++ 4 files changed, 65 insertions(+), 168 deletions(-) delete mode 100644 tests/tcg/cris/Makefile create mode 100644 tests/tcg/cris/Makefile.include create mode 100644 tests/tcg/cris/Makefile.target -- 2.20.1 diff --git a/tests/docker/Makefile.include b/tests/docker/Makefile.include index 83d43c50e4..60314d293a 100644 --- a/tests/docker/Makefile.include +++ b/tests/docker/Makefile.include @@ -116,6 +116,7 @@ docker-image-tricore-cross: docker-image-debian9 DOCKER_PARTIAL_IMAGES += debian-alpha-cross debian-hppa-cross debian-m68k-cross debian-sh4-cross DOCKER_PARTIAL_IMAGES += debian-sparc64-cross debian-mips64-cross debian-riscv64-cross DOCKER_PARTIAL_IMAGES += debian-tricore-cross debian-powerpc-cross fedora-i386-cross +DOCKER_PARTIAL_IMAGES += fedora-cris-cross # Rules for building linux-user powered images # diff --git a/tests/tcg/cris/Makefile b/tests/tcg/cris/Makefile deleted file mode 100644 index 664b30ce81..0000000000 --- a/tests/tcg/cris/Makefile +++ /dev/null @@ -1,168 +0,0 @@ --include ../../../config-host.mak - -CROSS=crisv32-axis-linux-gnu- -SIM=../../../cris-linux-user/qemu-cris -L ./ -SIMG=cris-axis-linux-gnu-run --sysroot=./ - -CC = $(CROSS)gcc -#AS = $(CROSS)as -AS = $(CC) -x assembler-with-cpp -SIZE = $(CROSS)size -LD = $(CC) -OBJCOPY = $(CROSS)objcopy - -# we rely on GCC inline:ing the stuff we tell it to in many places here. -CFLAGS = -Winline -Wall -g -O2 -static -NOSTDFLAGS = -nostartfiles -nostdlib -ASFLAGS += -g -Wa,-I,$(SRC_PATH)/tests/tcg/cris/ -LDLIBS = -NOSTDLIBS = -lgcc - -CRT = crt.o -SYS = sys.o -TESTCASES += check_abs.tst -TESTCASES += check_addc.tst -TESTCASES += check_addcm.tst -TESTCASES += check_addcv17.tst -TESTCASES += check_addo.tst -TESTCASES += check_addoq.tst -TESTCASES += check_addi.tst -TESTCASES += check_addiv32.tst -TESTCASES += check_addm.tst -TESTCASES += check_addr.tst -TESTCASES += check_addq.tst -TESTCASES += check_addxc.tst -TESTCASES += check_addxm.tst -TESTCASES += check_addxr.tst -TESTCASES += check_andc.tst -TESTCASES += check_andm.tst -TESTCASES += check_andr.tst -TESTCASES += check_andq.tst -TESTCASES += check_asr.tst -TESTCASES += check_ba.tst -TESTCASES += check_bas.tst -TESTCASES += check_bcc.tst -TESTCASES += check_bound.tst -TESTCASES += check_boundc.tst -TESTCASES += check_boundr.tst -TESTCASES += check_btst.tst -TESTCASES += check_clearfv32.tst -TESTCASES += check_cmpc.tst -TESTCASES += check_cmpr.tst -TESTCASES += check_cmpq.tst -TESTCASES += check_cmpm.tst -TESTCASES += check_cmpxc.tst -TESTCASES += check_cmpxm.tst -TESTCASES += check_cmp-2.tst -TESTCASES += check_clrjmp1.tst -TESTCASES += check_dstep.tst -TESTCASES += check_ftag.tst -TESTCASES += check_int64.tst -# check_jsr is broken. -#TESTCASES += check_jsr.tst -TESTCASES += check_mcp.tst -TESTCASES += check_movei.tst -TESTCASES += check_mover.tst -TESTCASES += check_moverm.tst -TESTCASES += check_moveq.tst -TESTCASES += check_movemr.tst -TESTCASES += check_movemrv32.tst -TESTCASES += check_movecr.tst -TESTCASES += check_movmp.tst -TESTCASES += check_movpr.tst -TESTCASES += check_movprv32.tst -TESTCASES += check_movdelsr1.tst -TESTCASES += check_movpmv32.tst -TESTCASES += check_movsr.tst -TESTCASES += check_movsm.tst -TESTCASES += check_movscr.tst -TESTCASES += check_movur.tst -TESTCASES += check_movum.tst -TESTCASES += check_movucr.tst -TESTCASES += check_mulx.tst -TESTCASES += check_mulv32.tst -TESTCASES += check_neg.tst -TESTCASES += check_not.tst -TESTCASES += check_lz.tst -TESTCASES += check_lapc.tst -TESTCASES += check_lsl.tst -TESTCASES += check_lsr.tst -TESTCASES += check_orc.tst -TESTCASES += check_orm.tst -TESTCASES += check_orr.tst -TESTCASES += check_orq.tst -TESTCASES += check_ret.tst -TESTCASES += check_swap.tst -TESTCASES += check_scc.tst -TESTCASES += check_subc.tst -TESTCASES += check_subq.tst -TESTCASES += check_subr.tst -TESTCASES += check_subm.tst -TESTCASES += check_glibc_kernelversion.tst -TESTCASES += check_xarith.tst - -TESTCASES += check_hello.ctst -TESTCASES += check_stat1.ctst -TESTCASES += check_stat2.ctst -TESTCASES += check_stat3.ctst -TESTCASES += check_stat4.ctst -TESTCASES += check_openpf1.ctst -TESTCASES += check_openpf2.ctst -TESTCASES += check_openpf3.ctst -TESTCASES += check_openpf5.ctst -TESTCASES += check_mapbrk.ctst -TESTCASES += check_mmap1.ctst -TESTCASES += check_mmap2.ctst -TESTCASES += check_mmap3.ctst -TESTCASES += check_sigalrm.ctst -TESTCASES += check_time2.ctst -TESTCASES += check_settls1.ctst - -TESTCASES += check_gcctorture_pr28634-1.ctst -#TESTCASES += check_gcctorture_pr28634.ctst - -all: build - -%.o: $(SRC_PATH)/tests/tcg/cris/%.c - $(CC) $(CFLAGS) -c $< -o $@ - -%.o: $(SRC_PATH)/tests/tcg/cris/%.s - $(AS) $(ASFLAGS) -c $< -o $@ - -%.tst: %.o - $(CC) $(CFLAGS) $(NOSTDFLAGS) $(LDLIBS) $(NOSTDLIBS) $(CRT) $< $(SYS) -o $@ - -%.ctst: %.o - $(CC) $(CFLAGS) $(LDLIBS) $< -o $@ - - -sysv10.o: sys.c - $(CC) $(CFLAGS) -mcpu=v10 -c $< -o $@ - -crtv10.o: crt.s - $(AS) $(ASFLAGS) -mcpu=v10 -c $< -o $@ - -check_addcv17.tst: ASFLAGS += -mcpu=v10 -check_addcv17.tst: CRT := crtv10.o -check_addcv17.tst: SYS := sysv10.o -check_addcv17.tst: crtv10.o sysv10.o - -build: $(CRT) $(SYS) $(TESTCASES) - -check: $(CRT) $(SYS) $(TESTCASES) - @printf "\nQEMU simulator.\n" - for case in $(TESTCASES); do \ - printf %s "$$case "; \ - SIMARGS=; \ - case $$case in *v17*) SIMARGS="-cpu crisv17";; esac; \ - $(SIM) $$SIMARGS ./$$case; \ - done -check-g: $(CRT) $(SYS) $(TESTCASES) - @printf "\nGDB simulator.\n" - @for case in $(TESTCASES); do \ - printf %s "$$case "; \ - $(SIMG) $$case; \ - done - -clean: - $(RM) -fr $(TESTCASES) *.o diff --git a/tests/tcg/cris/Makefile.include b/tests/tcg/cris/Makefile.include new file mode 100644 index 0000000000..1c037824bf --- /dev/null +++ b/tests/tcg/cris/Makefile.include @@ -0,0 +1,6 @@ +# +# Makefile.include for all CRIS targets +# + +DOCKER_IMAGE=fedora-cris-cross +DOCKER_CROSS_COMPILER=cris-linux-gnu-gcc diff --git a/tests/tcg/cris/Makefile.target b/tests/tcg/cris/Makefile.target new file mode 100644 index 0000000000..c1173ead42 --- /dev/null +++ b/tests/tcg/cris/Makefile.target @@ -0,0 +1,58 @@ +# -*- Mode: makefile -*- +# +# Cris tests +# +# Currently we can only build the "bare" tests with the docker +# supplied cross-compiler. +# + +CRIS_SRC = $(SRC_PATH)/tests/tcg/cris/bare +CRIS_ALL = $(wildcard $(CRIS_SRC)/*.s) +CRIS_TESTS = $(patsubst $(CRIS_SRC)/%.s, %, $(CRIS_ALL)) +# Filter out common blobs and broken tests +CRIS_BROKEN_TESTS = crt check_jsr +# upstream GCC doesn't support v32 +CRIS_BROKEN_TESTS += check_mcp check_mulv32 check_addiv32 check_movpmv32 +CRIS_BROKEN_TESTS += check_movprv32 check_clearfv32 check_movemrv32 check_bas +CRIS_BROKEN_TESTS += check_lapc check_movei +# no sure why +CRIS_BROKEN_TESTS += check_scc check_xarith + +CRIS_USABLE_TESTS = $(filter-out $(CRIS_BROKEN_TESTS), $(CRIS_TESTS)) +CRIS_RUNS = $(patsubst %, run-%, $(CRIS_USABLE_TESTS)) + +# override the list of tests, as we can't build the multiarch tests +TESTS = $(CRIS_USABLE_TESTS) +VPATH = $(CRIS_SRC) + +AS = $(CC) -x assembler-with-cpp +LD = $(CC) + +# we rely on GCC inline:ing the stuff we tell it to in many places here. +CFLAGS = -Winline -Wall -g -O2 -static +NOSTDFLAGS = -nostartfiles -nostdlib +ASFLAGS += -mcpu=v10 -g -Wa,-I,$(SRC_PATH)/tests/tcg/cris/bare +CRT_FILES = crt.o sys.o + +# stop make deleting crt files if build fails +.PRECIOUS: $(CRT_FILES) + +%.o: %.c + $(CC) -c $< -o $@ + +%.o: %.s + $(AS) $(ASFLAGS) -c $< -o $@ + +%: %.s $(CRT_FILES) + $(CC) $(ASFLAGS) $< -o $@ $(LDFLAGS) $(NOSTDFLAGS) $(CRT_FILES) + +# The default CPU breaks (possibly as it's max?) so force crisv17 +$(CRIS_RUNS): QEMU_OPTS=-cpu crisv17 + +# Additional runners to run under GNU SIM +CRIS_RUNS_ON_SIM=$(patsubst %, %-on-sim, $(CRIS_RUNS)) +SIMG:=cris-axis-linux-gnu-run + +# e.g.: make -f ../../tests/tcg/Makefile run-check_orm-on-sim +run-%-on-sim: + $(call run-test, $<, $(SIMG) $<, "$< on $(TARGET_NAME) with SIM") From patchwork Thu Feb 28 20:25:36 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: 159444 Delivered-To: patch@linaro.org Received: by 2002:a02:5cc1:0:0:0:0:0 with SMTP id w62csp1096701jad; Thu, 28 Feb 2019 12:38:21 -0800 (PST) X-Google-Smtp-Source: APXvYqzUFOqHPn/hozAXkya4L1fM9+pFBBHqVn/0LE0gy7OW59SgGuBRmnxLQsMokkixgu7yTPhm X-Received: by 2002:a25:234e:: with SMTP id j75mr1226241ybj.195.1551386301734; Thu, 28 Feb 2019 12:38:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551386301; cv=none; d=google.com; s=arc-20160816; b=uNf4uM3RxdiXnr2KZeFf9hUo+AWQ8wWAkl54kwbjh8JXBx+xe46vXi+lpTBzpE6SfY NxmjhYYJE0yfx/7LZcBv+XxqC7mHfTKOC6Dg8VtAUwpOAHIUfRexk2jAx43uHXElonhH 2zoe/rbWiH5qa7x24kSjqebVcv6eblsdL1wSklIXuHyQi7kNCQPvCg2uFBsG2xTUqs0I IhJRYU/J4yZye15SUY5bvC2gSlF8dxIW9ob6oNW4MBlcH5NaTzhnJsQVjGee+Epb5BVA /uYRj6foGHETtrl/Kq1FcZIpfHjMp+9oUA8TUnQUAJJk42fAMYSj5xeJ4Ka6rbp+eeqi ov3A== 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=j1PoM12DkCkdwbwa8wT9LXFg02nFB0Ll69glN7DKjyU=; b=JbrNYinEziOCS0Te2ERWoHa1rZh0as8f7PAOHE+5RkXs0UBbReceQexKSp5AZc2sU4 ii2IUIP50zBYrRwsO47ogL7pISlx89vh0JTKZbuX/Hm7PxK2dhMaOvNg01pNgDrpVK7/ 7mvpa/a78IlG1cZg6fXF3F3L1zFE3pY5ST1T+xEZwSrZTBdhRusWj40xxvtm5No3btL5 fVfnb5yUJKw6OPhXf1h4Uk5IXvpjLx51Ns002+7GSP9Y4iQ7EGqUCeLdcxm9jOkFHJ6M aEvCC2pTRLhkwocOZpzmDpdgxuEkPFHpcHC8RZGAA+OSM/0zT/EDG4lOwKNaJ+haQysX KkEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=VCUW4gye; 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 z138si11100647ywa.446.2019.02.28.12.38.21 for (version=TLS1 cipher=AES128-SHA bits=128/128); Thu, 28 Feb 2019 12:38:21 -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=VCUW4gye; 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]:46149 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gzSRh-0000uI-8U for patch@linaro.org; Thu, 28 Feb 2019 15:38:21 -0500 Received: from eggs.gnu.org ([209.51.188.92]:42725) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gzSFa-0000UN-FG for qemu-devel@nongnu.org; Thu, 28 Feb 2019 15:25:51 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gzSFZ-0007Or-O5 for qemu-devel@nongnu.org; Thu, 28 Feb 2019 15:25:50 -0500 Received: from mail-wm1-x342.google.com ([2a00:1450:4864:20::342]:54224) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gzSFZ-0007OB-Gm for qemu-devel@nongnu.org; Thu, 28 Feb 2019 15:25:49 -0500 Received: by mail-wm1-x342.google.com with SMTP id e74so10415498wmg.3 for ; Thu, 28 Feb 2019 12:25:49 -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=j1PoM12DkCkdwbwa8wT9LXFg02nFB0Ll69glN7DKjyU=; b=VCUW4gyeFyp18EHcwmaFxVZnMHOB8c0SkTuSKuggl02Ym1lUb7+k5HPui0ZsfKtfXu mypKPi+B7B0o127KDHRRESRWmRtcUFok7Jett0lb6hZs5qjefYmg/HlxlKDvm8jaWQkG YNnmvwgNn9sZsFWTvjzatiIXEx4o/KVTpwhU2ICf88+H0/A5Ntv+LZJ4LSy/vuQWpXKu a+LfN8vGRNvQIBpKSAKqe0NC7QbyORWeooCUk5XnV9Sti06dnTIq9tiPmiCjQJiyWxWL DMfL0jJ+vFzIcX4hjXYi/p3nMr1pLUpxkxr/qgM6mI0vW5xNism374mWYJs68KBgKIQ7 f8og== 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=j1PoM12DkCkdwbwa8wT9LXFg02nFB0Ll69glN7DKjyU=; b=mKmkoFU06nZcSMKGv044cKvlk0P8hbwFjrkgbNu7g+jDkTUmIaPkBVSCFwlVBhdhIx Q9lZrr756DEY6w9gj7Xi0DilhFBqHfevF5UGgm/nwe5wRWLPGs7dFAjjm2Le2RBAOuMK 9tHAlaR7iFTVlESlWoo7HWUd3twG1vg+2uQrzQ8PRmcq7sTa7Tv5jRXW+cRo55z9o4aX 6Pn7Ntvjk1mru8P1K37Vdcn+ZxYeZdlW+JBfsTIdwo6+rs5W8s/JWGuTcxY/T1QSiWvx aLyzWubgmSfOdfm/MDbssxZtkQdACFL0ciFS75De/0uR589q8zoU5om95GyTioi0jjXe zeUg== X-Gm-Message-State: AHQUAua98oLHY2kr5R9Kck18HbJhyefLBRsugfvIU5RCI7wsuw84PP8U S29nqQKfPnRPzEO5Si8ABnhAJA== X-Received: by 2002:a7b:c756:: with SMTP id w22mr956464wmk.12.1551385548486; Thu, 28 Feb 2019 12:25:48 -0800 (PST) Received: from zen.linaroharston ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id c15sm13469153wrv.69.2019.02.28.12.25.42 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 28 Feb 2019 12:25:45 -0800 (PST) Received: from zen.linaroharston. (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 1F4431FF92; Thu, 28 Feb 2019 20:25:38 +0000 (UTC) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Date: Thu, 28 Feb 2019 20:25:36 +0000 Message-Id: <20190228202537.4638-16-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 15/16] .travis.yml: separate softfloat from check-tcg 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" While used by TCG it is not explicitly part of TCG and the tests can be run standalone in a minimal build. Signed-off-by: Alex Bennée --- .travis.yml | 6 ++++++ tests/Makefile.include | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) -- 2.20.1 diff --git a/.travis.yml b/.travis.yml index cca57f4314..71b3c4a7a3 100644 --- a/.travis.yml +++ b/.travis.yml @@ -85,6 +85,12 @@ matrix: - CONFIG="--disable-user" + # Just build tools and run minimal unit and softfloat checks + - env: + - BASE_CONFIG="--enable-tools" + - CONFIG="--disable-user --disable-system" + - TEST_CMD="make check-unit check-softfloat -j3" + - env: - CONFIG="--enable-debug --enable-debug-tcg --disable-user" diff --git a/tests/Makefile.include b/tests/Makefile.include index f39b96e250..fb31cc5edf 100644 --- a/tests/Makefile.include +++ b/tests/Makefile.include @@ -1059,7 +1059,7 @@ clean-tcg-tests-%: build-tcg: $(BUILD_TCG_TARGET_RULES) .PHONY: check-tcg -check-tcg: check-softfloat $(RUN_TCG_TARGET_RULES) +check-tcg: $(RUN_TCG_TARGET_RULES) .PHONY: clean-tcg clean-tcg: $(CLEAN_TCG_TARGET_RULES) From patchwork Thu Feb 28 20:25:37 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: 159448 Delivered-To: patch@linaro.org Received: by 2002:a02:5cc1:0:0:0:0:0 with SMTP id w62csp1101637jad; Thu, 28 Feb 2019 12:43:58 -0800 (PST) X-Google-Smtp-Source: APXvYqxsvqWOaQlF5iov0PGjTmnqWgH0xopyvkVaGppGzazNBZhlEFbIyVZw5Egb7Wdj8rzolpKN X-Received: by 2002:a25:9b06:: with SMTP id y6mr1276943ybn.430.1551386638573; Thu, 28 Feb 2019 12:43:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551386638; cv=none; d=google.com; s=arc-20160816; b=cJ1vzKHFba1c1UJ4Nszxps+/+27vTs0efNIndgA0dySBMQf6x3u6WkfnCocSt/J6OA rmlxFU5INANC845QW0ItKtUix7e3KSr/ghddaOAkju52hHEjPGCPBxePDf6Y+eG7wnOr f5C/Kuu/TTKIc7A53ayhRC4efRn/mCDSokGkn8YDcVQwR0SvnMaNZEATTD10D2yEKPGu 8Q/EEDJ37ZevkmZzxHaNOdgW9duW+o20E+9nU8pu86/cLSJqaD1T3tFkgCmu00ncdgVU WZpIvK3wBxJeYzgU20u0g3/LI4AgMjv/qSo1+mh9sfl8jcWFvEfArBa9SBSo5mAxvMzR tblg== 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=EllpME65K52Vk9BWpXumC4auuC12FJg9WHV6mNAEGpM=; b=PPMma3ATzclCdNpsblgk1/nO70DriIlnH+EQsXqc+WeV1eKH/Vig6A2QLjtx4m0tob /CUQE6WzqV0xouDN/LGzMF6pPkdXprBEbK+3PXeJC0heJYjWAbL+fArjQChgZRrL+Cna 9PiM8WhpY4lajSHgdW8U0iIn5OfnsLqD6cWxu2AlFsbyhz+Y1b72sXVfxqs/WQJ+fR0e GUjRS1YW9zr0xh2h3GTfdUXV0dGl0FByODacmHv3I9nOgZqJdz/4yIz8Ndscy156xGvF eJOpeu8T0iE4ygeXo0lfTqAoVjyyet5D6tbh9Rv1vtIirh66DiuRz4JksqRkaZjvM5Bb 4D6w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=vHNXwHb7; 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 y9si7554393ybp.245.2019.02.28.12.43.58 for (version=TLS1 cipher=AES128-SHA bits=128/128); Thu, 28 Feb 2019 12:43:58 -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=vHNXwHb7; 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]:46263 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gzSX8-0005LT-4k for patch@linaro.org; Thu, 28 Feb 2019 15:43:58 -0500 Received: from eggs.gnu.org ([209.51.188.92]:44140) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gzSKl-0004oo-1D for qemu-devel@nongnu.org; Thu, 28 Feb 2019 15:31:12 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gzSKj-0002Kc-WC for qemu-devel@nongnu.org; Thu, 28 Feb 2019 15:31:10 -0500 Received: from mail-wm1-x334.google.com ([2a00:1450:4864:20::334]:52948) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gzSKh-0002An-20 for qemu-devel@nongnu.org; Thu, 28 Feb 2019 15:31:08 -0500 Received: by mail-wm1-x334.google.com with SMTP id m1so10555419wml.2 for ; Thu, 28 Feb 2019 12:31:04 -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=EllpME65K52Vk9BWpXumC4auuC12FJg9WHV6mNAEGpM=; b=vHNXwHb7VR6QdDgXPBwTdYfght4gwRZ8yh1oAxTfmF5wXXhKpYfZBtk30ZR1/BFpuf +MCgnwQp9eVMB81I+38k3UyeZXqdcszVwLqpi2OLQ+wxzjzvfPdbCzoKxaDatayHDHdT ThFiToMs3nZoWFUzrZuDX3j/DstzpztHdXgz2QNhcIhxAwJ4i5W7i5gIXHh5LbgzIh2W h4M8w/rp9VOBXkQ6Xh68SeI6UYWyLYHkEnipu4TjzE5dzekbEATE/3jGjJSKazDDoZKs QEg0Ly3SzJfFavC1yvoPXgWkfINAMxOAaxtoJCqaTFfGh8x4ayzPfaAv0kVKHdog2Uvo QzVg== 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=EllpME65K52Vk9BWpXumC4auuC12FJg9WHV6mNAEGpM=; b=QjUkntXb9hdEXleU9QVcdVBD8TBQYres9l73js8f+3LTjDnqvgOaizgYS2llNNx6Dg iIOArRWalvgG3F1LxfwLyzj4SIjxHpBzUiMfBiz+nEVxWt65uo2IRawrej+WBtaIyov3 tpuLl/f9ojyYyD+4uov39G/uNH7lamCSwCKot5GDYPBZmhrKqJKLpgtbNPK5Cx60aDiR PbBx29M0ucSGnKdvAvR7DBxb/Q3kK/QTaEodjVreUbeRrKtq7jTvlt8K0T94xs+lSqsu VQZtnmfv6e+gco0TbApCmpMY3Fr4N7ZKaKkpphyzKwMv6zcjGSnWZy+V60cwrlj48rRY VciQ== X-Gm-Message-State: AHQUAubqzNvT8/ZC16RUuCc/1b+NzZh37qcH6Z9ZQs/lGgJQSb1HcobO BiPGEPFjx3b2JyKyPGMv8l/76A== X-Received: by 2002:a1c:5f86:: with SMTP id t128mr921767wmb.87.1551385863640; Thu, 28 Feb 2019 12:31:03 -0800 (PST) Received: from zen.linaroharston ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id p6sm58490357wre.63.2019.02.28.12.31.01 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 28 Feb 2019 12:31:01 -0800 (PST) Received: from zen.linaroharston. (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 2B7C81FF93; Thu, 28 Feb 2019 20:25:38 +0000 (UTC) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Date: Thu, 28 Feb 2019 20:25:37 +0000 Message-Id: <20190228202537.4638-17-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::334 Subject: [Qemu-devel] [PATCH v2 16/16] .travis.yml: add softmmu check-tcg 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: 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" Signed-off-by: Alex Bennée --- .travis.yml | 6 ++++++ 1 file changed, 6 insertions(+) -- 2.20.1 diff --git a/.travis.yml b/.travis.yml index 71b3c4a7a3..90c5908ae1 100644 --- a/.travis.yml +++ b/.travis.yml @@ -255,6 +255,12 @@ matrix: - ./configure ${CONFIG} --extra-cflags="-g3 -O0 -fsanitize=thread -fuse-ld=gold" || { cat config.log && exit 1; } + # Run check-tcg against linux-user - env: - CONFIG="--disable-system" - TEST_CMD="make -j3 check-tcg V=1" + + # Run check-tcg against softmmu targets + - env: + - CONFIG="--target-list=xtensa-softmmu,arm-softmmu" + - TEST_CMD="make -j3 check-tcg V=1"