From nobody Sun Nov 9 23:43:10 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 155241227789096.29748566185503; Tue, 12 Mar 2019 10:37:57 -0700 (PDT) Received: from localhost ([127.0.0.1]:56544 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h3lLX-0006GX-Mo for importer@patchew.org; Tue, 12 Mar 2019 13:37:47 -0400 Received: from eggs.gnu.org ([209.51.188.92]:50782) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h3l2v-0005Wi-AJ for qemu-devel@nongnu.org; Tue, 12 Mar 2019 13:18:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h3kuQ-00076p-Ne for qemu-devel@nongnu.org; Tue, 12 Mar 2019 13:09:47 -0400 Received: from mail-wm1-x32e.google.com ([2a00:1450:4864:20::32e]:51896) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1h3kuQ-00075s-Fj for qemu-devel@nongnu.org; Tue, 12 Mar 2019 13:09:46 -0400 Received: by mail-wm1-x32e.google.com with SMTP id n19so3509335wmi.1 for ; Tue, 12 Mar 2019 10:09:46 -0700 (PDT) Received: from zen.linaroharston ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id s12sm3052553wro.67.2019.03.12.10.09.36 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 12 Mar 2019 10:09:43 -0700 (PDT) Received: from zen.linaroharston. (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 0B3E61FF9A; Tue, 12 Mar 2019 17:09:32 +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=WfX9u8xi2Ou3qZgXk5DZ/ahAT5TsywCrJVvvreILrXw=; b=ywjPANb8SJztgOCKzOiHDqZJsPBwZ1oMSSNoqYURGijEJqG+7ZTVmUA19t+80Ad40p 6IpT8V1JMfFIhSKQoqH9cwRJvdA/K50oBCCKQF4sA79WNRONo/hfJBiaeab3Xzn6xU1x rvuMOTX3fupQCvX4A05cGGCA/kcFsxNHuVYI+c4/r4YvzRayQoKkmTtL7n9AnVjnqh4R 6RRe4kx/ly+6JWqAf0m1G/Yf6IMZRxI/LKgRM6lf8lTG2tKDFdBybhl6cocyk1NZ/uk3 5tfnSggz5mTHu7CpiusAvMpg0snNL5pL5gaoj8oTEh4/f2EfoXtf6JSdyRtGwDsmVdrI onOg== 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=WfX9u8xi2Ou3qZgXk5DZ/ahAT5TsywCrJVvvreILrXw=; b=lhxwP0VxBrT9XcU4Rw8XjPUQwrSio0Wubd1uVebWuG7MUFO5Ro0ZCLL5FERml99Gqy 2P5270r/7gsta4XNR5yoMKbyqFRxghCSmy/edzTxqgPKJkYYVagumHkNB30TlY/tsWnQ jZMdU0odNhkYk8Ek7RDSvffmU+icY4ROsElDl7jjX74o+1grG9P9hcG5ZmwfLIWXaHFv SbdTyI2YytmkhCc4ZzqwiPqwtC6+OPmliKknmlltaTgdpRReu0hD/PmvviVVvLzr+b0U YlugMq+6gn2SxxiI4/Zb/89JC0PYyQcPwX9FVTBYefIdtCinrJOOeTpEdN8j8kDJHUDO fYrA== X-Gm-Message-State: APjAAAWm/BCtItkh328Tc+ZZLtH3P4KCULjvRpGqwkvJE58GcVDSoTyG YY4vfEHGEfRZS3zOhXoJN+j2iokqaQc= X-Google-Smtp-Source: APXvYqyQnCe9xy9nIJIx8tbSaSWZ1qhBwGiQGctNw93v5n7yq31K6kXfGgyaal0jdkmZvTWsplWoXQ== X-Received: by 2002:a1c:2743:: with SMTP id n64mr574747wmn.143.1552410585246; Tue, 12 Mar 2019 10:09:45 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: peter.maydell@linaro.org Date: Tue, 12 Mar 2019 17:09:18 +0000 Message-Id: <20190312170931.25013-14-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190312170931.25013-1-alex.bennee@linaro.org> References: <20190312170931.25013-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::32e Subject: [Qemu-devel] [PULL 13/26] 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: =?UTF-8?q?Alex=20Benn=C3=A9e?= , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Signed-off-by: Alex Benn=C3=A9e 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