[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] amd64 compile

From: Fabrice Bellard
Subject: Re: [Qemu-devel] amd64 compile
Date: Sun, 25 Apr 2004 21:02:56 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030624

From the kernel sources, _llseek is handled the same on every arch (linux/fs/read_write.c). So there must be another problem.


J. Mayer wrote:
... yet another amd64 fix:
this one makes PPC binutils run fine on my amd64. 64 bits endianness
There may be more of this kind of bugs...


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));
             ret = get_errno(_llseek(arg1, arg2, arg3, &res, arg5));
             *(int64_t *)arg4 = tswap64(res);

reply via email to

[Prev in Thread] Current Thread [Next in Thread]