[Qemu-devel] [Bug 833658] Re: Qemu ppc does not boot Debian 3.1r8

2012-01-11 Thread John Paul Adrian Glaubitz
Hi, this might be related to this upstream bug report: http://lists.gnu.org/archive/html/qemu-devel/2011-10/msg02929.html. Since it seems to be an issue with the mapping of the video memory, I have tried changing the graphics adapter. After changing it from vga to cirrus, the virtual machine in

[Qemu-devel] [Bug 1516408] [NEW] sh4: Unsupported syscall: 186

2015-11-16 Thread John Paul Adrian Glaubitz
Public bug reported: Hello! I'm currently testing qemu as a possibility to set up a buildd for the Debian sh4 port. I set up qemu and an sh4 chroot as described in the Debian Wiki [1]. This seems to be working mostly fine (besides the fact that qemu segfaults on an amd64 host while it runs fine

[Qemu-devel] [Bug 1516408] Re: sh4: Unsupported syscall: 186

2015-11-16 Thread John Paul Adrian Glaubitz
I have enabled this syscall in the source code now and performing a test build and run and will report back. Furthermore, looking at the kernel sources, both the 32-bit and 64-bit Linux SH-specific code defines "sigaltstack" as syscall 186: >

[Qemu-devel] [Bug 1254786] Re: qemu-m68k-static: illegal instruction ebc0 during debootstrap second stage

2015-11-19 Thread John Paul Adrian Glaubitz
Ken, this is known to currently *not* work. As Andreas has already indirectly explained, qemu does not provide full m68k emulation. Instead, it supports the reduced m68k instruction set of Motorola's ColdFire CPU only. If you need a QEMU version with full m68k support, please have a look at

[Qemu-devel] [Bug 1470170] Re: Unsupported syscalls 370 and 355

2015-12-09 Thread John Paul Adrian Glaubitz
Laurent, I just encountered the same missing syscall on qemu-m68k: Unpacking udev (228-2) over (227-2) ... Preparing to unpack .../libsystemd0_228-2_m68k.deb ... Unpacking libsystemd0:m68k (228-2) over (227-2) ... Processing triggers for man-db (2.7.5-1) ... Not building database;

[Qemu-devel] Bug#807006: qemu: FTBFS on sparc64 due to incompatible linker parameters

2015-12-03 Thread John Paul Adrian Glaubitz
e same problem and fixed the issue by setting "-no-relax" for sparc [1]. Please apply a similar fix for qemu. Cheers, Adrian > [1] https://ghc.haskell.org/trac/ghc/ticket/3791 -- .''`. John Paul Adrian Glaubitz : :' : Debian Developer - glaub...@debian.org `. `' Freie Unive

Re: [Qemu-devel] [PATCH 0/1] m68k linux user-space emulation fix (with sign-off this time)

2015-12-09 Thread John Paul Adrian Glaubitz
D oftentimes > blocked the second SIGCHLD. I have tested Michael's patch and after applying it to my current qemu-m68k tree, cmake works normally and no longer hangs when executed on qemu-m68k as it did previously. Adrian -- .''`. John Paul Adrian Glaubitz : :' : Debian Developer - glau

Re: [Qemu-devel] [PATCH trivial] linux-user: enable sigaltstack for all architectures

2016-01-07 Thread John Paul Adrian Glaubitz
Hi Peter! On 01/07/2016 12:52 PM, Peter Maydell wrote: > Reviewed-by: Peter Maydell <peter.mayd...@linaro.org> Has this been committed yet? I can't see the change in cgit. Cheers, Adrian -- .''`. John Paul Adrian Glaubitz : :' : Debian Developer - glaub...@debian.org `. `

Re: [Qemu-devel] [PATCH trivial] linux-user: enable sigaltstack for all architectures

2016-01-07 Thread John Paul Adrian Glaubitz
2] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=805827 -- .''`. 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

Re: [Qemu-devel] [PATCH 1/2] linux-user: Update m68k syscall definitions to match Linux 4.4.

2015-12-24 Thread John Paul Adrian Glaubitz
that right after I sent the patches in :). - -- .''`. 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 -BEGIN PGP SIGNATURE- Version: GnuPG v2 iQIcB

Re: [Qemu-devel] [PATCH 1/2] linux-user: Update m68k syscall definitions to match Linux 4.4.

2015-12-24 Thread John Paul Adrian Glaubitz
running "apt-get update" on Debian unstable running on qemu with glibc_2.21 on m68k. Cheers, Adrian - -- .''`. John Paul Adrian Glaubitz : :' : Debian Developer - glaub...@debian.org `. `' Freie Universitaet Berlin - glaub...@physik.fu-berlin.de `-GPG: 62FF 8A75 84E0 2956

[Qemu-devel] [PATCH 2/2] linux-user: Add SOCKOP_sendmmsg and SOCKOP_recvmmsg socket call, wire them up.

2015-12-24 Thread John Paul Adrian Glaubitz
Signed-off-by: John Paul Adrian Glaubitz <glaub...@physik.fu-berlin.de> --- linux-user/syscall.c | 8 ++-- linux-user/syscall_defs.h | 2 ++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 6c64ba6..dd6ed47

[Qemu-devel] [PATCH 1/2] linux-user: Update m68k syscall definitions to match Linux 4.4.

