[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] qemu/hw e1000.c
From: |
Aurelien Jarno |
Subject: |
[Qemu-devel] qemu/hw e1000.c |
Date: |
Thu, 13 Mar 2008 19:18:27 +0000 |
CVSROOT: /sources/qemu
Module name: qemu
Changes by: Aurelien Jarno <aurel32> 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