From nobody Tue Feb 10 00:39:39 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.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 208.118.235.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 [208.118.235.17]) by mx.zohomail.com with SMTPS id 154445635362612.81220131641578; Mon, 10 Dec 2018 07:39:13 -0800 (PST) Received: from localhost ([::1]:33383 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gWNeK-0000IZ-AG for importer@patchew.org; Mon, 10 Dec 2018 10:39:12 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43369) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gWNUD-0008HD-9K for qemu-devel@nongnu.org; Mon, 10 Dec 2018 10:28:46 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gWNUA-0000YN-18 for qemu-devel@nongnu.org; Mon, 10 Dec 2018 10:28:44 -0500 Received: from mail-wr1-x443.google.com ([2a00:1450:4864:20::443]:37075) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gWNU9-0000Xp-KD for qemu-devel@nongnu.org; Mon, 10 Dec 2018 10:28:41 -0500 Received: by mail-wr1-x443.google.com with SMTP id j10so10911291wru.4 for ; Mon, 10 Dec 2018 07:28:41 -0800 (PST) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id o4sm8595618wmh.40.2018.12.10.07.28.34 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 10 Dec 2018 07:28:36 -0800 (PST) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id E33373E07A9; Mon, 10 Dec 2018 15:28:30 +0000 (GMT) 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=iP7yjGj6DQYxtptdhaqdZYKaVje7sF0dhM48afUYuHY=; b=ZniW+4e/HXir49G6IUIz1LEYuSlrCL6AizyCxNXh6bfCpb+Rc5Z37nQP/LsKkwUlpz n3VFJlEutGzdh6yaJO7rfh7vMlc/G/5YIf5OSLH5ciAB/GW9DSxpxcfx46AGk/IYOmtS Fx8+5oOG62grKKW9oqEhZcVbSXLAKJpMGmpO4= 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=iP7yjGj6DQYxtptdhaqdZYKaVje7sF0dhM48afUYuHY=; b=Ugnaou2GphsPsMl9nwysAz5gs6CBol9UeoY4hvfLTduUA9VfnYC4Wdc/h21sr8vFNO 31pYMFmVya2Yj+jzmOgNoag/VqO7B4QuKLgD26jf3GA06jP6x/c8Qq8+8DpD3m6LP38T ToIMV1YR5CEYlSFUuzzIinFnDmwJTJwtN5uJGZzpl8JKApK3cdIAXG7amOzPuZvYVRVG FENpr5twBv85xwbIRxpaIOONXJY+YZSqq4T9Kbwy45hdswru1Fpgc3UPv4fQuC6vwiof cgbk29S8BpTE/ciWRXndeBihrPvbG5dt3x4Zv1euH8v2jWtYzuw8NPvNqb5hjnVjTCfV 6n5Q== X-Gm-Message-State: AA+aEWZ9YVEhPtGP/ZZzQyGn2bbevxeeJrnZgWPe8oe2Ivb+YGD6XEBJ GApJRDbGE86zw4KhN4BAeCqbhw== X-Google-Smtp-Source: AFSGD/W2Fl9mrvVFJfSm9rro4Ib2r+jBLh3O0YgyR2F2mhaXsm8zWphFp6AB8evMjZQmL1Zm8+qRtA== X-Received: by 2002:adf:891a:: with SMTP id s26mr10148856wrs.44.1544455720352; Mon, 10 Dec 2018 07:28:40 -0800 (PST) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Date: Mon, 10 Dec 2018 15:28:29 +0000 Message-Id: <20181210152829.29271-14-alex.bennee@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181210152829.29271-1-alex.bennee@linaro.org> References: <20181210152829.29271-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] [RFC PATCH 13/13] tests/tcg: enable cris 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: Fam Zheng , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , jcmvbkbc@gmail.com, michael@walle.cc, amarkovic@wavecomp.com, edgar.iglesias@gmail.com, shorne@gmail.com, =?UTF-8?q?Alex=20Benn=C3=A9e?= , 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) Currently we don't actually run them. Signed-off-by: Alex Benn=C3=A9e --- tests/docker/Makefile.include | 1 + tests/tcg/cris/Makefile | 168 ------------------------- tests/tcg/cris/Makefile.include | 6 + tests/tcg/cris/Makefile.softmmu-target | 50 ++++++++ 4 files changed, 57 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.softmmu-target diff --git a/tests/docker/Makefile.include b/tests/docker/Makefile.include index 9467e9d088..e1ed0df5f9 100644 --- a/tests/docker/Makefile.include +++ b/tests/docker/Makefile.include @@ -128,6 +128,7 @@ docker-image-tricore-cross: docker-image-debian9 DOCKER_PARTIAL_IMAGES +=3D debian-alpha-cross debian-hppa-cross debian-m68= k-cross debian-sh4-cross DOCKER_PARTIAL_IMAGES +=3D debian-sparc64-cross debian-mips64-cross debian= -riscv64-cross DOCKER_PARTIAL_IMAGES +=3D debian-tricore-cross debian-powerpc-cross fedor= a-i386-cross +DOCKER_PARTIAL_IMAGES +=3D fedora-cris-cross =20 # 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=3Dcrisv32-axis-linux-gnu- -SIM=3D../../../cris-linux-user/qemu-cris -L ./ -SIMG=3Dcris-axis-linux-gnu-run --sysroot=3D./ - -CC =3D $(CROSS)gcc -#AS =3D $(CROSS)as -AS =3D $(CC) -x assembler-with-cpp -SIZE =3D $(CROSS)size -LD =3D $(CC) -OBJCOPY =3D $(CROSS)objcopy - -# we rely on GCC inline:ing the stuff we tell it to in many places here. -CFLAGS =3D -Winline -Wall -g -O2 -static -NOSTDFLAGS =3D -nostartfiles -nostdlib -ASFLAGS +=3D -g -Wa,-I,$(SRC_PATH)/tests/tcg/cris/ -LDLIBS =3D -NOSTDLIBS =3D -lgcc - -CRT =3D crt.o -SYS =3D sys.o -TESTCASES +=3D check_abs.tst -TESTCASES +=3D check_addc.tst -TESTCASES +=3D check_addcm.tst -TESTCASES +=3D check_addcv17.tst -TESTCASES +=3D check_addo.tst -TESTCASES +=3D check_addoq.tst -TESTCASES +=3D check_addi.tst -TESTCASES +=3D check_addiv32.tst -TESTCASES +=3D check_addm.tst -TESTCASES +=3D check_addr.tst -TESTCASES +=3D check_addq.tst -TESTCASES +=3D check_addxc.tst -TESTCASES +=3D check_addxm.tst -TESTCASES +=3D check_addxr.tst -TESTCASES +=3D check_andc.tst -TESTCASES +=3D check_andm.tst -TESTCASES +=3D check_andr.tst -TESTCASES +=3D check_andq.tst -TESTCASES +=3D check_asr.tst -TESTCASES +=3D check_ba.tst -TESTCASES +=3D check_bas.tst -TESTCASES +=3D check_bcc.tst -TESTCASES +=3D check_bound.tst -TESTCASES +=3D check_boundc.tst -TESTCASES +=3D check_boundr.tst -TESTCASES +=3D check_btst.tst -TESTCASES +=3D check_clearfv32.tst -TESTCASES +=3D check_cmpc.tst -TESTCASES +=3D check_cmpr.tst -TESTCASES +=3D check_cmpq.tst -TESTCASES +=3D check_cmpm.tst -TESTCASES +=3D check_cmpxc.tst -TESTCASES +=3D check_cmpxm.tst -TESTCASES +=3D check_cmp-2.tst -TESTCASES +=3D check_clrjmp1.tst -TESTCASES +=3D check_dstep.tst -TESTCASES +=3D check_ftag.tst -TESTCASES +=3D check_int64.tst -# check_jsr is broken. -#TESTCASES +=3D check_jsr.tst -TESTCASES +=3D check_mcp.tst -TESTCASES +=3D check_movei.tst -TESTCASES +=3D check_mover.tst -TESTCASES +=3D check_moverm.tst -TESTCASES +=3D check_moveq.tst -TESTCASES +=3D check_movemr.tst -TESTCASES +=3D check_movemrv32.tst -TESTCASES +=3D check_movecr.tst -TESTCASES +=3D check_movmp.tst -TESTCASES +=3D check_movpr.tst -TESTCASES +=3D check_movprv32.tst -TESTCASES +=3D check_movdelsr1.tst -TESTCASES +=3D check_movpmv32.tst -TESTCASES +=3D check_movsr.tst -TESTCASES +=3D check_movsm.tst -TESTCASES +=3D check_movscr.tst -TESTCASES +=3D check_movur.tst -TESTCASES +=3D check_movum.tst -TESTCASES +=3D check_movucr.tst -TESTCASES +=3D check_mulx.tst -TESTCASES +=3D check_mulv32.tst -TESTCASES +=3D check_neg.tst -TESTCASES +=3D check_not.tst -TESTCASES +=3D check_lz.tst -TESTCASES +=3D check_lapc.tst -TESTCASES +=3D check_lsl.tst -TESTCASES +=3D check_lsr.tst -TESTCASES +=3D check_orc.tst -TESTCASES +=3D check_orm.tst -TESTCASES +=3D check_orr.tst -TESTCASES +=3D check_orq.tst -TESTCASES +=3D check_ret.tst -TESTCASES +=3D check_swap.tst -TESTCASES +=3D check_scc.tst -TESTCASES +=3D check_subc.tst -TESTCASES +=3D check_subq.tst -TESTCASES +=3D check_subr.tst -TESTCASES +=3D check_subm.tst -TESTCASES +=3D check_glibc_kernelversion.tst -TESTCASES +=3D check_xarith.tst - -TESTCASES +=3D check_hello.ctst -TESTCASES +=3D check_stat1.ctst -TESTCASES +=3D check_stat2.ctst -TESTCASES +=3D check_stat3.ctst -TESTCASES +=3D check_stat4.ctst -TESTCASES +=3D check_openpf1.ctst -TESTCASES +=3D check_openpf2.ctst -TESTCASES +=3D check_openpf3.ctst -TESTCASES +=3D check_openpf5.ctst -TESTCASES +=3D check_mapbrk.ctst -TESTCASES +=3D check_mmap1.ctst -TESTCASES +=3D check_mmap2.ctst -TESTCASES +=3D check_mmap3.ctst -TESTCASES +=3D check_sigalrm.ctst -TESTCASES +=3D check_time2.ctst -TESTCASES +=3D check_settls1.ctst - -TESTCASES +=3D check_gcctorture_pr28634-1.ctst -#TESTCASES +=3D 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=3Dv10 -c $< -o $@ - -crtv10.o: crt.s - $(AS) $(ASFLAGS) -mcpu=3Dv10 -c $< -o $@ - -check_addcv17.tst: ASFLAGS +=3D -mcpu=3Dv10 -check_addcv17.tst: CRT :=3D crtv10.o -check_addcv17.tst: SYS :=3D 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=3D; \ - case $$case in *v17*) SIMARGS=3D"-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.incl= ude 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=3Dfedora-cris-cross +DOCKER_CROSS_COMPILER=3Dcris-linux-gnu-gcc diff --git a/tests/tcg/cris/Makefile.softmmu-target b/tests/tcg/cris/Makefi= le.softmmu-target new file mode 100644 index 0000000000..988741f1b3 --- /dev/null +++ b/tests/tcg/cris/Makefile.softmmu-target @@ -0,0 +1,50 @@ +# -*- Mode: makefile -*- +# +# Cris softmmu tests +# + +CRIS_SRC =3D $(SRC_PATH)/tests/tcg/cris/system +CRIS_ALL =3D $(wildcard $(CRIS_SRC)/*.s) +CRIS_TESTS =3D $(patsubst $(CRIS_SRC)/%.s, %, $(CRIS_ALL)) +# Filter out common blobs and broken tests +CRIS_BROKEN_TESTS =3D crt check_jsr +# upstream GCC doesn't support v32 +CRIS_BROKEN_TESTS +=3D check_mcp check_mulv32 check_addiv32 check_movpmv32 +CRIS_BROKEN_TESTS +=3D check_movprv32 check_clearfv32 check_movemrv32 chec= k_bas +CRIS_BROKEN_TESTS +=3D check_lapc check_movei +# no sure why +CRIS_BROKEN_TESTS +=3D check_scc check_xarith + +CRIS_USABLE_TESTS =3D $(filter-out $(CRIS_BROKEN_TESTS), $(CRIS_TESTS)) +CRIS_RUNS =3D $(patsubst %, run-%, $(CRIS_USABLE_TESTS)) + +# add to the list of tests +TESTS +=3D $(CRIS_USABLE_TESTS) +VPATH +=3D $(CRIS_SRC) + +AS =3D $(CC) -x assembler-with-cpp +LD =3D $(CC) + +# we rely on GCC inline:ing the stuff we tell it to in many places here. +CFLAGS =3D -Winline -Wall -g -O2 -static +NOSTDFLAGS =3D -nostartfiles -nostdlib +ASFLAGS +=3D -mcpu=3Dv10 -g -Wa,-I,$(SRC_PATH)/tests/tcg/cris/system +CRT_FILES =3D 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) + +# Currently we skip these as the system tests originally targeted the +# GNU Simulator and probably need some crafting to load as a kernel +# into QEMU +$(CRIS_RUNS): + $(call skip-test, $@, "NEEDS MAGIC INVOCATION") --=20 2.17.1