Here's the patches again, split and fixed as suggested by Aurelien. It should now be possible to apply host and target support separately. See the individual patches for details on what has changed.
CU Uli Ulrich Hecht (12): TCG "sync" op S/390 disassembler fixes S/390 CPU emulation S/390 host build system support S/390 target build system support S/390 host support for TCG linux-user: S/390 64-bit (s390x) support linux-user: don't do locking in single-threaded processes linux-user: dup3, fallocate syscalls linux-user: define a couple of syscalls for non-uid16 targets linux-user: getpriority errno fix enable CPU_QuadU for s390x configure | 58 +- cpu-all.h | 2 +- cpu-defs.h | 8 + cpu-exec.c | 16 +- disas.c | 3 + dyngen-exec.h | 2 +- linux-user/elfload.c | 18 + linux-user/main.c | 89 ++ linux-user/s390x/syscall.h | 25 + linux-user/s390x/syscall_nr.h | 348 +++++ linux-user/s390x/target_signal.h | 26 + linux-user/s390x/termbits.h | 283 ++++ linux-user/signal.c | 314 +++++ linux-user/syscall.c | 156 ++- linux-user/syscall_defs.h | 56 +- qemu-binfmt-conf.sh | 5 +- s390-dis.c | 4 +- s390x.ld | 194 +++ target-s390x/cpu.h | 118 ++ target-s390x/exec.h | 51 + target-s390x/helper.c | 63 + target-s390x/helpers.h | 128 ++ target-s390x/op_helper.c | 1639 ++++++++++++++++++++++ target-s390x/translate.c | 2834 ++++++++++++++++++++++++++++++++++++++ tcg/s390/tcg-target.c | 1145 +++++++++++++++ tcg/s390/tcg-target.h | 76 + tcg/tcg-op.h | 12 + tcg/tcg-opc.h | 2 + tcg/tcg.c | 6 + 29 files changed, 7640 insertions(+), 41 deletions(-) create mode 100644 linux-user/s390x/syscall.h create mode 100644 linux-user/s390x/syscall_nr.h create mode 100644 linux-user/s390x/target_signal.h create mode 100644 linux-user/s390x/termbits.h create mode 100644 s390x.ld create mode 100644 target-s390x/cpu.h create mode 100644 target-s390x/exec.h create mode 100644 target-s390x/helper.c create mode 100644 target-s390x/helpers.h create mode 100644 target-s390x/op_helper.c create mode 100644 target-s390x/translate.c create mode 100644 tcg/s390/tcg-target.c create mode 100644 tcg/s390/tcg-target.h