2015-12-24 Thread John Paul Adrian Glaubitz
Signed-off-by: John Paul Adrian Glaubitz <glaub...@physik.fu-berlin.de> --- linux-user/m68k/syscall_nr.h | 27 +++ 1 file changed, 27 insertions(+) diff --git a/linux-user/m68k/syscall_nr.h b/linux-user/m68k/syscall_nr.h index 25f8521..a2daba0 100644 --- a/linux-use

[Qemu-devel] [Bug 1527765] Re: sh4: ghc randomly segfaults on qemu-sh4-static

2015-12-25 Thread John Paul Adrian Glaubitz
Interestingly, cmake also seems to crash in a similar way: - Log: https://buildd.debian.org/status/fetch.php?pkg=apt-cacher-ng=sh4=0.8.8-1=1450985460 - Log: https://buildd.debian.org/status/fetch.php?pkg=texworks=sh4=0.5~svn1363-6%2Bb1=1450992669 - Log:

[Qemu-devel] [Bug 1527765] [NEW] sh4: ghc randomly segfaults on qemu-sh4-static

2015-12-18 Thread John Paul Adrian Glaubitz
Public bug reported: Hello! I am currently in the process of bootstrapping ghc for the Debian sh4 port and ran into a strange problem with qemu-sh4-static which randomly segfaults when running ghc to compile a Haskell source: root@jessie32:~/ghc-7.8.4/utils/ghc-pwd# ls Main.hi Main.hs

Re: [Qemu-devel] [PATCH] linux-user, sh4: fix signal retcode address

2015-12-19 Thread John Paul Adrian Glaubitz
ate return code (system call to sigreturn) */ >> +abi_ulong retcode_addr = frame_addr + >> + offsetof(struct target_rt_sigframe, >> retcode); >> __put_user(MOVW(2), >retcode[0]); >> __put_user(TRAP_NOARG, >retcode[1]); >&g

[Qemu-devel] [PATCH] linux-user: Enable sigaltstack syscall for sh4

2015-11-18 Thread John Paul Adrian Glaubitz
Otherwise, it would be great if my patch could be applied to add sigaltstack for sh4. Thanks, Adrian > [1] https://wiki.debian.org/SH4/sbuildQEMU -- .''`. John Paul Adrian Glaubitz : :' : Debian Developer - glaub...@debian.org `. `' Freie Universitaet Berlin - glaub...@physik

[Qemu-devel] [PATCH] linux-user: Enable sigaltstack syscall for sh4

2015-11-18 Thread John Paul Adrian Glaubitz
--- linux-user/syscall.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 6c64ba6..4d864b2 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -8294,7 +8294,8 @@ abi_long do_syscall(void *cpu_env, int num, abi_long

[Qemu-devel] [Bug 1516408] Re: sh4: Unsupported syscall: 186

2015-11-18 Thread John Paul Adrian Glaubitz
Hello! The attached patch enables the sigaltstack syscall in qemu-sh4. The following minimal test code verifies that sigaltstack works as expected: = #include #include #include #include jmp_buf exit_jmp; void handler(int x) {

Re: [Qemu-devel] [PATCH] linux-user: Enable sigaltstack syscall for sh4

2015-11-19 Thread John Paul Adrian Glaubitz
gnal 11 (Segmentation fault) - core dumped Segmentation fault (sid-sh4-sbuild)root@jessie32:/tmp# Thus, for me it seems sigaltstack behaves as expected with the patch applied. Am I missing something obvious? Cheers, Adrian -- .''`. John Paul Adrian Glaubitz : :' : Debian Developer - glau

Re: [Qemu-devel] [PATCH] linux-user: Enable sigaltstack syscall for sh4

2015-11-19 Thread John Paul Adrian Glaubitz
. -- .''`. 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

Re: [Qemu-devel] [PATCH] linux-user, sh4: fix signal retcode address

2015-11-23 Thread John Paul Adrian Glaubitz
On 11/23/2015 11:38 AM, Laurent Vivier wrote: > Signed-off-by: Laurent Vivier <laur...@vivier.eu> Tested-by: John Paul Adrian Glaubitz <glaub...@physik.fu-berlin.de> This patch fixes crashes of qemu-sh4* on amd64 for me [1]. I also haven't seen any regressions ever since. Cheer

[Qemu-devel] [Bug 1516408] Re: sh4: Unsupported syscall: 186

2015-11-22 Thread John Paul Adrian Glaubitz
Ping. Any chance to get this merged? I don't think this patch could have any particular bad impact on qemu as it affects the sh4 emulation only and so far my tests with building packages on qemu-sh4 have shown no regressions. But with the patch, sigaltstack now works fine on sh4 which the above

[Qemu-devel] [Bug 1254786] Re: qemu-m68k-static: illegal instruction ebc0 during debootstrap second stage

2015-11-19 Thread John Paul Adrian Glaubitz
Alright, I have created a page on the Debian Wiki which explains how to properly set up a chroot environment for sbuild/m68k on Debian [1]. With this set up, I was able to increase compile performance dramatically as compared to native m68k hardware or the Aranym Atari m68k emulator. Enjoy!

Re: [Qemu-devel] Qemu linux-user que

2016-01-08 Thread John Paul Adrian Glaubitz
ally appreciate that and I'd be very proud to get my first official patches into qemu ;-). They've also been tested by me and reviewed by Laurent. Adrian -- .''`. John Paul Adrian Glaubitz : :' : Debian Developer - glaub...@debian.org `. `' Freie Universitaet Berlin - glaub...@physik.fu-berlin

Re: [Qemu-devel] [PATCH 1/2] linux-user: Update m68k syscall definitions to match Linux 4.4.

2016-01-11 Thread John Paul Adrian Glaubitz
M68k/sbuildQEMU -- .''`. 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

Re: [Qemu-devel] [PATCH 1/2] linux-user: Update m68k syscall definitions to match Linux 4.4.

2016-01-11 Thread John Paul Adrian Glaubitz
t, currently testing it. The networking issue has been resolved. You need to apply both of my patches though as otherwise apt complains about the missing socket calls 19/20. Adrian -- .''`. John Paul Adrian Glaubitz : :' : Debian Developer - glaub...@debian.org `. `' Freie Universitaet Be

Re: [Qemu-devel] [PULL 16/17] linux-user: Add SOCKOP_sendmmsg and SOCKOP_recvmmsg socket call, wire them up.

2016-01-11 Thread John Paul Adrian Glaubitz
On 01/11/2016 03:16 PM, riku.voi...@linaro.org wrote: > From: John Paul Adrian Glaubitz <glaub...@physik.fu-berlin.de> Commit message / title should probably say "socket calls", not "socket call" ;). If possible, please fix the grammar mistake :). In any case, T

