From 807b047166cf3beac9a6a5a5f546aa29e8222695 Mon Sep 17 00:00:00 2001 From: Vince Weaver Date: Tue, 29 Dec 2009 00:01:22 -0500 Subject: [PATCH] alpha: fix stat64 issue The stat64/fstat64 syscalls are broken for alpha linux-user. This is because Alpha, even though it is native 64-bits, has a stat64 syscall that is different than regular stat. This means that the "TARGET_LONG_BITS==64" check in syscall.c isn't enough. Below is a patch that fixes things for me, although it might not be the cleanest fix. This issue keeps sixtrack and fma3d spec2k benchmarks from running. Signed-off-by: Vince Weaver Acked-by: Richard Henderson Signed-off-by: Aurelien Jarno --- linux-user/syscall.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 1acf1f5..f2dd39e 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -4004,7 +4004,7 @@ static inline abi_long host_to_target_stat64(void *cpu_env, } else #endif { -#if TARGET_LONG_BITS == 64 +#if (TARGET_LONG_BITS == 64) && (!defined(TARGET_ALPHA)) struct target_stat *target_st; #else struct target_stat64 *target_st; -- 2.7.4