diff options
author | Pranavkumar Sawargaonkar <pranavkumar@linaro.org> | 2015-02-05 13:37:25 +0000 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2015-02-05 13:37:25 +0000 |
commit | 84f2bed3cf505f90b7918e2de32e11da27160563 (patch) | |
tree | 9d09d21073fde611f6fc4de86780401f45048595 /target-arm/cpu.h | |
parent | 568bab1fb8cb2237f0134c4c5ffbc2a8ea26df69 (diff) | |
download | qemu-84f2bed3cf505f90b7918e2de32e11da27160563.tar.gz qemu-84f2bed3cf505f90b7918e2de32e11da27160563.tar.bz2 qemu-84f2bed3cf505f90b7918e2de32e11da27160563.zip |
target-arm: Guest cpu endianness determination for virtio KVM ARM/ARM64
This patch implements a fucntion pointer "virtio_is_big_endian"
from "CPUClass" structure for arm/arm64.
Function arm_cpu_is_big_endian() is added to determine and
return the guest cpu endianness to virtio.
This is required for running cross endian guests with virtio on ARM/ARM64.
Signed-off-by: Pranavkumar Sawargaonkar <pranavkumar@linaro.org>
Message-id: 1423130382-18640-3-git-send-email-pranavkumar@linaro.org
[PMM: check CPSR_E in env->cpsr_uncached, not env->pstate.]
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'target-arm/cpu.h')
-rw-r--r-- | target-arm/cpu.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/target-arm/cpu.h b/target-arm/cpu.h index 3585754600..1830a12d4a 100644 --- a/target-arm/cpu.h +++ b/target-arm/cpu.h @@ -32,6 +32,8 @@ # define ELF_MACHINE EM_ARM #endif +#define TARGET_IS_BIENDIAN 1 + #define CPUArchState struct CPUARMState #include "qemu-common.h" |