hw/net/e1000: Don't use *_to_cpup() master
authorPeter Maydell <peter.maydell@linaro.org>
Thu, 16 Jun 2016 17:17:26 +0000 (18:17 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Mon, 27 Jun 2016 15:39:56 +0000 (16:39 +0100)
commit14e60aaece20a1cfc059a69f6491b0899f9257a8
tree457d0dac2e6ea8cc522eaefc02f28ead3b1e669c
parent7542d3e706732f1d26713a26d8d7cd61f675b1d9
hw/net/e1000: Don't use *_to_cpup()

Don't use *_to_cpup() to do byte-swapped loads; instead use
ld*_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-6-git-send-email-peter.maydell@linaro.org
hw/net/e1000.c
hw/net/e1000e_core.c
hw/net/e1000x_common.c