Re: [Stable-8.2.1 61/71] linux-user/riscv: Adjust vdso signal frame cfa offsets

2024-03-28 Thread Andreas Schwab
On Mär 06 2024, Alistair Francis wrote: > On Sun, Mar 3, 2024 at 8:34 PM Andreas Schwab wrote: >> >> On Jan 28 2024, Michael Tokarev wrote: >> >> > From: Richard Henderson >> > >> > A typo in sizeof_reg put the registers at the wrong offset. &g

Re: [Stable-8.2.1 61/71] linux-user/riscv: Adjust vdso signal frame cfa offsets

2024-03-06 Thread Andreas Schwab
= 0 30962 rt_sigprocmask(SIG_SETMASK,0x2b2a1dc8,NULL,8) = 0 30962 rt_sigprocmask(SIG_SETMASK,0x2b2e1050,0x2b2a21a8,8) = 0 30962 rt_sigprocmask(SIG_SETMASK,0x2b2a21a8,NULL,8) = 0 30962 rt_sigprocmask(SIG_SETMASK,0x2b2a2268,NULL,8) = 0 30962 read(3,0xab2a2747,1) = 1 30962

Re: [Stable-8.2.1 61/71] linux-user/riscv: Adjust vdso signal frame cfa offsets

2024-03-03 Thread Andreas Schwab
Also tested with master, same result. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1 "And now for something completely different."

Re: [Stable-8.2.1 61/71] linux-user/riscv: Adjust vdso signal frame cfa offsets

2024-03-03 Thread Andreas Schwab
= 0 30962 rt_sigprocmask(SIG_SETMASK,0x2b2a1dc8,NULL,8) = 0 30962 rt_sigprocmask(SIG_SETMASK,0x2b2e1050,0x2b2a21a8,8) = 0 30962 rt_sigprocmask(SIG_SETMASK,0x2b2a21a8,NULL,8) = 0 30962 rt_sigprocmask(SIG_SETMASK,0x2b2a2268,NULL,8) = 0 30962 read(3,0xab2a2747,1) = 1 30962

Re: [Stable-8.2.1 61/71] linux-user/riscv: Adjust vdso signal frame cfa offsets

2024-03-03 Thread Andreas Schwab
context. This breaks the testsuite of libunwind. The test Gtest-resume-sig and all dependent tests hang. Reverting this commit fixes them. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1 "And now for something completely different."

Re: [RFC PATCH] target/m68k: Use i128 for 128-bit load/store in m68k_copy_line()

2023-10-30 Thread Andreas Schwab
On Okt 17 2023, Richard Henderson wrote: > The manual says "burst reads and writes" without defining those terms. Burst transfers are explained in the M68040UM (7.4.2 Line Read Transfer and 7.4.4 Line Write Transfers). -- Andreas Schwab, SUSE Labs, sch...@suse.de GPG Key finge

Re: [PATCH] riscv: Call set_satp_mode_max_supported in riscv_host_cpu_init

2023-09-20 Thread Andreas Schwab
On Sep 19 2023, Andrew Jones wrote: > This should be fixed by > > https://lore.kernel.org/all/20230911064320.939791-37-alistair.fran...@wdc.com/ Thanks, I can confirm that it fixes the issue. -- Andreas Schwab, SUSE Labs, sch...@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE

[PATCH] riscv: Call set_satp_mode_max_supported in riscv_host_cpu_init

2023-09-19 Thread Andreas Schwab
When running in KVM mode with -cpu host, cfg.satp_mode.supported is not initialized, causing an infinite loop in riscv_cpu_satp_mode_finalize. Fixes: 6df3747a27 ("riscv: Introduce satp mode hw capabilities") Signed-off-by: Andreas Schwab --- target/riscv/cpu.c | 2 ++ 1 file

Re: qemu-system-riscv64 -cpu host uses wrong privilege spec version

2023-08-15 Thread Andreas Schwab
On Aug 15 2023, Daniel Henrique Barboza wrote: > This was fixed in 8.1 by eddabb6b88 ("target/riscv: skip features setup for > KVM CPUs"). > Which QEMU version/branch are you using? Thanks, this was tested with 8.0.4. -- Andreas Schwab, SUSE Labs, sch...@suse.de GPG Key

qemu-system-riscv64 -cpu host uses wrong privilege spec version

2023-08-14 Thread Andreas Schwab
,h=on,sv48=on. -- Andreas Schwab, SUSE Labs, sch...@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different."

Re: Boot failure after QEMU's upgrade to OpenSBI v1.3 (was Re: [PATCH for-8.2 6/7] target/riscv: add 'max' CPU type)

2023-07-19 Thread Andreas Schwab
ow I cannot see the 'tag' v1.3.1 being populated in the opensbi > git repo. Am I missing anything? You need to run git fetch --tags, because the tag is not part of any branch, thus not fetched automatically. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 7578 EB47 D4E5 4D69 25

