[PATCH] pc-bios/descriptors: fix paths in json files

2021-01-31 Thread Sergei Trofimovich
Lureau" CC: "Philippe Mathieu-Daudé" Bug: https://bugs.gentoo.org/766743 Bug: https://bugs.launchpad.net/qemu/+bug/1913012 Patch-by: Jannik Glückert Signed-off-by: Sergei Trofimovich --- pc-bios/descriptors/meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/p

[Bug 1913012] Re: Installed firmware descriptor files contain (invalid) relative paths

2021-01-31 Thread Sergei Trofimovich
Gentoo also noticed the bug: https://bugs.gentoo.org/766743 Jannik Glückert proposed a fix: ``` --- a/pc-bios/descriptors/meson.build +++ b/pc-bios/descriptors/meson.build @@ -8,7 +8,7 @@ foreach f: [ ] configure_file(input: files(f), output: f, -

[PATCH] meson.build: drop duplicate 'sparc64' entry

2020-10-12 Thread Sergei Trofimovich
CC: Laurent Vivier CC: qemu-triv...@nongnu.org Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Sergei Trofimovich --- meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meson.build b/meson.build index a02c743794..48e7c56cc1 100644 --- a/meson.build +++ b

[PATCH] meson.build: tweak sdl-image error message

2020-09-08 Thread Sergei Trofimovich
hilippe Mathieu-Daudé" CC: Rafael Kitover Signed-off-by: Sergei Trofimovich --- meson.build | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/meson.build b/meson.build index 04e070bb3b..7fd2a903c5 100644 --- a/meson.build +++ b/meson.build @@ -255,8 +2

Re: [PATCH] linux-user/strace.list: fix epoll_create{,1} -strace output

2020-04-30 Thread Sergei Trofimovich
On Thu, 16 Apr 2020 18:59:57 +0100 Sergei Trofimovich wrote: > Fix syscall name and parameters priinter. > > Before the change: > > ``` > $ alpha-linux-user/qemu-alpha -strace -L /usr/alpha-unknown-linux-gnu/ /tmp/a > .

[PATCH] linux-user/strace.list: fix epoll_create{,1} -strace output

2020-04-16 Thread Sergei Trofimovich
: ``` $ alpha-linux-user/qemu-alpha -strace -L /usr/alpha-unknown-linux-gnu/ /tmp/a ... 1273719 epoll_create1(2097152) = 3 1273719 exit_group(0) ``` Signed-off-by: Sergei Trofimovich CC: Riku Voipio CC: Laurent Vivier --- linux-user/strace.list | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions

[Bug 1872847] Re: qemu-alpha linux-user breaks python3.6

2020-04-15 Thread Sergei Trofimovich
Proposed possible fix as https://lists.nongnu.org/archive/html/qemu- devel/2020-04/msg02545.html -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1872847 Title: qemu-alpha linux-user breaks python3.6

[PATCH] linux-user/syscall.c: add target-to-host mapping for epoll_create1()

2020-04-15 Thread Sergei Trofimovich
:EPOLL_CLOEXEC = 0200 Bug: https://bugs.gentoo.org/717548 Reported-by: Barnabás Virágh Signed-off-by: Sergei Trofimovich CC: Riku Voipio CC: Laurent Vivier --- 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

[Qemu-devel] [Bug 1821444] Re: qemu-ppc (user) incorrectly translates float32 arithmetics

2019-03-25 Thread Sergei Trofimovich
Alternatively 'uint64_t helper_todouble(uint32_t)' could be implemented via include/fpu/softfloat.h:float64 float32_to_float64(float32, float_status *status); -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU.

[Qemu-devel] [Bug 1821515] [NEW] qemu-ppc (user) incorrectly converts float(nan)->double(non-nan)

2019-03-24 Thread Sergei Trofimovich
Public bug reported: Noticed on qemu-3.1.0 on GHC test suite where float32 comparisons didn't work on NaNs. Here is the minimal reproducer: ```c // cat a.c #include #include #include int main() { volatile float f1 = NAN; volatile float f2 = NAN; printf ("f1 (%e, %#x) >= f2 (%e,

[Qemu-devel] [Bug 1821515] Re: qemu-ppc (user) incorrectly converts float(nan)->double(non-nan)

2019-03-24 Thread Sergei Trofimovich
The bug is in the same area as https://bugs.launchpad.net/qemu/+bug/1821444 but in another branch of 'uint64_t helper_todouble(uint32_t arg=0x1)'. -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU.

[Qemu-devel] [Bug 1821444] Re: qemu-ppc (user) incorrectly translates float32 arithmetics

