On 11/15/2015 07:49 PM, Laurent Vivier wrote: > In GitHub repo (https://github.com/vivier/qemu-m68k), on branch > 680x0-v2.4.0, you can find a LXC script to create debian container: > (...)
Looks interesting. I have never dealt with LXC, but I'll have a look. >>> [1] https://wiki.debian.org/QEMU >>> [2] https://bugs.launchpad.net/qemu/+bug/1516408 >>> [3] https://bugs.launchpad.net/ubuntu/+source/qemu-linaro/+bug/1254824 > > When you find a bug, or want a feature, in qemu-linux-user don't > hesitate to send it to me :) Can you comment on the issue regarding the missing syscall 186 on qemu-sh4? I have modified the qemu source code now to make the sigaltstack syscall available on sh4 as well and it appears to me that this syscall is not architecture-specific but I am not sure. At least according to the kernel sources, 186 maps to the same syscall on sh32 and sh64 as it does on other architectures. I have rebuilt the qemu version from unstable now (1:2.4+dfsg-4), backported it to jessie and added TARGET_SH4 to the list of architectures which has sigaltstack. I did my first test build by successfully building xbill on qemu-sh4 with gcc-5 and I can install and run the game fine on my SH7785LCR board. Any comments? Can we merge this patch (see attached)? Adrian -- .''`. John Paul Adrian Glaubitz : :' : Debian Developer - glaub...@debian.org `. `' Freie Universitaet Berlin - glaub...@physik.fu-berlin.de `- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913
Description: Enable sigaltstack syscall on sh4. TODO: Put a short summary on the line above and replace this paragraph with a longer explanation of this change. Complete the meta-information with other relevant fields (see below for details). To make it easier, the information below has been extracted from the changelog. Adjust it or drop it. . qemu (1:2.4+dfsg-4+zedv1) jessie-backports; urgency=medium . * Local backport for Jessie. * Enable sigaltstack syscall for sh4 in linux-user/syscall.c. Author: John Paul Adrian Glaubitz <glaub...@physik.fu-berlin.de> --- The information above should follow the Patch Tagging Guidelines, please checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here are templates for supplementary fields that you might want to add: Origin: <vendor|upstream|other>, <url of original patch> Bug: <url in upstream bugtracker> Bug-Debian: https://bugs.debian.org/<bugnumber> Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber> Forwarded: <no|not-needed|url proving that it has been forwarded> Reviewed-By: <name and email of someone who approved the patch> Last-Update: <YYYY-MM-DD> --- qemu-2.4+dfsg.orig/linux-user/syscall.c +++ qemu-2.4+dfsg/linux-user/syscall.c @@ -8152,7 +8152,8 @@ abi_long do_syscall(void *cpu_env, int n case TARGET_NR_sigaltstack: #if defined(TARGET_I386) || defined(TARGET_ARM) || defined(TARGET_MIPS) || \ defined(TARGET_SPARC) || defined(TARGET_PPC) || defined(TARGET_ALPHA) || \ - defined(TARGET_M68K) || defined(TARGET_S390X) || defined(TARGET_OPENRISC) + defined(TARGET_M68K) || defined(TARGET_S390X) || defined(TARGET_OPENRISC) || \ + defined(TARGET_SH4) ret = do_sigaltstack(arg1, arg2, get_sp_from_cpustate((CPUArchState *)cpu_env)); break; #else