Re: [Qemu-devel] [PATCH] m68k: Build the opcode table only once to avoid multithreading issues

2016-02-04 Thread John Paul Adrian Glaubitz
t; situation (but not the semantics): Alright, this should do the trick then. 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 F91

Re: [Qemu-devel] [PATCH] m68k: Build the opcode table only once to avoid multithreading issues

2016-02-08 Thread John Paul Adrian Glaubitz
On 02/04/2016 04:18 PM, John Paul Adrian Glaubitz wrote: > On 02/03/2016 05:11 PM, Eric Blake wrote: >> Weird. Wonder why it doesn't complain on that file? I'm >> guessing that it is due to the #define on the next line. >> Because rearranging things to put the code after t

Re: [Qemu-devel] [PATCH 1/2] m68k: Fix opcode mask for fbcc instruction

2016-02-08 Thread John Paul Adrian Glaubitz
On 02/03/2016 10:38 AM, Laurent Vivier wrote: > Reviewed-by: Laurent Vivier <laur...@vivier.eu> Any chance to get this merged quickly? -- .''`. John Paul Adrian Glaubitz : :' : Debian Developer - glaub...@debian.org `. `' Freie Universitaet Berlin - glaub...@physik.fu-berlin.de

[Qemu-devel] m68k: More bug fixes for translation code

2016-02-03 Thread John Paul Adrian Glaubitz
ges register_m68k_insns() such that it returns without doing anything in case the opcode table has already been built and re-registering the instructions is therefore not necessary but rather harmful. Credits go to Michael Karcher for helping to debug these issues! Cheers, Adrian -- .''`. John P

Re: [Qemu-devel] [PATCH 2/2] m68k: Build the opcode table only once to avoid multithreading issues

2016-02-03 Thread John Paul Adrian Glaubitz
ase. I'm all for that! I'm really motivated to get m68k support into best shape. qemu-m68k is fun to hack on! Adrian -- .''`. John Paul Adrian Glaubitz : :' : Debian Developer - glaub...@debian.org `. `' Freie Universitaet Berlin - glaub...@physik.fu-berlin.de `-GPG: 62FF 8A75 84E0 295

[Qemu-devel] [PATCH 2/2] m68k: Build the opcode table only once to avoid multithreading issues

2016-02-03 Thread John Paul Adrian Glaubitz
Signed-off-by: John Paul Adrian Glaubitz <glaub...@physik.fu-berlin.de> --- target-m68k/translate.c | 4 1 file changed, 4 insertions(+) diff --git a/target-m68k/translate.c b/target-m68k/translate.c index 535d7f9..f508d1e 100644 --- a/target-m68k/translate.c +++ b/target-m68k/trans

[Qemu-devel] [PATCH 1/2] m68k: Fix opcode mask for fbcc instruction

2016-02-03 Thread John Paul Adrian Glaubitz
Signed-off-by: John Paul Adrian Glaubitz <glaub...@physik.fu-berlin.de> --- target-m68k/translate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target-m68k/translate.c b/target-m68k/translate.c index 342c040..535d7f9 100644 --- a/target-m68k/translate.c +++ b/targe

Re: [Qemu-devel] [PATCH 2/2] m68k: Build the opcode table only once to avoid multithreading issues

