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>
This commit is contained in:
parent
060718c194
commit
ed18c5ce1d
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user