aboutsummaryrefslogtreecommitdiff
path: root/linux-user
diff options
context:
space:
mode:
authorVince Weaver <vince@csl.cornell.edu>2009-12-29 00:01:22 -0500
committerAurelien Jarno <aurelien@aurel32.net>2010-01-14 15:59:59 +0100
commit8b0ee8c576a6f3e107c80f70f6dacb2964feb4a7 (patch)
tree7a27ddbd79085344d643517a026e62ee2b636d49 /linux-user
parentdcbc9a70af47fdd49d053f6a544a86de8dca398a (diff)
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 <vince@csl.cornell.edu> Acked-by: Richard Henderson <rth@twiddle.net> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
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 1acf1f5b64..f2dd39eb3b 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;