2016-02-03 Thread John Paul Adrian Glaubitz
On 02/03/2016 10:57 AM, Laurent Vivier wrote: > In fact, the line should be: > > +if (opcode_table[0] != NULL) > +return; > > thanks to scripts/checkpatch.pl. Want me to re-send it? -- .''`. John Paul Adrian Glaubitz : :' : Debian Developer - glaub...@debian

[Qemu-devel] [PATCH] m68k: Build the opcode table only once to avoid multithreading issues

2016-02-03 Thread John Paul Adrian Glaubitz
Signed-off-by: John Paul Adrian Glaubitz <glaub...@physik.fu-berlin.de> --- target-m68k/translate.c | 4 1 file changed, 4 insertions(+) diff --git a/target-m68k/translate.c b/target-m68k/translate.c index 535d7f9..a989961 100644 --- a/target-m68k/translate.c +++ b/target-m68k/trans

Re: [Qemu-devel] [PATCH 1/2] m68k: Fix opcode mask for fbcc instruction

2016-02-03 Thread John Paul Adrian Glaubitz
Strange. There should be a cover letter coming along as well which explains my changes. Did you get it? On 02/03/2016 10:37 AM, John Paul Adrian Glaubitz wrote: > Signed-off-by: John Paul Adrian Glaubitz <glaub...@physik.fu-berlin.de> > --- > target-m68k/translate.c | 2 +- >

[Qemu-devel] Updated patch for the opcode table

2016-02-03 Thread John Paul Adrian Glaubitz
Hi Laurent! Here's the second patch again, this time checked with ./scripts/checkpatch.pl. Thanks for the heads-up! Adrian

Re: [Qemu-devel] [PATCH] m68k: Build the opcode table only once to avoid multithreading issues

2016-02-03 Thread John Paul Adrian Glaubitz
patch - From 2d8ef8d0244db95e41e04ff909560f12676e1dec Mon Sep 17 00:00:00 2001 From: John Paul Adrian Glaubitz <glaub...@physik.fu-berlin.de> Date: Wed, 3 Feb 2016 10:22:35 +0100 Subject: [PATCH 2/2] m68k: Build the opcode table only once to avoid multithreading issues Signed-off-by: John Paul Adrian Glaubitz &

Re: [Qemu-devel] [PATCH 00/52] 680x0 instructions emulation

2016-05-12 Thread John Paul Adrian Glaubitz
in my own > tree doesn't help. > > It's why I try to have them merged. > > BTW, Adrian is using this branch (680x0-master-dev) for months to build > Debian packages. > > Thanks, > Laurent > -- .''`. John Paul Adrian Glaubitz : :' : Debian Developer - gla

Re: [Qemu-devel] [PATCH 00/52] 680x0 instructions emulation

2016-05-12 Thread John Paul Adrian Glaubitz
Oh, sorry, I must have missed that part. I wasn't aware that Laurent already got enough feedback to work on revised version. Then I will be happy to wait and looking forward to the updated patch set! :-) Thanks for the heads-up! Adrian -- .''`. John Paul Adrian Glaubitz : :' : Debian Devel

Re: [Qemu-devel] [PATCH 00/52] 680x0 instructions emulation

2016-05-12 Thread John Paul Adrian Glaubitz
atches. qemu-m68k has helped us in Debian to have the m68k port keep up with the rest of the architectures. Adrian -- .''`. John Paul Adrian Glaubitz : :' : Debian Developer - glaub...@debian.org `. `' Freie Universitaet Berlin - glaub...@physik.fu-berlin.de `-GPG: 62FF 8A75 84E0 2956 9546

Re: [Qemu-devel] [PATCH 00/52] 680x0 instructions emulation

2016-05-06 Thread John Paul Adrian Glaubitz
On 05/06/2016 03:24 PM, Andreas Schwab wrote: > John Paul Adrian Glaubitz <glaub...@physik.fu-berlin.de> writes: > >> On 05/06/2016 02:44 PM, Andreas Schwab wrote: >>> You are cheating, you override BOOT_CFLAGS. >> >> I'm not doing anything. > > Yes

Re: [Qemu-devel] [PATCH 00/52] 680x0 instructions emulation

2016-05-06 Thread John Paul Adrian Glaubitz
issues in the code, so we are making some actual progress. 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

Re: [Qemu-devel] [PATCH 00/52] 680x0 instructions emulation

2016-05-06 Thread John Paul Adrian Glaubitz
k=5.3.1-17=1462233110 > [2] https://buildd.debian.org/status/fetch.php?pkg=gcc-6=m68k=6.1.1-1=1462224003 -- .''`. 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

Re: [Qemu-devel] [PATCH 00/52] 680x0 instructions emulation

2016-05-06 Thread John Paul Adrian Glaubitz
otstrapping gcc? I'm surprised it doesn't work for you. 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

Re: [Qemu-devel] [PATCH 00/52] 680x0 instructions emulation