2019-03-23 Thread Sergei Trofimovich
Attaching the patch and sending for review as: https://lists.gnu.org/archive/html/qemu-devel/2019-03/msg06562.html ** Patch added: "patch to fix denormals" https://bugs.launchpad.net/qemu/+bug/1821444/+attachment/5248915/+files/0001-powerpc-fix-denorm-float-double-conversion.patch --

[Qemu-devel] [PATCH] powerpc: fix denorm float->double conversion

2019-03-23 Thread Sergei Trofimovich
en converting to normalized 'double' - significand had an off-by-one shift CC: Richard Henderson CC: David Gibson CC: qemu-...@nongnu.org CC: qemu-devel@nongnu.org Bug: https://bugs.launchpad.net/qemu/+bug/1821444 Signed-off-by: Sergei Trofimovich --- target/ppc/fpu_helper.c | 32 +++

[Qemu-devel] [Bug 1821444] Re: qemu-ppc (user) incorrectly translates float32 arithmetics

2019-03-23 Thread Sergei Trofimovich
A bit more investigation: It looks like the bug happens in float->double conversion direction. $ cat a.c #include #include int main() { volatile uint32_t i = 1; volatile float f; volatile double d; *(volatile uint32_t*) = i; d = f; printf("d = %#llx (expect

[Qemu-devel] [Bug 1821444] Re: qemu-ppc (user) incorrectly translates float32 arithmetics

2019-03-23 Thread Sergei Trofimovich
Shorter example without relying on printf() implementation. Looks like uint32_t<->float<->double transitions are enough. $ cat a.c #include #include int main() { volatile uint32_t i = 1; volatile float f; volatile double d; *(volatile uint32_t*) = i; d = f; f = d; // double

[Qemu-devel] [Bug 1821444] Re: qemu-ppc (user) incorrectly translates float32 arithmetics

