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
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 |
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