From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ixjg5-00069e-Bf for qemu-devel@nongnu.org; Thu, 29 Nov 2007 08:43:41 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Ixjg2-00068q-Tv for qemu-devel@nongnu.org; Thu, 29 Nov 2007 08:43:40 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ixjg2-00068n-N3 for qemu-devel@nongnu.org; Thu, 29 Nov 2007 08:43:38 -0500 Received: from ms01.sssup.it ([193.205.80.99] helo=sssup.it) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Ixjg2-0007I4-9A for qemu-devel@nongnu.org; Thu, 29 Nov 2007 08:43:38 -0500 Message-ID: <474EC207.1030700@evidence.eu.com> Date: Thu, 29 Nov 2007 14:43:35 +0100 From: Claudio Scordino MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] fstat bug on armeb stll exists! 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 Cc: michael trimarchi Hi all, more than one year ago we sent a patch on this mailing list to fix a problem of the fstat syscall for armeb. See http://lists.gnu.org/archive/html/qemu-devel/2006-09/msg00137.html We found the bug compiling a Linux kernel for armeb on scratchbox. Qemu seemed to ignore the fact that in big endian systems the fields st_blocks and its padding are swapped (to allow future expansion of the field,) so the fix consisted only in swapping the two fields (only in big endian systems, of course). The patch just changed qemu/linux-user/syscall_defs.h to #ifndef TARGET_WORDS_BIGENDIAN target_ulong st_blocks; target_ulong __pad4; #else target_ulong __pad4; target_ulong st_blocks; #endif I've just dowloaded a fresh 0.9 Qemu, and I saw that there is still the bug... Do you mind integrate such change, so we don't have to patch Qemu any time ? Regards, Claudio Scordino -- ================================= Claudio Scordino Software Engineer Evidence Srl Embedded Real-Time solutions http://www.evidence.eu.com =================================