Re: [PATCH 1/6] Revert "linux-user: Make sure initial brk(0) is page-aligned"

2023-07-18 Thread Andreas Schwab
andomize_brk implementations. -- Andreas Schwab, SUSE Labs, sch...@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different."

[PATCH] linux-user: make sure brk(0) returns a page-aligned value

2023-07-06 Thread Andreas Schwab
Fixes: 86f04735ac ("linux-user: Fix brk() to release pages") Signed-off-by: Andreas Schwab --- linux-user/syscall.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 08162cc966..e8a17377f5 100644 --- a/linux-user/sysca

Re: [RISC-V] ERROR:../accel/tcg/cpu-exec.c:1028:cpu_exec_setjmp: assertion failed: (cpu == current_cpu)

2023-07-04 Thread Andreas Schwab
tion failed: (cpu == current_cpu) Bail out! ERROR:../accel/tcg/cpu-exec.c:1028:cpu_exec_setjmp: assertion failed: (cpu == current_cpu) -- Andreas Schwab, SUSE Labs, sch...@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different."

Re: [RISC-V] ERROR:../accel/tcg/cpu-exec.c:1028:cpu_exec_setjmp: assertion failed: (cpu == current_cpu)

2023-07-03 Thread Andreas Schwab
On Jul 03 2023, Alex Bennée wrote: > Andreas Schwab writes: > >> On Jul 03 2023, Andreas Schwab wrote: >> >>> This is a regression in 8.0. It causes the testsuite of mold to fail: >>> >>> https://build.opensuse.org/package/live_build_log

[RISC-V] ERROR:../accel/tcg/cpu-exec.c:1028:cpu_exec_setjmp: assertion failed: (cpu == current_cpu)

2023-07-03 Thread Andreas Schwab
== current_cpu) ** ERROR:../accel/tcg/cpu-exec.c:1028:cpu_exec_setjmp: assertion failed: (cpu == current_cpu) -- Andreas Schwab, SUSE Labs, sch...@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different."

Re: [PATCH v3] linux-user, bsd-user: preserve incoming order of environment variables in the target

2023-06-12 Thread Andreas Schwab
Ping? -- Andreas Schwab, SUSE Labs, sch...@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different."

Re: [PATCH v3] linux-user, bsd-user: preserve incoming order of environment variables in the target

2023-05-22 Thread Andreas Schwab
Ping? -- Andreas Schwab, SUSE Labs, sch...@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different."

Re: [PATCH v3] linux-user: Add /proc/cpuinfo handler for RISC-V

2023-05-08 Thread Andreas Schwab
On Mai 05 2023, Laurent Vivier wrote: > [PATCH qemu v2] linux-user: Emulate /proc/cpuinfo output for riscv > https://patchew.org/QEMU/167873059442.9885.1515208531657524845...@git.sr.ht/ This looks better. You can drop my patch. -- Andreas Schwab, SUSE Labs, sch...@suse.de GPG Key finge

[PATCH v3] linux-user: Add /proc/cpuinfo handler for RISC-V

2023-05-03 Thread Andreas Schwab
>From 912af433fa5d93ce81d2054135ed475ab7462d2d Mon Sep 17 00:00:00 2001 From: Andreas Schwab Date: Tue, 18 Apr 2023 11:54:01 +0200 Signed-off-by: Andreas Schwab --- v3: fix isa order linux-user/syscall.c | 55 ++-- 1 file changed, 53 insertions(+)

[PATCH v2] linux-user: Add /proc/cpuinfo handler for RISC-V

