[Bug 1920913] Re: Openjdk11+ fails to install on s390x

2021-04-27 Thread Jonathan Albrecht
Hi @davidhildenbrand, I'm on the same team as @nam121 and I've been looking at this issue as well. I think this is the same issue as: https://github.com/multiarch/qemu- user-static/issues/129 I've been running an s390x docker image on a master build (with latest s390x commit from Apr 23) of user

[Bug 1920913] Re: Openjdk11+ fails to install on s390x

2021-05-03 Thread Jonathan Albrecht
>From looking at the in_asm logs, it looks like that instruction starting with 0xebde is executed once with no problem but the second time its changed to 0x. ... # First Time IN: 0x40126d6880:  ebde f000 ec51  tmy      -0x14000(%r15), 0xde 0x40126d6886:  e3e0 f008 0024  stg  

[PATCH RFC 0/1] linux-user/s390x: save/restore condition code state during signal handling

2021-06-10 Thread Jonathan Albrecht
C code (s390x specific) that reproduces the issue and can try to add it as a unit test. Jonathan Albrecht (1): linux-user/s390x: save/restore condition code state during signal handling linux-user/s390x/signal.c | 35 +++ 1 file changed, 35 insertions(+) -- 2.31.1

[PATCH RFC 1/1] linux-user/s390x: save/restore condition code state during signal handling

2021-06-10 Thread Jonathan Albrecht
When handling a signal, the signal handler may have clobbered the condition code set by the interrupted thread. Signed-off-by: Jonathan Albrecht Buglink: https://bugs.launchpad.net/qemu/+bug/1886793 Buglink: https://bugs.launchpad.net/qemu/+bug/1893040 --- linux-user/s390x/signal.c | 35

[PATCH v2 1/2] linux-user/s390x: signal with SIGFPE on compare-and-trap

2021-07-07 Thread Jonathan Albrecht
://gitlab.com/qemu-project/qemu/-/issues/319 Signed-off-by: Jonathan Albrecht --- linux-user/s390x/cpu_loop.c | 19 ++- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/linux-user/s390x/cpu_loop.c b/linux-user/s390x/cpu_loop.c index 22f2e89c62..6e7dfb290a 100644 --- a/linux-user

[PATCH v2 0/2] linux-user/s390x: signal with SIGFPE on compare-and-trap

2021-07-07 Thread Jonathan Albrecht
/20210705210434.45824-1-...@linux.ibm.com/ Based-on: 20210705210434.45824-1-...@linux.ibm.com v1 -> v2: - Update to latest version of '... psw.addr reporting' patch - Rebase to master and fix conflicts in tests/tcg/s390x/Makefile.target Jonathan Albrecht (2): linux-user/s390x: signal with SIGFPE o

[PATCH v2 2/2] tests/tcg: Test that compare-and-trap raises SIGFPE

2021-07-07 Thread Jonathan Albrecht
Signed-off-by: Jonathan Albrecht --- tests/tcg/s390x/Makefile.target | 1 + tests/tcg/s390x/trap.c | 102 2 files changed, 103 insertions(+) create mode 100644 tests/tcg/s390x/trap.c diff --git a/tests/tcg/s390x/Makefile.target b/tests/tcg/s390x

[PATCH v3 2/2] tests/tcg: Test that compare-and-trap raises SIGFPE

2021-07-09 Thread Jonathan Albrecht
Signed-off-by: Jonathan Albrecht --- tests/tcg/s390x/Makefile.target | 1 + tests/tcg/s390x/trap.c | 102 2 files changed, 103 insertions(+) create mode 100644 tests/tcg/s390x/trap.c diff --git a/tests/tcg/s390x/Makefile.target b/tests/tcg/s390x

[PATCH v3 1/2] linux-user/s390x: signal with SIGFPE on compare-and-trap

2021-07-09 Thread Jonathan Albrecht
: https://gitlab.com/qemu-project/qemu/-/issues/319 Signed-off-by: Jonathan Albrecht --- linux-user/s390x/cpu_loop.c | 54 +++-- 1 file changed, 34 insertions(+), 20 deletions(-) diff --git a/linux-user/s390x/cpu_loop.c b/linux-user/s390x/cpu_loop.c index 22f2e89c62

[PATCH v3 0/2] linux-user/s390x: signal with SIGFPE on compare-and-trap

2021-07-09 Thread Jonathan Albrecht
explicitly when getting si_codes - Ensure si_code is set in all cases - Improve comments Jonathan Albrecht (2): linux-user/s390x: signal with SIGFPE on compare-and-trap tests/tcg: Test that compare-and-trap raises SIGFPE linux-user/s390x/cpu_loop.c | 54 ++--- tests/tcg/s390x

[PATCH 0/2] linux-user/s390x: signal with SIGFPE on compare-and-trap

2021-06-21 Thread Jonathan Albrecht
-...@linux.ibm.com/ Based-on: 20210602002210.3144559-1-...@linux.ibm.com Jonathan Albrecht (2): linux-user/s390x: signal with SIGFPE on compare-and-trap tests/tcg: Test that compare-and-trap raises SIGFPE linux-user/s390x/cpu_loop.c | 19 +++--- tests/tcg/s390x/Makefile.target | 1

[PATCH 2/2] tests/tcg: Test that compare-and-trap raises SIGFPE

2021-06-21 Thread Jonathan Albrecht
Signed-off-by: Jonathan Albrecht --- tests/tcg/s390x/Makefile.target | 1 + tests/tcg/s390x/trap.c | 100 2 files changed, 101 insertions(+) create mode 100644 tests/tcg/s390x/trap.c diff --git a/tests/tcg/s390x/Makefile.target b/tests/tcg/s390x

[PATCH 1/2] linux-user/s390x: signal with SIGFPE on compare-and-trap

2021-06-21 Thread Jonathan Albrecht
://gitlab.com/qemu-project/qemu/-/issues/319 Signed-off-by: Jonathan Albrecht --- linux-user/s390x/cpu_loop.c | 19 ++- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/linux-user/s390x/cpu_loop.c b/linux-user/s390x/cpu_loop.c index 72ba9170ed..def5c046f7 100644 --- a/linux