Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O6S61-00039n-Kh for qemu-devel@nongnu.org; Mon, 26 Apr 2010 13:27:49 -0400 Received: from [140.186.70.92] (port=54774 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O6S60-00036r-0l for qemu-devel@nongnu.org; Mon, 26 Apr 2010 13:27:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O6S5x-0000Rk-1A for qemu-devel@nongnu.org; Mon, 26 Apr 2010 13:27:47 -0400 Received: from mail-px0-f173.google.com ([209.85.212.173]:53792) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O6S5w-0000RY-SP for qemu-devel@nongnu.org; Mon, 26 Apr 2010 13:27:44 -0400 Received: by pxi19 with SMTP id 19so1620292pxi.4 for ; Mon, 26 Apr 2010 10:27:42 -0700 (PDT) Sender: Richard Henderson From: Richard Henderson Date: Mon, 26 Apr 2010 10:27:22 -0700 Message-Id: <1272302842-7987-1-git-send-email-rth@twiddle.net> In-Reply-To: References: Subject: [Qemu-devel] [PATCH] linux-user: Fix sparc32plus stat64 syscalls. List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Blue Swirl 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 --- linux-user/syscall.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 26c0fb4..eb77ade 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; -- 1.6.6.1