From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O6SCL-0006w2-Il for qemu-devel@nongnu.org; Mon, 26 Apr 2010 13:34:21 -0400 Received: from [140.186.70.92] (port=58172 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O6SCG-0006ua-Tn for qemu-devel@nongnu.org; Mon, 26 Apr 2010 13:34:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O6SCC-00028V-6h for qemu-devel@nongnu.org; Mon, 26 Apr 2010 13:34:16 -0400 Received: from mail-pw0-f45.google.com ([209.85.160.45]:36999) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O6SCB-00028F-VA for qemu-devel@nongnu.org; Mon, 26 Apr 2010 13:34:12 -0400 Received: by pwi6 with SMTP id 6so7841543pwi.4 for ; Mon, 26 Apr 2010 10:34:11 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <1272302842-7987-1-git-send-email-rth@twiddle.net> References: <1272302842-7987-1-git-send-email-rth@twiddle.net> Date: Mon, 26 Apr 2010 20:34:08 +0300 Message-ID: From: Blue Swirl Content-Type: text/plain; charset=UTF-8 Subject: [Qemu-devel] Re: [PATCH] linux-user: Fix sparc32plus stat64 syscalls. List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Richard Henderson Cc: qemu-devel@nongnu.org Thanks, applied. On 4/26/10, Richard Henderson wrote: > 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 > >