From nobody Tue Oct 7 07:03:49 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1551385945069953.7715789151065; Thu, 28 Feb 2019 12:32:25 -0800 (PST) Received: from localhost ([127.0.0.1]:46061 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gzSLt-0005Dz-Rh for importer@patchew.org; Thu, 28 Feb 2019 15:32:21 -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) 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) 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-Google-Smtp-Source: APXvYqzTFbrS/5Bye2P2GNzKQ6eZ0tCnQtbiUwCv/ou2W0dmPfo9sQQAsmk7TLPG2d7csPV2ySxCdQ== X-Received: by 2002:a5d:4903:: with SMTP id x3mr852221wrq.151.1551385545036; Thu, 28 Feb 2019 12:25:45 -0800 (PST) From: =?UTF-8?q?Alex=20Benn=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 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::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=20Benn=C3=A9e?= , jcmvbkbc@gmail.com Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Signed-off-by: Alex Benn=C3=A9e --- 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 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=3Ddc232b -CROSS=3Dxtensa-$(CORE)-elf- - -ifndef XT -SIM =3D ../../../xtensa-softmmu/qemu-system-xtensa -SIMFLAGS =3D -M sim -cpu $(CORE) -nographic -semihosting -icount 6 $(EXTFL= AGS) -kernel -SIMDEBUG =3D -s -S -else -SIM =3D xt-run -SIMFLAGS =3D --xtensa-core=3DDC_B_232L --exit_with_target_code $(EXTFLAGS) -SIMDEBUG =3D --gdbserve=3D0 -endif - -HOST_CC =3D gcc -CC =3D $(CROSS)gcc -AS =3D $(CROSS)gcc -x assembler-with-cpp -LD =3D $(CROSS)ld - -XTENSA_SRC_PATH =3D $(SRC_PATH)/tests/tcg/xtensa -INCLUDE_DIRS =3D $(XTENSA_SRC_PATH) $(SRC_PATH)/target/xtensa/core-$(CORE) -XTENSA_INC =3D $(addprefix -I,$(INCLUDE_DIRS)) - -LDFLAGS =3D -Tlinker.ld - -CRT =3D crt.o vectors.o - -TESTCASES +=3D test_b.tst -TESTCASES +=3D test_bi.tst -#TESTCASES +=3D test_boolean.tst -TESTCASES +=3D test_break.tst -TESTCASES +=3D test_bz.tst -TESTCASES +=3D test_cache.tst -TESTCASES +=3D test_clamps.tst -TESTCASES +=3D test_extui.tst -TESTCASES +=3D test_fail.tst -TESTCASES +=3D test_interrupt.tst -TESTCASES +=3D test_loop.tst -TESTCASES +=3D test_mac16.tst -TESTCASES +=3D test_max.tst -TESTCASES +=3D test_min.tst -TESTCASES +=3D test_mmu.tst -TESTCASES +=3D test_mul16.tst -TESTCASES +=3D test_mul32.tst -TESTCASES +=3D test_nsa.tst -TESTCASES +=3D test_phys_mem.tst -ifdef XT -TESTCASES +=3D test_pipeline.tst -endif -TESTCASES +=3D test_quo.tst -TESTCASES +=3D test_rem.tst -TESTCASES +=3D test_rst0.tst -TESTCASES +=3D test_s32c1i.tst -TESTCASES +=3D test_sar.tst -TESTCASES +=3D test_sext.tst -TESTCASES +=3D test_shift.tst -TESTCASES +=3D test_sr.tst -TESTCASES +=3D test_timer.tst -TESTCASES +=3D 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/Ma= kefile.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 =3D $(SRC_PATH)/tests/tcg/xtensa +XTENSA_ALL =3D $(filter-out $(XTENSA_SRC)/linker.ld.S,$(wildcard $(XTENSA_= SRC)/*.S)) +XTENSA_TESTS =3D $(patsubst $(XTENSA_SRC)/%.S, %, $(XTENSA_ALL)) +# Filter out common blobs and broken tests +XTENSA_BROKEN_TESTS =3D crt vectors test_boolean test_pipeline test_fail +XTENSA_USABLE_TESTS =3D $(filter-out $(XTENSA_BROKEN_TESTS), $(XTENSA_TEST= S)) + +# add to the list of tests +TESTS +=3D $(XTENSA_USABLE_TESTS) +VPATH +=3D $(XTENSA_SRC) + +CORE=3Ddc232b +QEMU_OPTS+=3D-M sim -cpu $(CORE) -nographic -semihosting -icount 6 $(EXTFL= AGS) -kernel + +INCLUDE_DIRS =3D $(SRC_PATH)/target/xtensa/core-$(CORE) +XTENSA_INC =3D $(addprefix -I,$(INCLUDE_DIRS)) + +LDFLAGS =3D -Tlinker.ld -nostartfiles -nostdlib + +CRT =3D 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 --=20 2.20.1