arm: explicitly mark device loads as little-endian
commit58f6d82fc43fdc997079d6cca52106f68db7b24e
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 17 Dec 2015 13:37:13 +0000 (17 13:37 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 17 Dec 2015 13:37:13 +0000 (17 13:37 +0000)
treeb6849a484eda86206df78ac04c64a4bc622fc6ac
parentf1f7e4bf76ad8e88a55f3ae8fd01629669d4317b
arm: explicitly mark device loads as little-endian

Behaviour of emulated devices should not depend on the endianness
of the CPU, so avoid using the endian-dependent load and store
functions in the PXA2xx and OMAP display devices. These devices
are little endian when they do DMA access.

(Since ARM softmmu is always compiled as little endian, this means
that the endian-dependent load and store functions are always little
endian, so this commit makes no functionally visible change.)

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
[PMM: rewrote commit message]
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/display/omap_lcd_template.h
hw/display/pxa2xx_lcd.c