2023-05-03 Thread Andreas Schwab
Signed-off-by: Andreas Schwab --- v2: dynmically compute the isa string linux-user/syscall.c | 55 ++-- 1 file changed, 53 insertions(+), 2 deletions(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 69f740ff98..6df138c8b6 100644

Re: [PATCH] linux-user: Add /proc/cpuinfo handler for RISC-V

2023-05-03 Thread Andreas Schwab
On Mai 02 2023, Andreas Schwab wrote: > None of the currently defined cpus are non-GC cpus (except sifive_e, but > that is not suitable for user-space anyway), and there doesn't appear to > be any properties defined for changing the supported extensions. Actually, modifying the e

Re: [PATCH] linux-user: Add /proc/cpuinfo handler for RISC-V

2023-05-02 Thread Andreas Schwab
On Mai 02 2023, Palmer Dabbelt wrote: > On Tue, 02 May 2023 06:44:00 PDT (-0700), sch...@suse.de wrote: >> Signed-off-by: Andreas Schwab >> --- >> linux-user/syscall.c | 30 -- >> 1 file changed, 28 insertions(+), 2 deletions(-) &g

[PATCH] linux-user: Add /proc/cpuinfo handler for RISC-V

2023-05-02 Thread Andreas Schwab
Signed-off-by: Andreas Schwab --- linux-user/syscall.c | 30 -- 1 file changed, 28 insertions(+), 2 deletions(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 69f740ff98..c72456a34b 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c

[PATCH v3] linux-user, bsd-user: preserve incoming order of environment variables in the target

2023-03-29 Thread Andreas Schwab
Do not reverse the order of environment variables in the target environ array relative to the incoming environ order. Some testsuites depend on a specific order, even though it is not defined by any standard. Signed-off-by: Andreas Schwab --- bsd-user/main.c | 10 +- linux-user

Re: [PATCH v2] linux-user: preserve incoming order of environment variables in the target

2023-03-29 Thread Andreas Schwab
On Mär 29 2023, Philippe Mathieu-Daudé wrote: > On 29/3/23 16:00, Daniel P. Berrangé wrote: >> On Wed, Mar 29, 2023 at 03:55:13PM +0200, Andreas Schwab wrote: >>> Do not reverse the order of environment variables in the target environ >>> array relative to the in

Re: [PATCH v2] linux-user: preserve incoming order of environment variables in the target

2023-03-29 Thread Andreas Schwab
On Mär 29 2023, Daniel P. Berrangé wrote: > On Wed, Mar 29, 2023 at 03:55:13PM +0200, Andreas Schwab wrote: >> Do not reverse the order of environment variables in the target environ >> array relative to the incoming environ order. Some testsuites depend on a >> specif

[PATCH v2] linux-user: preserve incoming order of environment variables in the target

2023-03-29 Thread Andreas Schwab
Do not reverse the order of environment variables in the target environ array relative to the incoming environ order. Some testsuites depend on a specific order, even though it is not defined by any standard. Signed-off-by: Andreas Schwab --- linux-user/main.c | 6 ++ 1 file changed, 6

[PATCH] linux-user: preserve incoming order of environment variables in the target

2023-03-29 Thread Andreas Schwab
Do not reverse the order of envionment variables in the target environ array relative to the incoming environ order. Some testsuites depend on a specific order, even though it is not defined by any standard. Signed-off-by: Andreas Schwab --- linux-user/main.c | 7 ++- 1 file changed, 6

[PATCH] linux-user: fill out task state in /proc/self/stat

2023-03-06 Thread Andreas Schwab
Some programs want to match an actual task state character. Signed-off-by: Andreas Schwab --- linux-user/syscall.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 36fffd36ca..eb4c2c3162 100644 --- a/linux-user/syscall.c +++ b/linux-user

Re: [PATCH for 7.1] linux-user: fix compat with glibc >= 2.36 sys/mount.h

2022-10-01 Thread Andreas Schwab
GETBSZ _IO(0x00,2) -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1 "And now for something completely different."

qemu-x86_64 runs out of memory

2022-09-13 Thread Andreas Schwab
ot;%zx\n", Max); } $ cc -O2 -g -Wall -std=gnu11 -g mmap.c -o mmap $ ./mmap 7f672e5ff000 $ qemu-x86_64 ./mmap Killed -- Andreas Schwab, SUSE Labs, sch...@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different."

[PATCH v2] linux-user: implement more loop ioctls

2021-11-22 Thread Andreas Schwab
LOOP_CONFIGURE is now used by losetup, and it cannot cope with ENOSYS. Signed-off-by: Andreas Schwab --- v2: fix s/loop_configure/loop_config/ typo linux-user/ioctls.h| 4 linux-user/linux_loop.h| 2 ++ linux-user/syscall_defs.h | 4 linux-user/syscall_types.h | 6

[PATCH] linux-user: implement more loop ioctls

2021-11-22 Thread Andreas Schwab
LOOP_CONFIGURE is now used by losetup, and it cannot cope with ENOSYS. Signed-off-by: Andreas Schwab --- linux-user/ioctls.h| 4 linux-user/linux_loop.h| 2 ++ linux-user/syscall_defs.h | 4 linux-user/syscall_types.h | 6 ++ 4 files changed, 16 insertions(+) diff

[PATCH] linux-user/syscall: add support for CLONE_PIDFD

2021-09-21 Thread Andreas Schwab
Add basic support for CLONE_PIDFD, only fork-like clone without additional flags. This is enough to make Qt/forkfd working. Signed-off-by: Andreas Schwab --- linux-user/syscall.c | 52 ++-- 1 file changed, 50 insertions(+), 2 deletions(-) diff --git

[PATCH] linux-user/syscall: add support for CLONE_PIDFD

2021-08-02 Thread Andreas Schwab
Add basic support for CLONE_PIDFD, only fork-like clone without additional flags. This is enough to make Qt/forkfd working. Signed-off-by: Andreas Schwab --- linux-user/syscall.c | 52 ++-- 1 file changed, 50 insertions(+), 2 deletions(-) diff --git

[PATCH] linux-user: fill ppid field in /proc/self/stat

2021-06-21 Thread Andreas Schwab
Signed-off-by: Andreas Schwab --- linux-user/syscall.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 974dd46c9a..dababe463c 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -7940,6 +7940,9 @@ static int open_self_stat(void

[PATCH] linux-user: Implement copy_file_range

2020-11-12 Thread Andreas Schwab
Signed-off-by: Andreas Schwab --- linux-user/syscall.c | 40 1 file changed, 40 insertions(+) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 3160a9ba06..c3373af4c7 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -813,6

[Bug 1793539] Re: qemu:handle_cpu_signal received signal outside vCPU context @ pc=0x6003ddc5

2020-08-10 Thread Andreas Schwab
As you can see in the build log the package builds sucessfully. ** Changed in: qemu Status: New => Fix Released -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1793539 Title:

Re: [PATCH for 5.1] docs: fix trace docs build with sphinx 3.1.1

2020-07-26 Thread Andreas Schwab
ut it is not being triggered. While > it is only complaining about the first option, I changed all > the options to give consistency. > > Signed-off-by: Daniel P. Berrangé Running Sphinx v1.7.6 [...] Warning, treated as error: ../qemu-5.0.0/docs/qemu-option-trace.rst.inc:21:Duplicate expli

[PATCH] linux-user: Use getcwd syscall directly

2020-07-23 Thread Andreas Schwab
The glibc getcwd function returns different errors than the getcwd syscall, which triggers an assertion failure in the glibc getcwd function when running under the emulation. Signed-off-by: Andreas Schwab --- linux-user/syscall.c | 9 + 1 file changed, 1 insertion(+), 8 deletions

[PATCH] linux-user: implement the semtimedop syscall

2020-07-13 Thread Andreas Schwab
Signed-off-by: Andreas Schwab --- linux-user/syscall.c | 32 +++- 1 file changed, 27 insertions(+), 5 deletions(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 9ec03a889d..7c0f5b83ff 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c

Re: [PATCH 1/2] softfloat: m68k: infinity is a valid encoding

2020-07-13 Thread Andreas Schwab
ly by fpsp040, to be compatible with the 68881. Andreas. -- Andreas Schwab, SUSE Labs, sch...@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different."

[PATCH] linux-user: implement OFD locks

2020-05-25 Thread Andreas Schwab
Signed-off-by: Andreas Schwab --- linux-user/generic/fcntl.h | 4 linux-user/syscall.c | 6 ++ 2 files changed, 10 insertions(+) diff --git a/linux-user/generic/fcntl.h b/linux-user/generic/fcntl.h index 9f727d4df2..c85c5b9fed 100644 --- a/linux-user/generic/fcntl.h +++ b/linux

Re: [PATCH] linux-user: Use getcwd syscall directly

2020-04-07 Thread Andreas Schwab
On Apr 07 2020, Peter Maydell wrote: > On Tue, 7 Apr 2020 at 11:37, Laurent Vivier wrote: >> >> Le 06/04/2020 à 17:18, Andreas Schwab a écrit : >> > The glibc getcwd function returns different errors than the getcwd >> > syscall, which triggers an assertion fai

[PATCH] linux-user: Use getcwd syscall directly

2020-04-06 Thread Andreas Schwab
The glibc getcwd function returns different errors than the getcwd syscall, which triggers an assertion failure in the glibc getcwd function when running under the emulation. Signed-off-by: Andreas Schwab --- linux-user/syscall.c | 9 + 1 file changed, 1 insertion(+), 8 deletions

[PATCH] linux-user: add strace for dup3

2019-09-30 Thread Andreas Schwab
Signed-off-by: Andreas Schwab --- linux-user/strace.list | 3 +++ 1 file changed, 3 insertions(+) diff --git a/linux-user/strace.list b/linux-user/strace.list index 63a946642d..863283418e 100644 --- a/linux-user/strace.list +++ b/linux-user/strace.list @@ -121,6 +121,9 @@ #ifdef TARGET_NR_dup2

[Qemu-devel] [PATCH] roms/Makefile: fix command for opensbi64-sifive_u

2019-08-12 Thread Andreas Schwab
Copy the correct firmware file Signed-off-by: Andreas Schwab --- roms/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roms/Makefile b/roms/Makefile index dc70fb5aea..775c963f9d 100644 --- a/roms/Makefile +++ b/roms/Makefile @@ -183,7 +183,7 @@ opensbi64-sifive_u

[Qemu-devel] [PATCH] linux-user: implement getsockopt SO_RCVTIMEO and SO_SNDTIMEO

2019-05-13 Thread Andreas Schwab
Signed-off-by: Andreas Schwab --- linux-user/syscall.c | 36 ++-- 1 file changed, 34 insertions(+), 2 deletions(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index d113a65831..ba5775a94e 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c

[Qemu-devel] [PATCH] linux-user: Implement membarrier syscall

2019-05-13 Thread Andreas Schwab
Signed-off-by: Andreas Schwab --- linux-user/syscall.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index f5ff6f5dc8..80399f4eb0 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -313,6 +313,9 @@ _syscall3(int, getrandom

[Qemu-devel] [PATCH] linux-user: don't short-circuit read with zero length

2019-03-05 Thread Andreas Schwab
A zero-length read still needs to do the usual checks, thus it may return errors like EBADF. This makes the read syscall emulation consistent with the pread64 syscall emulation. Signed-off-by: Andreas Schwab --- linux-user/syscall.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions

[Qemu-devel] [PATCH] linux-user: fix emulation of accept4/getpeername/getsockname/recvfrom syscalls

2019-02-14 Thread Andreas Schwab
value of the addrlen parameter, so that it doesn't write past the buffer limits. Signed-off-by: Andreas Schwab --- linux-user/syscall.c | 41 + 1 file changed, 25 insertions(+), 16 deletions(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index

[Qemu-devel] [PATCH] linux-user: fix recvmsg emulation

2019-02-12 Thread Andreas Schwab
Set msg_flags in the returned struct msghdr. Signed-off-by: Andreas Schwab --- linux-user/syscall.c | 1 + 1 file changed, 1 insertion(+) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 90bfda3563..b6b566a6fa 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c

[Qemu-devel] [PATCH] linux-user: fix emulation of accept4/getpeername/getsockname/recvfrom syscalls

2019-02-07 Thread Andreas Schwab
of the addrlen parameter, so that it doesn't write past the buffer limits. Signed-off-by: Andreas Schwab --- linux-user/syscall.c | 38 ++ 1 file changed, 22 insertions(+), 16 deletions(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 55fa235a56

[Qemu-devel] [PATCH] linux-user: fix emulation of accept4/getpeername/getsockname/recvfrom syscalls

2019-01-28 Thread Andreas Schwab
of the addrlen parameter, so that it doesn't write past the buffer limits. Signed-off-by: Andreas Schwab --- linux-user/syscall.c | 38 ++ 1 file changed, 22 insertions(+), 16 deletions(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index d5db01122aa4

[Qemu-devel] [Bug 1793539] [NEW] qemu:handle_cpu_signal received signal outside vCPU context @ pc=0x6003ddc5

2018-09-20 Thread Andreas Schwab
Public bug reported: During the build of gedit for RISC-V this error occurs: $ qemu-riscv64 -E LD_LIBRARY_PATH=gedit/.libs ./gedit/.libs/gedit qemu:handle_cpu_signal received signal outside vCPU context @ pc=0x6003ddc5 qemu:handle_cpu_signal received signal outside vCPU context @ pc=0x69e4

[Qemu-devel] [PATCH] linux-user: don't short-circuit read with zero length

2018-09-11 Thread Andreas Schwab
A zero-length read still needs to do the usual checks, thus it may return errors like EBADF. Signed-off-by: Andreas Schwab --- linux-user/syscall.c | 18 +++--- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index

Re: [Qemu-devel] [PULL v4 0/7] riscv-pull queue

2018-07-10 Thread Andreas Schwab
On Jul 09 2018, Alistair Francis wrote: > On Mon, Jul 9, 2018 at 3:00 AM, Andreas Schwab wrote: >> What is the state of the sifive_u emulation? When I tried to boot a bbl >> with an included kernel I get these errors: >> >> qemu-system-riscv64: plic: invalid regis

Re: [Qemu-devel] [PULL v4 0/7] riscv-pull queue

2018-07-09 Thread Andreas Schwab
qemu-system-riscv64: plic: invalid register write: 20b0 qemu-system-riscv64: plic: invalid register write: 20b4 Andreas. -- Andreas Schwab, SUSE Labs, sch...@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different."

Re: [Qemu-devel] qemu:handle_cpu_signal received signal outside vCPU context

2018-05-30 Thread Andreas Schwab
On Mär 19 2018, Michael Clark wrote: > On Mon, Mar 19, 2018 at 9:17 AM, Andreas Schwab wrote: > >> I'm seeing this error while building gedit for riscv64 with linux-user >> emulation: >> >> $ LD_LIBRARY_PATH=gedit/.libs qemu-riscv64 gedit/.libs/gedit

Re: [Qemu-devel] qemu:handle_cpu_signal received signal outside vCPU context

2018-03-20 Thread Andreas Schwab
use.org/package/show/openSUSE:Factory:RISCV/gedit> with osc and use osc build. Andreas. -- Andreas Schwab, SUSE Labs, sch...@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different."

[Qemu-devel] qemu:handle_cpu_signal received signal outside vCPU context

2018-03-19 Thread Andreas Schwab
context @ pc=0x6003d7d5 qemu:handle_cpu_signal received signal outside vCPU context @ pc=0x60106a16 This is qemu as of today with the patches from git://github.com/riscv/riscv-qemu / riscv-all on top. Andreas. -- Andreas Schwab, SUSE Labs, sch...@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970

Re: [Qemu-devel] [PATCH 5/7] block: convert bdrv_invalidate_cache callback to coroutine_fn

2018-03-15 Thread Andreas Schwab
: 'iscsi_invalidate_cache' undeclared here (not in a function); did you mean 'iscsi_co_invalidate_cache'? .bdrv_invalidate_cache = iscsi_invalidate_cache, ^~ iscsi_co_invalidate_cache Andreas. -- Andreas

Re: [Qemu-devel] [PATCH v6 00/23] RISC-V QEMU Port Submission

2018-02-26 Thread Andreas Schwab
This is being used to build openSUSE Factory for riscv64 with linux-user emulation: https://build.opensuse.org/project/show/openSUSE:Factory:RISCV Andreas. -- Andreas Schwab, SUSE Labs, sch...@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "An

Re: [Qemu-devel] [PATCH v2] linux-user: Implement copy_file_range

2018-02-15 Thread Andreas Schwab
On Feb 15 2018, Laurent Vivier <laur...@vivier.eu> wrote: > Le 06/02/2018 à 11:31, Andreas Schwab a écrit : >> No attempt is made to emulate it on the host. > > I don't understand what you mean here... If your host doesn't have it, neither will the emulation. Andreas. --

[Qemu-devel] [PATCH v2] linux-user: Implement copy_file_range

2018-02-06 Thread Andreas Schwab
No attempt is made to emulate it on the host. Signed-off-by: Andreas Schwab <sch...@suse.de> --- v2: fix spacing --- linux-user/syscall.c | 39 +++ 1 file changed, 39 insertions(+) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index bed1

[Qemu-devel] [PATCH] linux-user: Implement copy_file_range

2018-02-05 Thread Andreas Schwab
No attempt is made to emulate it on the host. Signed-off-by: Andreas Schwab <sch...@suse.de> --- linux-user/syscall.c | 39 +++ 1 file changed, 39 insertions(+) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 07fb8de921..ff89016adc

[Qemu-devel] [PATCH] linux-user: Implement setsockopt SOL_SOCKET/SO_LINGER

2018-02-05 Thread Andreas Schwab
Signed-off-by: Andreas Schwab <sch...@suse.de> --- linux-user/syscall.c | 23 +++ 1 file changed, 23 insertions(+) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index ff89016adc..82848fd97d 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -

Re: [Qemu-devel] [PATCH v4 10/22] RISC-V Linux User Emulation

2018-02-05 Thread Andreas Schwab
ve_pages 239 > +#define TARGET_NR_rt_tgsigqueueinfo 240 > +#define TARGET_NR_perf_event_open 241 > +#define TARGET_NR_accept4 242 > +#define TARGET_NR_recvmmsg 243 > +#define TARGET_NR_arch_specific_syscall 244 > +#define TARGET_NR_wait4 260 > +#define TARGET_NR_prlimit64 261 > +#define TARGET_NR_fanotify_init 262 > +#define TARGET_NR_fanotify_mark 263 > +#define TARGET_NR_name_to_handle_at 264 > +#define TARGET_NR_open_by_handle_at 265 > +#define TARGET_NR_clock_adjtime 266 > +#define TARGET_NR_syncfs 267 > +#define TARGET_NR_setns 268 > +#define TARGET_NR_sendmmsg 269 > +#define TARGET_NR_process_vm_readv 270 > +#define TARGET_NR_process_vm_writev 271 > +#define TARGET_NR_kcmp 272 > +#define TARGET_NR_finit_module 273 > + > +#define TARGET_NR_syscalls (__NR_finit_module + 1) This is very much out of date, missing some important entries. Also, TARGET_NR_syscalls needs to refer to TARGET_NR_*. Andreas. -- Andreas Schwab, SUSE Labs, sch...@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different."

[Qemu-devel] [PATCH v3] linux-user: Implement ioctl cmd TIOCGPTPEER

2018-01-29 Thread Andreas Schwab
With glibc 2.27 the openpty function prefers the TIOCGPTPEER ioctl. Signed-off-by: Andreas Schwab <sch...@suse.de> Reviewed-by: Laurent Vivier <laur...@vivier.eu> --- v2: handle host with old kernel headers v3: fix sparc typos --- linux-user/aarch64/termbits.h| 2 ++ linu

[Qemu-devel] [PATCH v2] linux-user: Implement ioctl cmd TIOCGPTPEER

2018-01-25 Thread Andreas Schwab
With glibc 2.27 the openpty function will prefer the TIOCGPTPEER ioctl. Signed-off-by: Andreas Schwab <sch...@suse.de> --- v2: handle host with old kernel headers --- linux-user/aarch64/termbits.h| 2 ++ linux-user/alpha/termbits.h | 1 + linux-user/arm/termbits.h| 1 +

[Qemu-devel] [PATCH] linux-user: Implement ioctl cmd TIOCGPTPEER

2018-01-24 Thread Andreas Schwab
With glibc 2.27 the openpty function will prefer the TIOCGPTPEER ioctl. Signed-off-by: Andreas Schwab <sch...@suse.de> --- linux-user/aarch64/termbits.h| 2 ++ linux-user/alpha/termbits.h | 1 + linux-user/arm/termbits.h| 1 + linux-user/cris/termbits.h | 1 + linu

[Qemu-devel] [PATCH v2] linux-user: implement renameat2

2018-01-23 Thread Andreas Schwab
This is needed for new architectures like RISC-V which do not provide any other rename-like syscall. Signed-off-by: Andreas Schwab <sch...@suse.de> --- linux-user/syscall.c | 34 ++ 1 file changed, 34 insertions(+) diff --git a/linux-user/syscall.c b/linu

Re: [Qemu-devel] [PATCH] linux-user: implement renameat2

2018-01-23 Thread Andreas Schwab
On Jan 23 2018, Laurent Vivier <laur...@vivier.eu> wrote: > And, please, test it (build/run). This was tested by bootstrapping openSUSE Factory for RISC-V. Andreas. -- Andreas Schwab, SUSE Labs, sch...@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7

Re: [Qemu-devel] [PATCH] linux-user: implement renameat2

2018-01-23 Thread Andreas Schwab
lags_tbl))); > > You can't use fcntl_flags_tbl Of course! I was confused by another patch I was working on which does need such a conversion. :-/ Andreas. -- Andreas Schwab, SUSE Labs, sch...@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different."

[Qemu-devel] [PATCH] linux-user: implement renameat2

2018-01-22 Thread Andreas Schwab
This is needed for new architectures like RISC-V which do not provide any other rename-like syscall. Signed-off-by: Andreas Schwab <sch...@suse.de> --- linux-user/syscall.c | 33 + 1 file changed, 33 insertions(+) diff --git a/linux-user/syscall.c b/linu

Re: [Qemu-devel] /usr/bin/m4: internal error detected

2017-12-01 Thread Andreas Schwab
sh4 [2]. It's a bug in qemu-linux-user, which ignores CLONE_VFORK, turning vfork into fork. This breaks the expected semantics of vfork (VM sharing and blocking the child until exec). Andreas. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5

Re: [Qemu-devel] [PATCH] qemu-binfmt-conf.sh: Fix m68k_mask

2017-03-22 Thread Andreas Schwab
On Mär 22 2017, Thomas Huth <h...@tuxfamily.org> wrote: > On 21.03.2017 10:38, Andreas Schwab wrote: >> The m68k mask should not remove the low bit of the ELF version field and >> should ignore the OS/ABI field. > > Did you encounter a problem with a real binar

[Qemu-devel] [PATCH] qemu-binfmt-conf.sh: Fix m68k_mask

2017-03-21 Thread Andreas Schwab
The m68k mask should not remove the low bit of the ELF version field and should ignore the OS/ABI field. Signed-off-by: Andreas Schwab <sch...@suse.de> --- scripts/qemu-binfmt-conf.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/qemu-binfmt-conf.sh b/script

[Qemu-devel] [PATCH] linux-user: remove all traces of qemu from /proc/self/cmdline

2017-03-20 Thread Andreas Schwab
Instead of post-processing the real contents use the remembered target argv. That removes all traces of qemu, including command line options, and handles QEMU_ARGV0. Signed-off-by: Andreas Schwab <sch...@suse.de> --- linux-user/syscall.c | 47 +++-

Re: [Qemu-devel] [PATCH v3 15/16] target-m68k: add more FPU instructions

2017-02-17 Thread Andreas Schwab
On Feb 17 2017, Richard Henderson <r...@twiddle.net> wrote: > On 02/16/2017 09:18 PM, Andreas Schwab wrote: >> There is no guarantee that the host long double has the same range and >> precision as floatx80. > > Indeed not. However, do you have another plan for implem

Re: [Qemu-devel] [PATCH v2 02/16] softloat: disable floatx80_invalid_encoding() for m68k

2017-01-30 Thread Andreas Schwab
0/60 don't support denormal/unnormal in hardware and lets the support library handle them, which presumably works the same way as the 68881/2.) Andreas. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."

Re: [Qemu-devel] [PATCH v2 00/16] target-m68k: implement 680x0 FPU

2017-01-30 Thread Andreas Schwab
ne and in floatx80 it is the MSB. An Intel Extended also has a different exponent bias than a Motorola Extended in the denormal range. In other words, for the latter the bias doesn't change between normal and denormal numbers. Andreas. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 58CA 5

Re: [Qemu-devel] [PULL for-2.8 0/2] target-alpha update

2016-11-22 Thread Andreas Schwab
Sorry, I forgot to update the url of the submodule. Just editing .git/config isn't enough. Andreas. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."

Re: [Qemu-devel] [PULL for-2.8 0/2] target-alpha update

2016-11-21 Thread Andreas Schwab
Fetched in submodule path 'roms/qemu-palcode', but it did not contain f3c7e44c70254975df2a00af39701eafbac4d471. Direct fetching of that commit failed. Andreas. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "An

Re: [Qemu-devel] [PATCH] target-m68k: Implement bfffo

2016-11-15 Thread Andreas Schwab
c gives the same wrong opcode on the bfffo description page. It > confused me for some time until I scrolled to the opcode map at the end of > the document, where it is correctly identified as EDC0. The printed manual has the correct opcode, it is only wrong in the PDF. Andreas. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."

[Qemu-devel] [PATCH] linux-user: remove all traces of qemu from /proc/self/cmdline

2016-10-31 Thread Andreas Schwab
Instead of post-processing the real contents use the remembered target argv. That removes all traces of qemu, including command line options, and handles QEMU_ARGV0. Signed-off-by: Andreas Schwab <sch...@suse.de> --- linux-user/syscall.c | 47 +++-

[Qemu-devel] [PATCH] linux-user: remove all traces of qemu from /proc/self/cmdline

2016-09-28 Thread Andreas Schwab
Instead of post-processing the real contents use the remembered target argv. That removes all traces of qemu, including command line options, and handles QEMU_ARGV0. Signed-off-by: Andreas Schwab <sch...@suse.de> --- linux-user/syscall.c | 47 +++-

Re: [Qemu-devel] [PATCH 30/52] target-m68k: add scc/dbcc

2016-05-06 Thread Andreas Schwab
;> +gen_jmp_tb(s, 1, base + offset); >> +gen_set_label(l1); >> +update_cc_op(s); >> +gen_jmp_tb(s, 0, s->pc); > > Pull the update_cc_op up to the top, so as to only generate one copy. This misses a followup patch which moves it into gen_jmpcc. In the c

Re: [Qemu-devel] [PATCH 19/52] target-m68k: terminate cpu dump with newline

2016-05-06 Thread Andreas Schwab
Laurent Vivier <laur...@vivier.eu> writes: > From: Andreas Schwab <sch...@linux-m68k.org> > > Signed-off-by: Andreas Schwab <sch...@linux-m68k.org> > Signed-off-by: Laurent Vivier <laur...@vivier.eu> > --- > target-m68k/translate.c | 2 +- > 1 file ch

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

2016-05-06 Thread Andreas Schwab
Andreas Schwab <sch...@linux-m68k.org> writes: > Here is a testcase: > > when compiling tlink.c from the gcc sources with gcc-6 r234449 (which > was bootstrapped in aranym): > > $ g++ -fno-PIE -c -fomit-frame-pointer -O2 -DIN_GCC -fno-exceptions > -fno-rtti -fas

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

2016-05-06 Thread Andreas Schwab
_Z15collect_executePKcPPcS0_S0_ib + move.l %d4,%a1 + jsr (%a1) move.l %a0,-(%sp) pea .LC23 - move.l %d4,%a0 - jsr (%a0) + jsr _Z12collect_waitPKcP7pex_obj move.l %d0,%d3 lea (32,%sp),%sp jeq .L368 Andreas. -- Andreas Schwab, sch

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

2016-05-06 Thread Andreas Schwab
Laurent Vivier <laur...@vivier.eu> writes: > What is the version of gcc? It doesn't matter, any version. > what are your configure parameters? Nothing special. Andreas. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4

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

2016-05-06 Thread Andreas Schwab
John Paul Adrian Glaubitz <glaub...@physik.fu-berlin.de> writes: > 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

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

2016-05-06 Thread Andreas Schwab
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, you do. See the build log. Andreas. -- Andreas Schwab, sch...@linux-m68k.or

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

2016-05-06 Thread Andreas Schwab
John Paul Adrian Glaubitz <glaub...@physik.fu-berlin.de> writes: > On 05/06/2016 12:15 PM, Andreas Schwab wrote: >> Laurent Vivier <laur...@vivier.eu> writes: >> >>> BTW, Adrian is using this branch (680x0-master-dev) for months to build >>> Debia

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

2016-05-06 Thread Andreas Schwab
Laurent Vivier <laur...@vivier.eu> writes: > BTW, Adrian is using this branch (680x0-master-dev) for months to build > Debian packages. I don't trust it yet until it can bootstrap gcc. Andreas. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 175

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

2016-05-06 Thread Andreas Schwab
) only used in the stage1 compiler (which is built unoptimized) isn't handled correctly yet. Andreas. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."

Re: [Qemu-devel] Can we require a newer Python?

2015-09-04 Thread Andreas Schwab
Markus Armbruster <arm...@redhat.com> writes: > I vaguely remember we settled for GLib 2.22 due to some version of SLES. > If that's correct: what version of Python does it provide? SLES-11 has always provided python 2.6. Andreas. -- Andreas Schwab, sch...@linux-m68k.org GPG Key

Re: [Qemu-devel] [PATCH 03/11] target-m68k: Remove incorrect clearing of cc_x

2015-08-15 Thread Andreas Schwab
Richard Henderson r...@twiddle.net writes: Ah. Except placed here it also applies to and/or/move too. Well, none of those ever overflow in the first place. Andreas. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 And now

  1   2   >