hw/net/eepro100.c: Don't use cpu_to_*w() and *_to_cpup()
commit4d9be25200fab72f5f0f1f20e02439ae83f0c1db
authorPeter Maydell <peter.maydell@linaro.org>
Thu, 16 Jun 2016 17:17:22 +0000 (16 18:17 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Mon, 27 Jun 2016 15:39:56 +0000 (27 16:39 +0100)
tree5ee3cb94ccfca1d1f016d713f031146dd7d5197e
parentf12103afaa28b473515ccfcb66c2b42d6d057af0
hw/net/eepro100.c: Don't use cpu_to_*w() and *_to_cpup()

Don't use cpu_to_*w() and *_to_cpup() to do byte-swapped loads
and stores; instead use ld*_p() and st*_p() which correctly handle
misaligned accesses.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <rth@twiddle.net>
Acked-by: Jason Wang <jasowang@redhat.com>
Acked-by: Dmitry Fleytman <dmitry@daynix.com <mailto:dmitry@daynix.com>>
Message-id: 1466097446-981-2-git-send-email-peter.maydell@linaro.org
hw/net/eepro100.c