target-arm: cpu: Move cpu_is_big_endian to header
commited50ff7875d61a75517c92deb0444d73fbbca878
authorPeter Crosthwaite <peter.crosthwaite@xilinx.com>
Fri, 4 Mar 2016 11:30:19 +0000 (4 11:30 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 4 Mar 2016 11:30:19 +0000 (4 11:30 +0000)
tree3ca6e116bd31d3fea04fe7df2fd0945f5e6e35db
parentf9fd40ebe4f55e0048e002925b8d65e66d56e7a7
target-arm: cpu: Move cpu_is_big_endian to header

There is a CPU data endianness test that is used to drive the
virtio_big_endian test.

Move this up to the header so it can be more generally used for endian
tests. The KVM specific cpu_syncronize_state call is left behind in the
virtio specific function.

Rename it arm_cpu-data_is_big_endian() to more accurately capture that
this is for data accesses only.

Reviewed-by: Alistair Francis <alistair.francis@xilinx.com>
Signed-off-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
target-arm/cpu.c
target-arm/cpu.h