2019-03-23 Thread Sergei Trofimovich
My native system is x86_64-pc-linux-gnu with a few binfmt_misc handlers wired. Checking other targets I have locally I get the following: affected targets: - powerpc - powerpc64 - powerpc64le unaffected targets: - arm - arm64 - hppa - sparc probably unaffected: - alpha (maybe it's ok as alpha is

[Qemu-devel] [Bug 1821444] [NEW] qemu-ppc (user) incorrectly translates float32 arithmetics

2019-03-23 Thread Sergei Trofimovich
Public bug reported: I'm using qemu-3.1.0 (Gentoo). When I was running regression test suite via qemu-ppc for GHC I noticed a few uint32_t<->float32 failures I did not expect to encounter. Here is an example $ cat a.c #include #include int main() { volatile uint32_t i = 1;

Re: [Qemu-devel] [RFC PATCH] capstone: fix building using system package

2018-02-15 Thread Sergei Trofimovich
On Thu, 15 Feb 2018 14:35:39 -0300 Philippe Mathieu-Daudé wrote: > #else > +#include I think it's incorrect. 'pkg-config' already reports 'capstone/' path: $ pkg-config --cflags capstone -I/usr/include/capstone $ ls /usr/include/capstone/capstone.h

[Qemu-devel] [PATCH v2] alpha-user: wire epoll_create, epoll_ctl, epoll_wait

2017-05-31 Thread Sergei Trofimovich
-devel@nongnu.org Reviewed-by: Peter Maydell <peter.mayd...@linaro.org> Signed-off-by: Sergei Trofimovich <sly...@gentoo.org> --- Change since v1: - cleaned up 'linux-user/strace.list' from deprecated defines linux-user/alpha/syscall_nr.h | 6 +++--- linux-user/strace.list| 9

Re: [Qemu-devel] [PATCH] alpha-user: wire epoll_create, epoll_ctl, epoll_wait

2017-05-11 Thread Sergei Trofimovich
On Sat, 8 Apr 2017 20:33:22 +0100 Sergei Trofimovich <sly...@gentoo.org> wrote: > Noticed when ran GHC on alpha: > $ qemu-alpha -L /usr/alpha-unknown-linux-gnu/ /tmp/a > qemu: Unsupported syscall: 407 > > linux-user/syscall.c does have 'epoll_create' wiring, >

[Qemu-devel] [PATCH] alpha-user: wire epoll_create, epoll_ctl, epoll_wait

2017-04-08 Thread Sergei Trofimovich
ki.fi> Cc: qemu-devel@nongnu.org Signed-off-by: Sergei Trofimovich <sly...@gentoo.org> --- linux-user/alpha/syscall_nr.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/linux-user/alpha/syscall_nr.h b/linux-user/alpha/syscall_nr.h index 00e14bb6b3..e848154663 10064

Re: [Qemu-devel] [PATCH] configure: do not quote $PKG_CONFIG

2012-09-17 Thread Sergei Trofimovich
On Sun, 16 Sep 2012 22:21:31 +0200 Stefan Weil s...@weilnetz.de wrote: Am 16.09.2012 21:52, schrieb Mike Frysinger: On Sunday 15 July 2012 15:54:51 Stefan Weil wrote: Am 15.07.2012 22:26, schrieb Mike Frysinger: We should not quote the PKG_CONFIG setting as this deviates from the

[Qemu-devel] [PATCH v3 resend] ./configure: request pkg-config to provide private libs when static linking

2012-01-31 Thread Sergei Trofimovich
From: Sergei Trofimovich sly...@gentoo.org Added wrapper around pkg-config to allow: - safe options injection via ${QEMU_PKG_CONFIG_FLAGS} - spaces in path to pkg-config Signed-off-by: Sergei Trofimovich sly...@gentoo.org CC: Peter Maydell peter.mayd...@linaro.org --- configure | 11

[Qemu-devel] [PATCH resend] ./configure: add link check for nss-smartcard

2012-01-31 Thread Sergei Trofimovich
From: Sergei Trofimovich sly...@gentoo.org Current './configure --static make' fails for me: LINK qemu-nbd /usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lssl3 /usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/../../../../x86_64-pc-linux-gnu/bin

Re: [Qemu-devel] [PATCH v3 1/2] ./configure: request pkg-config to provide private libs when static linking

2012-01-28 Thread Sergei Trofimovich
On Mon, 23 Jan 2012 21:33:49 +0300 Sergei Trofimovich sly...@inbox.ru wrote: From: Sergei Trofimovich sly...@gentoo.org Added wrapper around pkg-config to allow: - safe options injection via ${QEMU_PKG_CONFIG_FLAGS} - spaces in path to pkg-config Signed-off-by: Sergei Trofimovich sly

Re: [Qemu-devel] [PATCH 2/2] ./configure: add link check for nss-smartcard

2012-01-28 Thread Sergei Trofimovich
On Mon, 23 Jan 2012 10:41:38 +0300 Sergei Trofimovich sly...@inbox.ru wrote: From: Sergei Trofimovich sly...@gentoo.org Current './configure --static make' fails for me: LINK qemu-nbd /usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find

[Qemu-devel] [PATCH] ./configure: export xfs config via --{enable, disable}-xfsctl

2012-01-24 Thread Sergei Trofimovich
From: Sergei Trofimovich sly...@gentoo.org Signed-off-by: Sergei Trofimovich sly...@gentoo.org --- configure |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/configure b/configure index 9d72145..bca1943 100755 --- a/configure +++ b/configure @@ -771,6 +771,10

[Qemu-devel] [PATCH 2/2] ./configure: add link check for nss-smartcard

2012-01-23 Thread Sergei Trofimovich
From: Sergei Trofimovich sly...@gentoo.org Current './configure --static make' fails for me: LINK qemu-nbd /usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lssl3 /usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/../../../../x86_64-pc-linux-gnu/bin

[Qemu-devel] [PATCH 1/2] ./configure: request pkg-config to provide private libs when static linking

2012-01-23 Thread Sergei Trofimovich
From: Sergei Trofimovich sly...@gentoo.org Signed-off-by: Sergei Trofimovich sly...@gentoo.org --- configure |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/configure b/configure index 467e87b..f3dcfba 100755 --- a/configure +++ b/configure @@ -553,6 +553,7 @@ for opt do

[Qemu-devel] [PATCH v2 1/2] ./configure: request pkg-config to provide private libs when static linking

2012-01-23 Thread Sergei Trofimovich
From: Sergei Trofimovich sly...@gentoo.org Added wrapper around pkg-config to allow: - safe options injection via ${QEMU_PKG_CONFIG_FLAGS} - spaces in path to pkg-config Signed-off-by: Sergei Trofimovich sly...@gentoo.org --- configure | 11 --- 1 files changed, 8 insertions(+), 3

[Qemu-devel] [PATCH v3 1/2] ./configure: request pkg-config to provide private libs when static linking

2012-01-23 Thread Sergei Trofimovich
From: Sergei Trofimovich sly...@gentoo.org Added wrapper around pkg-config to allow: - safe options injection via ${QEMU_PKG_CONFIG_FLAGS} - spaces in path to pkg-config Signed-off-by: Sergei Trofimovich sly...@gentoo.org --- configure | 11 --- 1 files changed, 8 insertions(+), 3