[Qemu-devel] [Bug 824716] Re: linux-user broken for targets with TARGET_ABI32 (i.e. qemu-sparc32plus)

2011-08-17 Thread Matthias Braun
Bugfix as sent to qemu-devel mailinglist on 2011/08/15 ** Patch added: "0001-linux-user-fix-abi_-u-long-target_ulong-mismatch.patch" https://bugs.launchpad.net/qemu/+bug/824716/+attachment/2285481/+files/0001-linux-user-fix-abi_-u-long-target_ulong-mismatch.patch -- You received this bug no

[Qemu-devel] [PATCH] linux-user: fix abi_(u)long, target_ulong mismatch

2011-08-15 Thread Matthias Braun
abi_(u)long might be different from target_ulong, so don't use tswapl but introduce a new tswapal see also https://bugs.launchpad.net/qemu/+bug/824716 Signed-off-by: Matthias Braun --- linux-user/qemu-types.h | 12 +++ linux-user/signal.c | 22 ++-- linux-user/strace.c |

[Qemu-devel] [Bug 824716] [NEW] linux-user broken for targets with TARGET_ABI32 (i.e. qemu-sparc32plus)

2011-08-11 Thread Matthias Braun
Public bug reported: I just debugged a problem I had with linux-user for qemu-sparc32plus. Turns out that sparc32plus is defined as a 64bit target with TARGET_ABI32 set. This correctly leads to abi_ulong (and others) being defined as uint32_t. However most of the code (in syscall.c) uses tswapl fo