]> git.proxmox.com Git - mirror_qemu.git/commit - hw/e1000.c
e1000: fix endianness issues
authoraurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162>
Thu, 13 Mar 2008 19:18:26 +0000 (19:18 +0000)
committeraurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162>
Thu, 13 Mar 2008 19:18:26 +0000 (19:18 +0000)
commit6b59fc74b5b811664e4621e65b64e39c501249be
treeaea07ce586a15b8a0d5d6d3d987d3716cbbb387e
parent5fedc612eb743222ee955ef21e4ff11d87a8de39
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.

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4046 c046a42c-6fe2-441c-8c8c-71466251a162
hw/e1000.c