Re: [PATCH] linux-user/elfload: byteswap i386 registers when dumping core

2021-08-05 Thread Laurent Vivier
Le 03/08/2021 à 19:20, Ilya Leoshkevich a écrit : > Core dumps from emulating x86_64 on big-endian hosts contain incorrect > register values. > > Signed-off-by: Ilya Leoshkevich > --- > linux-user/elfload.c | 88 ++-- > 1 file changed, 44 insertions(+),

Re: [PATCH] linux-user/elfload: byteswap i386 registers when dumping core

2021-08-04 Thread Philippe Mathieu-Daudé
On 8/4/21 4:12 PM, Laurent Vivier wrote: > Le 03/08/2021 à 20:34, Peter Maydell a écrit : >> On Tue, 3 Aug 2021 at 18:21, Ilya Leoshkevich wrote: >>> >>> Core dumps from emulating x86_64 on big-endian hosts contain incorrect >>> register values. >>> >>> Signed-off-by: Ilya Leoshkevich >> >> >>

Re: [PATCH] linux-user/elfload: byteswap i386 registers when dumping core

2021-08-04 Thread Laurent Vivier
Le 03/08/2021 à 20:34, Peter Maydell a écrit : > On Tue, 3 Aug 2021 at 18:21, Ilya Leoshkevich wrote: >> >> Core dumps from emulating x86_64 on big-endian hosts contain incorrect >> register values. >> >> Signed-off-by: Ilya Leoshkevich > > > Looks like these two were the only two guest arch

Re: [PATCH] linux-user/elfload: byteswap i386 registers when dumping core

2021-08-04 Thread Philippe Mathieu-Daudé
On 8/3/21 7:20 PM, Ilya Leoshkevich wrote: > Core dumps from emulating x86_64 on big-endian hosts contain incorrect > register values. > > Signed-off-by: Ilya Leoshkevich > --- > linux-user/elfload.c | 88 ++-- > 1 file changed, 44 insertions(+), 44

Re: [PATCH] linux-user/elfload: byteswap i386 registers when dumping core

2021-08-03 Thread Peter Maydell
On Tue, 3 Aug 2021 at 18:21, Ilya Leoshkevich wrote: > > Core dumps from emulating x86_64 on big-endian hosts contain incorrect > register values. > > Signed-off-by: Ilya Leoshkevich Looks like these two were the only two guest arch versions of this function that were missing the tswapreg

[PATCH] linux-user/elfload: byteswap i386 registers when dumping core

2021-08-03 Thread Ilya Leoshkevich
Core dumps from emulating x86_64 on big-endian hosts contain incorrect register values. Signed-off-by: Ilya Leoshkevich --- linux-user/elfload.c | 88 ++-- 1 file changed, 44 insertions(+), 44 deletions(-) diff --git a/linux-user/elfload.c