From: Richard Henderson Date: Mon, 26 Apr 2010 17:27:22 +0000 (-0700) Subject: linux-user: Fix sparc32plus stat64 syscalls. X-Git-Tag: v0.13.0-rc0~681 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ed18c5ce1d2aabdaa0a138463789b9fe812bb0e0;p=thirdparty%2Fqemu.git 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 Signed-off-by: Blue Swirl --- diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 26c0fb4dc63..eb77ade9e7c 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;