From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.30) id 1BHoUz-0001tq-VO for qemu-devel@nongnu.org; Sun, 25 Apr 2004 14:37:05 -0400 Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.30) id 1BHoU1-00007g-6f for qemu-devel@nongnu.org; Sun, 25 Apr 2004 14:36:37 -0400 Received: from [62.210.190.9] (helo=brazzaville.magic.fr) by monty-python.gnu.org with esmtp (Exim 4.30) id 1BHoTW-0007mZ-8v for qemu-devel@nongnu.org; Sun, 25 Apr 2004 14:35:34 -0400 Received: from [10.0.0.2] (ppp-181.net-555.magic.fr [62.210.255.181]) by brazzaville.magic.fr (8.11.6/8.11.6) with ESMTP id i3PIZTk17095 for ; Sun, 25 Apr 2004 20:35:29 +0200 Subject: Re: [Qemu-devel] amd64 compile From: "J. Mayer" In-Reply-To: <1082917248.14652.7.camel@rapid> References: <1082917248.14652.7.camel@rapid> Content-Type: multipart/mixed; boundary="=-sP1QGF5XYbF0ks4x194i" Message-Id: <1082918435.14634.11.camel@rapid> Mime-Version: 1.0 Date: Sun, 25 Apr 2004 20:40:35 +0200 Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org --=-sP1QGF5XYbF0ks4x194i Content-Type: text/plain Content-Transfer-Encoding: 7bit ... yet another amd64 fix: this one makes PPC binutils run fine on my amd64. 64 bits endianness fix... There may be more of this kind of bugs... -- J. Mayer Never organized --=-sP1QGF5XYbF0ks4x194i Content-Disposition: attachment; filename=syscall.c.diff Content-Type: text/x-patch; name=syscall.c.diff; charset=iso-8859-15 Content-Transfer-Encoding: 7bit Index: linux-user/syscall.c =================================================================== RCS file: /cvsroot/qemu/qemu/linux-user/syscall.c,v retrieving revision 1.47 diff -u -d -w -B -b -d -p -r1.47 syscall.c --- linux-user/syscall.c 12 Apr 2004 20:39:29 -0000 1.47 +++ linux-user/syscall.c 25 Apr 2004 18:31:36 -0000 @@ -2403,7 +2403,12 @@ long do_syscall(void *cpu_env, int num, case TARGET_NR__llseek: { int64_t res; +#if defined (__x86_64__) + /* XXX: may be needed by other 64 bits targets ? */ + ret = get_errno(_llseek(arg1, arg3, arg2, &res, arg5)); +#else ret = get_errno(_llseek(arg1, arg2, arg3, &res, arg5)); +#endif *(int64_t *)arg4 = tswap64(res); } break; --=-sP1QGF5XYbF0ks4x194i--