From nobody Tue Feb 10 02:55:10 2026 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 1552407203249463.95884872029296; Tue, 12 Mar 2019 09:13:23 -0700 (PDT) Received: from localhost ([127.0.0.1]:55125 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h3k1k-0008Ur-QN for importer@patchew.org; Tue, 12 Mar 2019 12:13:16 -0400 Received: from eggs.gnu.org ([209.51.188.92]:60689) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h3jtb-0001lI-HQ for qemu-devel@nongnu.org; Tue, 12 Mar 2019 12:04:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h3joq-0000M7-7i for qemu-devel@nongnu.org; Tue, 12 Mar 2019 11:59:57 -0400 Received: from mail-wr1-x444.google.com ([2a00:1450:4864:20::444]:37598) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1h3joq-0000Lf-0C for qemu-devel@nongnu.org; Tue, 12 Mar 2019 11:59:56 -0400 Received: by mail-wr1-x444.google.com with SMTP id y15so3303980wro.4 for ; Tue, 12 Mar 2019 08:59:55 -0700 (PDT) Received: from zen.linaroharston ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id v196sm4469706wmf.15.2019.03.12.08.59.49 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 12 Mar 2019 08:59:51 -0700 (PDT) Received: from zen.linaroharston. (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 07D841FF90; Tue, 12 Mar 2019 15:59:48 +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=RST/eKFcEk8+40q8b1Nxx3oDSPee4weCvEgzIdUEMVE=; b=XIOpTeFapKyTOQ9jIG2NpO2fSaOBVZlHMvdk30i10BbTenPOmuwmzKm0T+Ji5Eb3IL dZlOBLiDch9O5JgzZ812Q0gi5I2F0k0jZlQYSxpzWM7aFSN4/22OYgH0WKmPPIDvEipW vKZQcVhEBF1F8oERqGAsrsxW74B844x1ch3/F7Qzi3SlHCDaf7+/5OvqS3aOL72b0lAR GPwYuXbZkNFfFyzQE8rRSA5PkVgyWVmSM2zNR31/tQJGzlDKSbQwvb8IN8ycTzSh5hsp XB2Hc+hBUZCOzvS7zbuwJ3+vhGL9S+QxdPiQJitnmeTxRfR0i1EVE8O6dlbOryHzYLSl cYFQ== 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=RST/eKFcEk8+40q8b1Nxx3oDSPee4weCvEgzIdUEMVE=; b=c/PnDMdcAMJKaM5lrfkQ+tjMUGjDWyVZ2AXSohmZIo4xq3EL0CzMGO3ZLGFG+aAnYU 6cC6N4OeqBJ2igQv3AVFMfgfYonczaTz0u7VbE5Qmcx2ftucWqEaQ5RNNyI+L++L4j+v t04diVZy1BLVdXs+osOJMXEl91Q/beS0SKAUjsWrX68g9OeiEyi9LPHmNqY11nWrgLSL B2AQigTNWU2VVsJF74NlY3w9lk5xJYFAcoxkNWX37YUD2O3HoKSOG8dcbIcZbXERggyi i77fXCi2BRwg+jGYgUpqK5fWt7+ajcWFPmOAsw0zviFo/uIti9DAHrsFBztuBJKukrUy kAaQ== X-Gm-Message-State: APjAAAXWuLzu+HjkdnfMQuYX2MRhxISAxMBduCebhyJNel3+N7Bb5lkS NUHUjIAQOOv1hBO3J/nWlNYb3A== X-Google-Smtp-Source: APXvYqyJ6WVno3oFN1pwqd0LftdbKP+K2qr7RtQb1MV4vJeGFMtrQ7lAof3c5pty9vk0v5chfU+C5g== X-Received: by 2002:adf:e643:: with SMTP id b3mr4933055wrn.262.1552406395015; Tue, 12 Mar 2019 08:59:55 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Date: Tue, 12 Mar 2019 15:59:34 +0000 Message-Id: <20190312155947.14918-9-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190312155947.14918-1-alex.bennee@linaro.org> References: <20190312155947.14918-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::444 Subject: [Qemu-devel] [PATCH v4 08/21] 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: peter.maydell@linaro.org, famz@redhat.com, =?UTF-8?q?Alex=20Benn=C3=A9e?= , richard.henderson@linaro.org, f4bug@amsat.org, agraf@suse.de, cota@braap.org, aurelien@aurel32.net 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 | 102 ----------------------- tests/tcg/xtensa/Makefile.softmmu-target | 42 ++++++++++ 2 files changed, 42 insertions(+), 102 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 2bd4491769..0000000000 --- a/tests/tcg/xtensa/Makefile +++ /dev/null @@ -1,102 +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 - -ASFLAGS =3D -Wa,--no-absolute-literals -vectors_ASFLAGS =3D -mtext-section-literals - -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_flix.tst -TESTCASES +=3D test_fp0_arith.tst -TESTCASES +=3D test_fp0_conv.tst -TESTCASES +=3D test_fp1.tst -TESTCASES +=3D test_fp_cpenable.tst -TESTCASES +=3D test_interrupt.tst -TESTCASES +=3D test_loop.tst -TESTCASES +=3D test_lsc.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) $(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..86bb47db77 --- /dev/null +++ b/tests/tcg/xtensa/Makefile.softmmu-target @@ -0,0 +1,42 @@ +# +# 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)) + +vectors_ASFLAGS =3D -mtext-section-literals +ASFLAGS =3D -Wa,--no-absolute-literals +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) $(ASFLAGS) -c $< -o $@ + +%: %.S + $(CC) $(XTENSA_INC) $(ASFLAGS) $< -o $@ $(LDFLAGS) $(NOSTDFLAGS) $(CRT) + +endif --=20 2.20.1