2016-05-06 Thread John Paul Adrian Glaubitz
On 05/06/2016 02:44 PM, Andreas Schwab wrote: > You are cheating, you override BOOT_CFLAGS. I'm not doing anything. I'm building the package as Matthias has provided it and it builds fine. Adrian -- .''`. John Paul Adrian Glaubitz : :' : Debian Developer - glaub...@debian.org `. `' Fr

Re: [Qemu-devel] [PATCH 2/2] linux-user: fix "apt-get update" on linux-user hppa

2017-01-25 Thread John Paul Adrian Glaubitz
On 01/25/2017 09:38 PM, Laurent Vivier wrote: > Reported-by: John Paul Adrian Glaubitz <glaub...@physik.fu-berlin.de> > Signed-off-by: Laurent Vivier <laur...@vivier.eu> Tested-by: John Paul Adrian Glaubitz <glaub...@physik.fu-berlin.de> CC'ing Helge Deller so he

Re: [Qemu-devel] [PULL 09/14] linux-user: Update m68k syscall definitions to match Linux 4.6

2017-02-16 Thread John Paul Adrian Glaubitz
Patchwork has cut off my name again! Could you please override that? It's "John Paul Adrian Glaubitz". Thanks! > On Feb 16, 2017, at 3:22 PM, Laurent Vivier <laur...@vivier.eu> wrote: > > From: Adrian Glaubitz <glaub...@physik.fu-berlin.de> > > Signed-off

[Qemu-devel] linux-user: Update sh4 syscall definitions to match Linux 4.8

2017-01-16 Thread John Paul Adrian Glaubitz
Hi! Same as with my previous patch for the sh4 target, here is the updated syscall definition table for Linux 4.6+. Since the last update to 4.4, three new syscalls were added. Thanks, Adrian

[Qemu-devel] [PATCH] linux-user: Update m68k syscall definitions to match Linux 4.6

2017-01-16 Thread John Paul Adrian Glaubitz
Signed-off-by: John Paul Adrian Glaubitz <glaub...@physik.fu-berlin.de> --- linux-user/m68k/syscall_nr.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/linux-user/m68k/syscall_nr.h b/linux-user/m68k/syscall_nr.h index 4b50fb29b6..4e9e6ebeac 100644 --- a/linux-user/m68k/syscall_nr.h

[Qemu-devel] [PATCH] linux-user: Update sh4 syscall definitions to match Linux 4.8

2017-01-16 Thread John Paul Adrian Glaubitz
Hi! While setting up a fresh Debian unstable sh4 chroot with qemu-sh4-user, I noticed the syscall definition table for sh4 is not up to date: Setting up dh-strip-nondeterminism (0.029-2) ... Setting up libgdk-pixbuf2.0-dev (2.36.3-1) ... Setting up systemd (232-8) ... qemu: Unsupported syscall:

[Qemu-devel] [PATCH] linux-user: Update sh4 syscall definitions to match Linux 4.8

2017-01-16 Thread John Paul Adrian Glaubitz
Signed-off-by: John Paul Adrian Glaubitz <glaub...@physik.fu-berlin.de> --- linux-user/sh4/syscall_nr.h | 14 ++ 1 file changed, 14 insertions(+) diff --git a/linux-user/sh4/syscall_nr.h b/linux-user/sh4/syscall_nr.h index e99f73589d..d6c1e059f6 100644 --- a/linux-us

Re: [Qemu-devel] [PATCH] linux-user: Update m68k syscall definitions to match Linux 4.6

2017-01-16 Thread John Paul Adrian Glaubitz
On 01/16/2017 11:44 PM, John Paul Adrian Glaubitz wrote: > +#define TARGET_NR_file_range376 > +#define TARGET_NR_preadv2 377 > +#define TARGET_NR_pwritev2 378 Oops, there's a copy-and-paste error. This should be TARGET_NR_copy_file_range. Wi

[Qemu-devel] [PATCH] linux-user: Update m68k syscall definitions to match Linux 4.6

2017-01-16 Thread John Paul Adrian Glaubitz
Signed-off-by: John Paul Adrian Glaubitz <glaub...@physik.fu-berlin.de> --- linux-user/m68k/syscall_nr.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/linux-user/m68k/syscall_nr.h b/linux-user/m68k/syscall_nr.h index 4b50fb29b6..d239551b34 100644 --- a/linux-user/m68k/syscall_nr.h

[Qemu-devel] [PATCH v2] linux-user: Update m68k syscall definitions to match Linux

2017-01-16 Thread John Paul Adrian Glaubitz
Fixed a copy-and-paste error: s/file_range/copy_file_range/. Cheers, Adrian

Re: [Qemu-devel] [PATCH v2] target-sh4: add atomic tas

2016-11-04 Thread John Paul Adrian Glaubitz
-static) $ cp -av qemu-sh4 sid-sh4-sbuild-ghc/usr/bin/qemu-sh4-static $ chroot sid-sh4-sbuild-ghc (in chroot): $ cd /root/ghc-7.8.4/utils/ghc-pwd $ ghc Main.hs Adrian -- .''`. John Paul Adrian Glaubitz : :' : Debian Developer - glaub...@debian.org `. `' Freie Universitaet Berlin - glaub.

Re: [Qemu-devel] [PATCH v2] target-sh4: add atomic tas

2016-11-04 Thread John Paul Adrian Glaubitz
o that. Awesome to see progress here :). I just can't do it right now as I just returned from Asia and just came to the office to go through a long backlog of work and mail. Adrian -- .''`. John Paul Adrian Glaubitz : :' : Debian Developer - glaub...@debian.org `. `' Freie Universitaet

Re: [Qemu-devel] [PATCH v2] target-sh4: add atomic tas

2016-11-04 Thread John Paul Adrian Glaubitz
On 11/04/2016 10:23 AM, John Paul Adrian Glaubitz wrote: > On 11/03/2016 05:21 PM, Laurent Vivier wrote: >> It should,:the problem was reported by Adrian (cc:) while compiling ghc >> in qemu-sh4, but I have just tested the functionality with the softmmu >> version, not the at

Re: [Qemu-devel] [PATCH v2] target-sh4: add atomic tas

2016-11-04 Thread John Paul Adrian Glaubitz
running chroot with "taskset -c 0". Doesn't help unfortunately, still either crashes or locks up like this: root@ikarus:~# strace -p 32415 strace: Process 32415 attached futex(0x7f836c8bd4c8, FUTEX_WAIT_PRIVATE, 7, NULL with 32415 being the qemu ghc process. Adrian -- .''`. John P

Re: [Qemu-devel] packed structures and unaligned accesses (sparc)

2017-03-28 Thread John Paul Adrian Glaubitz
^~ 1 warning generated. root@deb4g:~# 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

Re: [Qemu-devel] packed structures and unaligned accesses (sparc)

