From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JZswf-0003fu-Kj for qemu-devel@nongnu.org; Thu, 13 Mar 2008 15:18:29 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JZswf-0003fY-4l for qemu-devel@nongnu.org; Thu, 13 Mar 2008 15:18:29 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JZswe-0003fS-RZ for qemu-devel@nongnu.org; Thu, 13 Mar 2008 15:18:28 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JZswe-0002GZ-M0 for qemu-devel@nongnu.org; Thu, 13 Mar 2008 15:18:28 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1JZswd-0004Ys-F4 for qemu-devel@nongnu.org; Thu, 13 Mar 2008 19:18:27 +0000 Received: from aurel32 by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1JZswd-0004Y8-5A for qemu-devel@nongnu.org; Thu, 13 Mar 2008 19:18:27 +0000 Message-Id: From: Aurelien Jarno Date: Thu, 13 Mar 2008 19:18:27 +0000 Subject: [Qemu-devel] qemu/hw e1000.c 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 CVSROOT: /sources/qemu Module name: qemu Changes by: Aurelien Jarno 08/03/13 19:18:27 Modified files: hw : e1000.c Log message: e1000: fix endianness issues This patch fixes endianness issues in the e1000 nic emulation, which currently only works on little endian hosts with little endian targets. Byte swapping does not depend on host endianness, so this patch remove the use of cpu_to_le32 and le32_to_cpu functions. It depends on the path from the CPU to the device, which is currently and *wrongly* implemented in Qemu as a byteswap on big endian targets. This patch does the same as in other devices emulation as all the currently implemented targets work with this implementation. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/qemu/hw/e1000.c?cvsroot=qemu&r1=1.4&r2=1.5