From patchwork Mon Apr 26 17:27:22 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 50983 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 23CADB7D1A for ; Tue, 27 Apr 2010 03:29:59 +1000 (EST) Received: from localhost ([127.0.0.1]:36988 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O6S84-0004dv-Mh for incoming@patchwork.ozlabs.org; Mon, 26 Apr 2010 13:29:56 -0400 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) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:from:to:cc:subject :date:message-id:x-mailer:in-reply-to:references; bh=tNtDjmxiUlkHlwOFhRcTnFhNU4fwaVluwCldMTVavjE=; b=JoGr9MHxyhhbKkO29WPJG0KI6/7m45f3/kk+zmubSlcQrI8EtWZ3rQrcqIeAAp5BOF nMbNtAwNmPzndgU+hPgH0QKWGcjDofiQU03w7dD233v+GIip9YuVDBwTUiJ/MK/guG9u ZjhnV6T9qD33Mn2lGJJxnT5kAmJ5ZTUDFIqBo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references; b=pOyDGOrLynOt2g3abc0N+uZtCaeONdJoLxFO/B1MOG8MIiDqy6mpNUKNDyxX+60SUC l3Yk3jAZ4FNaqOzZECG6nAnUNudUu3QMx5sEMX1ljOT2/Wh9M66Du5vpOTQwtPzwW0GD TbP8mjcG6SwnpZJ4t7z5SaU2IQl06zUYL8G8s= Received: by 10.141.89.17 with SMTP id r17mr20782rvl.185.1272302861302; Mon, 26 Apr 2010 10:27:41 -0700 (PDT) Received: from localhost.localdomain (cpe-98-150-193-136.hawaii.res.rr.com [98.150.193.136]) by mx.google.com with ESMTPS id p1sm1145651rvq.14.2010.04.26.10.27.39 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 26 Apr 2010 10:27:40 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Mon, 26 Apr 2010 10:27:22 -0700 Message-Id: <1272302842-7987-1-git-send-email-rth@twiddle.net> X-Mailer: git-send-email 1.6.6.1 In-Reply-To: References: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) Cc: Blue Swirl Subject: [Qemu-devel] [PATCH] linux-user: Fix sparc32plus stat64 syscalls. X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org 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;