Skip to contentSkip to conversation

qemu/hw e1000.c

Qemu-devel Aurelien Jarno 1 participant 1 message Mar 13, 2008

lore
Share & tools
lore
#0 lore raw

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