[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 37/56] tests/tcg: enable building for sh4
From: |
Alex Bennée |
Subject: |
[Qemu-devel] [PULL 37/56] tests/tcg: enable building for sh4 |
Date: |
Tue, 19 Jun 2018 16:44:16 +0100 |
As before, using Debian SID compilers. While the compiler can be
coerced into generating big-endian code it seems the linker can't deal
with it so we only enable the building for little endian SH4.
Signed-off-by: Alex Bennée <address@hidden>
Reviewed-by: Philippe Mathieu-Daudé <address@hidden>
Tested-by: Philippe Mathieu-Daudé <address@hidden>
---
v5
- add Makefile.target with EXTRA_RUNS for mmap tests
diff --git a/tests/docker/Makefile.include b/tests/docker/Makefile.include
index 59dd8e314d..a2dd307a8e 100644
--- a/tests/docker/Makefile.include
+++ b/tests/docker/Makefile.include
@@ -73,6 +73,7 @@ docker-image-debian-sid: NOCACHE=1
docker-image-debian-alpha-cross: docker-image-debian-sid
docker-image-debian-hppa-cross: docker-image-debian-sid
docker-image-debian-m68k-cross: docker-image-debian-sid
+docker-image-debian-sh4-cross: docker-image-debian-sid
docker-image-travis: NOUSER=1
# Specialist build images, sometimes very limited tools
diff --git a/tests/docker/dockerfiles/debian-sh4-cross.docker
b/tests/docker/dockerfiles/debian-sh4-cross.docker
new file mode 100644
index 0000000000..88a2423094
--- /dev/null
+++ b/tests/docker/dockerfiles/debian-sh4-cross.docker
@@ -0,0 +1,12 @@
+#
+# Docker cross-compiler target
+#
+# This docker target builds on the debian sid base image which
+# contains cross compilers for Debian "ports" targets.
+#
+FROM qemu:debian-sid
+
+RUN DEBIAN_FRONTEND=noninteractive eatmydata \
+ apt-get install -y --no-install-recommends \
+ gcc-sh4-linux-gnu \
+ libc6-dev-sh4-cross
diff --git a/tests/tcg/sh4/Makefile.include b/tests/tcg/sh4/Makefile.include
new file mode 100644
index 0000000000..ad21594d9d
--- /dev/null
+++ b/tests/tcg/sh4/Makefile.include
@@ -0,0 +1,4 @@
+ifneq ($(TARGET_NAME), sh4eb)
+DOCKER_IMAGE=debian-sh4-cross
+DOCKER_CROSS_COMPILER=sh4-linux-gnu-gcc
+endif
diff --git a/tests/tcg/sh4/Makefile.target b/tests/tcg/sh4/Makefile.target
new file mode 100644
index 0000000000..9d18d44612
--- /dev/null
+++ b/tests/tcg/sh4/Makefile.target
@@ -0,0 +1,7 @@
+# -*- Mode: makefile -*-
+#
+# SuperH specific tweaks
+#
+
+# On sh Linux supports 4k, 8k, 16k and 64k pages (but only 4k currently works)
+EXTRA_RUNS+=run-test-mmap-4096 # run-test-mmap-8192 run-test-mmap-16384
run-test-mmap-65536
--
2.17.1
- [Qemu-devel] [PULL 03/56] configure: allow user to specify --cross-cc-cflags-foo=, (continued)
- [Qemu-devel] [PULL 03/56] configure: allow user to specify --cross-cc-cflags-foo=, Alex Bennée, 2018/06/19
- [Qemu-devel] [PULL 05/56] docker: Add "cc" subcommand, Alex Bennée, 2018/06/19
- [Qemu-devel] [PULL 07/56] docker: allow "cc" command to run in user context, Alex Bennée, 2018/06/19
- [Qemu-devel] [PULL 08/56] docker: Makefile.include introduce DOCKER_SCRIPT, Alex Bennée, 2018/06/19
- [Qemu-devel] [PULL 02/56] configure: move i386_cc to cross_cc_i386, Alex Bennée, 2018/06/19
- [Qemu-devel] [PULL 06/56] docker: extend "cc" command to accept compiler, Alex Bennée, 2018/06/19
- [Qemu-devel] [PULL 09/56] tests/tcg: move architecture independent tests into subdir, Alex Bennée, 2018/06/19
- [Qemu-devel] [PULL 16/56] tests/tcg/i386: Build fix for hello-i386, Alex Bennée, 2018/06/19
- [Qemu-devel] [PULL 10/56] tests/tcg/multiarch: Build fix for linux-test, Alex Bennée, 2018/06/19
- [Qemu-devel] [PULL 13/56] tests/tcg/multiarch: move most output to stdout, Alex Bennée, 2018/06/19
- [Qemu-devel] [PULL 37/56] tests/tcg: enable building for sh4,
Alex Bennée <=
- [Qemu-devel] [PULL 14/56] tests/tcg: move i386 specific tests into subdir, Alex Bennée, 2018/06/19
- [Qemu-devel] [PULL 17/56] tests/tcg/i386: fix test-i386, Alex Bennée, 2018/06/19
- [Qemu-devel] [PULL 22/56] tests/tcg: move ARM specific tests into subdir, Alex Bennée, 2018/06/19
- [Qemu-devel] [PULL 18/56] tests/tcg/i386: add runner for test-i386-fprem, Alex Bennée, 2018/06/19
- [Qemu-devel] [PULL 27/56] tests/tcg: move MIPS specific tests into subdir, Alex Bennée, 2018/06/19
- [Qemu-devel] [PULL 28/56] tests/tcg: enable building for MIPS, Alex Bennée, 2018/06/19
- [Qemu-devel] [PULL 51/56] docker: docker.py don't conflate checksums for extra_files, Alex Bennée, 2018/06/19
- [Qemu-devel] [PULL 20/56] tests/tcg/i386/test-i386: use modern vector_size attributes, Alex Bennée, 2018/06/19
- [Qemu-devel] [PULL 30/56] tests/tcg/mips: include common mips hello-mips, Alex Bennée, 2018/06/19
- [Qemu-devel] [PULL 36/56] tests/tcg: enable building for m68k, Alex Bennée, 2018/06/19