tests/tcg: enable building for sh4

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 <alex.bennee@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Tested-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
This commit is contained in:
Alex Bennée 2018-04-23 16:25:06 +01:00
parent 21d71c8c41
commit a5ec3e36dc
4 changed files with 24 additions and 0 deletions

View File

@ -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

View File

@ -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

View File

@ -0,0 +1,4 @@
ifneq ($(TARGET_NAME), sh4eb)
DOCKER_IMAGE=debian-sh4-cross
DOCKER_CROSS_COMPILER=sh4-linux-gnu-gcc
endif

View File

@ -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