2017-03-27 Thread John Paul Adrian Glaubitz
be related to this gcc bug report [1]. Adrian > [1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=51628 -- .''`. 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

Re: [Qemu-devel] [PATCH v2 08/27] linux-user/sh4: Notice gUSA regions during signal delivery

2017-07-13 Thread John Paul Adrian Glaubitz
, both on m68k and sh4. Although it works fine on qemu-user for ARM. I will try to reduce the test case. Adrian -- .''`. John Paul Adrian Glaubitz : :' : Debian Developer - glaub...@debian.org `. `' Freie Universitaet Berlin - glaub...@physik.fu-berlin.de `-GPG: 62FF 8A75 84E0 295

Re: [Qemu-devel] [PATCH v2 08/27] linux-user/sh4: Notice gUSA regions during signal delivery

2017-07-07 Thread John Paul Adrian Glaubitz
8=0x r19=0x r20=0x r21=0x r22=0x r23=0x (sid-sh4-sbuild)root@nofan:/# The crash on terminal resize is still present, too. Adrian -- .''`. John Paul Adrian Glaubitz : :' : Debian Developer - glaub...@debian.org `. `' Freie Universitaet Berlin - gl

Re: [Qemu-devel] [PATCH v2 08/27] linux-user/sh4: Notice gUSA regions during signal delivery

2017-07-07 Thread John Paul Adrian Glaubitz
On 07/07/2017 10:30 AM, John Paul Adrian Glaubitz wrote: > The scripts which are run here can be found as > /var/lib/dpkg/info/tzdata.{config,postinst). > I don't know yet which command in particular triggers the crash. Interesting. It crashes for me immediately after resizing the termin

Re: [Qemu-devel] [PATCH v2 08/27] linux-user/sh4: Notice gUSA regions during signal delivery

2017-07-07 Thread John Paul Adrian Glaubitz
don't know yet which command in particular triggers the crash. -- .''`. 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

Re: [Qemu-devel] [PATCH v2 08/27] linux-user/sh4: Notice gUSA regions during signal delivery

2017-07-13 Thread John Paul Adrian Glaubitz
upstream soon! Thanks a lot! 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

Re: [Qemu-devel] [PATCH v2 08/27] linux-user/sh4: Notice gUSA regions during signal delivery

2017-07-13 Thread John Paul Adrian Glaubitz
On Thu, Jul 13, 2017 at 11:09:08AM +0200, John Paul Adrian Glaubitz wrote: > Just as a heads-up: The current set of patches as they are present in > the tgt-sh4 branch on git://github.com/rth7680/qemu.git are a HUGE > improvement for qemu-sh4 user mode. Several packages which previously

Re: [Qemu-devel] [PATCH v2 06/27] target/sh4: Handle user-space atomics

2017-07-15 Thread John Paul Adrian Glaubitz
n join the discussion. 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

Re: [Qemu-devel] [PATCH 05/11] linux-user/sh4: Notice gUSA regions during signal delivery

2017-07-06 Thread John Paul Adrian Glaubitz
here? Was gUSA support recently added to qemu or is this just a fix? I will give this a try soon. Thanks Laurent for letting me know. Adrian -- .''`. John Paul Adrian Glaubitz : :' : Debian Developer - glaub...@debian.org `. `' Freie Universitaet Berlin - glaub...@physik.fu-berlin.de

Re: [Qemu-devel] [PATCH 05/11] linux-user/sh4: Notice gUSA regions during signal delivery

2017-07-06 Thread John Paul Adrian Glaubitz
1 (Segmentation fault) - core dumped qemu: uncaught target signal 11 (Segmentation fault) - core dumped Segmentation fault root@nofan:/local_scratch/sid-sh4-sbuild> Adrian -- .''`. John Paul Adrian Glaubitz : :' : Debian Developer - glaub...@debian.org `. `' Freie Universitaet Ber

Re: [Qemu-devel] [PATCH 05/11] linux-user/sh4: Notice gUSA regions during signal delivery

2017-07-06 Thread John Paul Adrian Glaubitz
Adrian > [1] https://people.debian.org/~glaubitz/chroots/unstable-sh4-20150315.tar.gz > [2] https://people.debian.org/~glaubitz/chroots/unstable-sh4-20170706.tgz -- .''`. John Paul Adrian Glaubitz : :' : Debian Developer - glaub...@debian.org `. `' Freie Universitaet Berlin - glaub...@physik

Re: [Qemu-devel] [PATCH 05/11] linux-user/sh4: Notice gUSA regions during signal delivery

2017-07-06 Thread John Paul Adrian Glaubitz
if you generate a qemu binary with it > and use it in your buildds to test it. > > I guess the series can be pulled directly from Richard's branch: > > git://github.com/rth7680/qemu.git tgt-sh4 You bet, I will! Adrian -- .''`. John Paul Adrian Glaubitz : :' : Debian D

Re: [Qemu-devel] [PATCH 05/11] linux-user/sh4: Notice gUSA regions during signal delivery

2017-07-06 Thread John Paul Adrian Glaubitz
region size. */ This fixes the segfaults for me with newer chroots. So, just in case: Tested-By: John Paul Adrian Glaubitz <glaub...@physik.fu-berlin.de> Thanks, 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

Re: [Qemu-devel] [PATCH 05/11] linux-user/sh4: Notice gUSA regions during signal delivery

2017-07-06 Thread John Paul Adrian Glaubitz
On Thu, Jul 06, 2017 at 02:55:02PM +0200, John Paul Adrian Glaubitz wrote: > This fixes the segfaults for me with newer chroots. Ok, that was too fast. While some segfaults are now gone, there are still some other commands segfaulting. Again, reverting patch 5 and Laurent's patch ma

Re: [Qemu-devel] [PATCH v2 08/27] linux-user/sh4: Notice gUSA regions during signal delivery

2017-07-07 Thread John Paul Adrian Glaubitz
ip (1.6-5) ... Setting up dash (0.5.8-2.4) ... Setting up init-system-helpers (1.48) ... Setting up libpam0g:sh4 (1.1.8-3.6) ... Setting up libpam-modules-bin (1.1.8-3.6) ... Setting up bash (4.4-5) ... Adrian -- .''`. John Paul Adrian Glaubitz : :' : Debian Developer - glaub...@debian.org `. `

[Qemu-devel] [Bug 1527765] Re: sh4: ghc randomly segfaults on qemu-sh4-static

2017-05-22 Thread John Paul Adrian Glaubitz
Just tested with the latest git snapshot of qemu, still no improvement: ... checking for gfind... no checking for find... /usr/bin/find checking for sort... /usr/bin/sort checking for GHC Git commit id... given 4986837f8168cacf95c24fecc84d7b36c47f3c11 checking version of ghc... 8.0.1 ghc:

Re: [Qemu-devel] [PATCH] target/m68k: implement rtd

2017-06-07 Thread John Paul Adrian Glaubitz
> Add "Return and Deallocate" (rtd) instruction. > > RTD #d > > (SP) -> PC > SP + 4 + d -> SP Tested-By: John Paul Adrian Glaubitz <glaub...@physik.fu-berlin.de> -- .''`. John Paul Adrian Glaubitz : :' : Debian Developer - glaub...@debi

Re: [Qemu-devel] QEMU issues on SPARC hosts due to more-than-page-alignment requirement for MAP_SHARED|MAP_FIXED...

2017-06-16 Thread John Paul Adrian Glaubitz
html#sparclinux -- .''`. 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

Re: [Qemu-devel] [PATCH] linux-user/syscall.c: Handle SH4's exceptional alignment for p{read, write}64

2017-09-15 Thread John Paul Adrian Glaubitz
2.13.2 Tested-By: John Paul Adrian Glaubitz <glaub...@physik.fu-berlin.de> -- .''`. 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

Re: [Qemu-devel] [PATCH] linux-user/syscall.c: Handle SH4's exceptional alignment for p{read, write}64

2017-09-15 Thread John Paul Adrian Glaubitz
ed(cpu_env)) {   arg4 = arg5;   arg5 = arg6;   } +#endif same here. Dito. -- .''`. 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

Re: [Qemu-devel] [PATCH v3] linux-user/syscall.c: Handle SH4's exceptional alignment for p{read, write}64

2017-09-15 Thread John Paul Adrian Glaubitz
* offset is in (3,4), len > in 5 and advice in 6 */ arg2 = arg3; arg3 = arg4; @@ -11407,7 +11421,7 @@ > abi_long do_syscall(void *cpu_env, int num, abi_long arg1, #ifdef > TARGET_NR_readahead case TARGET_NR_readahead: #if TARGET_ABI_BITS == 32 - >if (regpairs_aligned(cpu_env)

Re: [Qemu-devel] [PATCH v3] linux-user/syscall.c: Handle SH4's exceptional alignment for p{read, write}64

2017-09-15 Thread John Paul Adrian Glaubitz
rs_aligned(cpu_env)) { > +if (regpairs_aligned(cpu_env, num)) { > /* offset is in (3,4), len in 5 and advice in 6 */ > arg2 = arg3; > arg3 = arg4; > @@ -11407,7 +11421,7 @@ abi_long do_syscall(void *cpu_env, int num, abi_long > arg1, >

Re: [Qemu-devel] [Bug 1716767] Re: file(1) fails with "Invalid argument" on qemu-sh4-user

2017-09-14 Thread John Paul Adrian Glaubitz
On 09/13/2017 08:37 PM, James Clarke wrote: > With the attached patch, qemu-sh4-static now works for file: I can also confirm that the patch fixes the problem for me. Would be great if it could get merged in one form or another. -- .''`. John Paul Adrian Glaubitz : :' : Debian Develo

Re: [Qemu-devel] [PATCH v3] linux-user/syscall.c: Handle SH4's exceptional alignment for p{read, write}64

2017-10-04 Thread John Paul Adrian Glaubitz
arg2 = arg3; arg3 = arg4; arg4 = arg5; -- .''`. 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

[Qemu-devel] [Bug 1716767] [NEW] file(1) fails with "Invalid argument" on qemu-sh4-user

2017-09-12 Thread John Paul Adrian Glaubitz
Public bug reported: We recently discovered that file(1) fails on qemu-sh4-user when running on an ELF file: (sid_sh4)root@vs94:/# file /bin/bash /bin/bash: ERROR: ELF 32-bit LSB executable, Renesas SH, version 1 (SYSV) error reading (Invalid argument) (sid_sh4)root@vs94:/# Running with "-d"

Re: [Qemu-devel] [Bug 1716767] Re: file(1) fails with "Invalid argument" on qemu-sh4-user

2017-09-12 Thread John Paul Adrian Glaubitz
ile -d /bin/bash 2>&1`? > https://people.debian.org/~glaubitz/file-sh4-qemu.txt -- .''`. 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 F9

Re: [Qemu-devel] glibc "linux: spawni.c: simplify error reporting to parent" breaks qemu-user/Windows Service For Linux

2017-11-27 Thread John Paul Adrian Glaubitz
EMU and Microsoft Windows Services for Linux who - combined together - are certainly not a small number of users. Isn't there any workaround we can use for the time being? Adrian -- .''`. John Paul Adrian Glaubitz : :' : Debian Developer - glaub...@debian.org `. `' Freie Universitaet Berlin - gl

Re: [Qemu-devel] glibc "linux: spawni.c: simplify error reporting to parent" breaks qemu-user/Windows Service For Linux

2017-11-26 Thread John Paul Adrian Glaubitz
On 11/26/2017 09:28 PM, John Paul Adrian Glaubitz wrote: > I'm not sure yet what the actual problem is but I thought it should be > necessary > to point you at the problem. Ok, there is already a QEMU bug report for this [1]. Adrian > [1] https://bugs.launchpad.net/qemu/

[Qemu-devel] glibc "linux: spawni.c: simplify error reporting to parent" breaks qemu-user/Windows Service For Linux

2017-11-26 Thread John Paul Adrian Glaubitz
ght it should be necessary to point you at the problem. Cheers, Adrian > [1] > https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=4b4d4056bb154603f36c6f8845757c1012758158;hp=8d3bd947483f50b57aee7c35c07dc1927d6e8a27 > [2] https://github.com/Microsoft/WSL/issues/1878 -- .''`. Joh

[Qemu-devel] [Bug 1673976] Re: linux-user clone() can't handle glibc posix_spawn() (causes locale-gen to assert)

2017-11-26 Thread John Paul Adrian Glaubitz
Interestingly, this also affects Microsoft Windows Services For Linux, i.e. Microsoft's Linux emulation layer. > https://github.com/Microsoft/WSL/issues/1878 ** Bug watch added: github.com/Microsoft/WSL/issues #1878 https://github.com/Microsoft/WSL/issues/1878 -- You received this bug

[Qemu-devel] [Bug 1701974] Re: pwrite does not work right under qemu-sh4

2017-11-30 Thread John Paul Adrian Glaubitz
This might be related to this fix: > https://git.qemu.org/?p=qemu.git;a=commit;h=8bf8e9df4a7d82c7a47cc961c9cdee1615595de0 FWIW, if you're interested in sh4, please join #debian-ports on OFTC and subscribe to the debian-superh mailing list. We're doing lots of sh4 development and testing QEMU in

[Qemu-devel] [Bug 1735384] [NEW] OpenJDK JVM segfaults on qemu-sh4 (regression)

2017-11-30 Thread John Paul Adrian Glaubitz
Public bug reported: Some of the recent changes introduced a regression which makes the OpenJDK JVM crash on qemu-sh4: (sid-sh4-sbuild)root@nofan:/# java -version qemu: uncaught target signal 11 (Segmentation fault) - core dumped Segmentation fault (sid-sh4-sbuild)root@nofan:/# An older version

[Qemu-devel] [Bug 1701973] Re: pread does not work right under qemu-sh4

2017-11-30 Thread John Paul Adrian Glaubitz
This might be related to this fix: > https://git.qemu.org/?p=qemu.git;a=commit;h=8bf8e9df4a7d82c7a47cc961c9cdee1615595de0 FWIW, if you're interested in sh4, please join #debian-ports on OFTC and subscribe to the debian-superh mailing list. We're doing lots of sh4 development and testing QEMU in

Re: [Qemu-devel] [Bug 1735384] Re: OpenJDK JVM segfaults on qemu-sh4 (regression)

2017-11-30 Thread John Paul Adrian Glaubitz
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 -- You received this bug notification because you are a member of qemu- devel-ml,

Re: [Qemu-devel] [Bug 1735384] Re: OpenJDK JVM segfaults on qemu-sh4 (regression)

2017-12-01 Thread John Paul Adrian Glaubitz
04 04 c294a7c102d27295f8d81cc06b5d4d17357440ad 5a1268b7634f69f0806f22161ec7d6a1a26c8812 M include Reverting the commit resolves the issue. -- .''`. John Paul Adrian Glaubitz : :' : Debian Developer - glaub...@debian.org `. `' Freie Universitaet Berlin - glaub...@physik.fu-berlin.de `-G

[Qemu-devel] [Bug 1673976] Re: linux-user clone() can't handle glibc posix_spawn() (causes locale-gen to assert)

2017-12-01 Thread John Paul Adrian Glaubitz
I have verified that this patch [1] in glibc_2.25 and glibc_2.26 fixes the assert. > [1] https://sourceware.org/bugzilla/show_bug.cgi?id=22273 ** Bug watch added: Sourceware.org Bugzilla #22273 https://sourceware.org/bugzilla/show_bug.cgi?id=22273 -- You received this bug notification

[Qemu-devel] [Bug 1696353] Re: golang binaries fail to start under linux-user

2017-12-16 Thread John Paul Adrian Glaubitz
I just gave it a test with qemu-arm and Go binaries still crash for me, albeit differently: root@nofan:/# cat hello.go package main import "fmt" func main() { fmt.Println("hello world") } root@nofan:/# gccgo-7 hello.go -o hello root@nofan:/# ./hello mmap errno 9 fatal error: mmap runtime

[Qemu-devel] [Bug 1738545] [NEW] Go binaries panic with "mmap errno 9" on qemu-user

2017-12-16 Thread John Paul Adrian Glaubitz
Public bug reported: Go binaries panic with "mmap errno 9" on qemu-user. root@nofan:/# cat hello.go package main import "fmt" func main() { fmt.Println("hello world") } root@nofan:/# gccgo-7 hello.go -o hello root@nofan:/# ./hello mmap errno 9 fatal error: mmap runtime stack: mmap errno

  1   2   >