summaryrefslogtreecommitdiffstats
path: root/linux-user
diff options
context:
space:
mode:
authorRichard Henderson2010-04-26 19:27:22 +0200
committerBlue Swirl2010-04-26 19:30:17 +0200
commited18c5ce1d2aabdaa0a138463789b9fe812bb0e0 (patch)
treeba1b94e21c33d8aa6057b9eb76ad68afa0ca239c /linux-user
parenttarget-sparc: Fix -singlestep. (diff)
downloadqemu-ed18c5ce1d2aabdaa0a138463789b9fe812bb0e0.tar.gz
qemu-ed18c5ce1d2aabdaa0a138463789b9fe812bb0e0.tar.xz
qemu-ed18c5ce1d2aabdaa0a138463789b9fe812bb0e0.zip
linux-user: Fix sparc32plus stat64 syscalls.
Check TARGET_ABI_BITS, not TARGET_LONG_BITS, when deciding whether or not the guest needs special 64-bit stat translation. Signed-off-by: Richard Henderson <rth@twiddle.net> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'linux-user')
-rw-r--r--linux-user/syscall.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index 26c0fb4dc6..eb77ade9e7 100644
--- a/linux-user/syscall.c
+++ b/linux-user/syscall.c
@@ -4021,7 +4021,7 @@ static inline abi_long host_to_target_stat64(void *cpu_env,
} else
#endif
{
-#if (TARGET_LONG_BITS == 64) && (!defined(TARGET_ALPHA))
+#if TARGET_ABI_BITS == 64 && !defined(TARGET_ALPHA)
struct target_stat *target_st;
#else
struct target_stat64 *target_st;