target-arm: implement BE32 mode in system emulation
commite334bd3190f6c4ca12f1d40d316dc471c70009ab
authorPaolo Bonzini <pbonzini@redhat.com>
Fri, 4 Mar 2016 11:30:21 +0000 (4 11:30 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 4 Mar 2016 11:30:21 +0000 (4 11:30 +0000)
tree6228fd057f6e3d4d35c0c322d2ead9ddf74ccd7c
parent9886ecdf31165de2d4b8bccc1a220bd6ac8bc192
target-arm: implement BE32 mode in system emulation

System emulation only has a little-endian target; BE32 mode
is implemented by adjusting the low bits of the address
for every byte and halfword load and store.  64-bit accesses
flip the low and high words.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
[PC changes:
  * rebased against master (Jan 2016)
]
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Crosthwaite <crosthwaite.peter@gmail.com>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
target-arm/cpu.h
target-arm/translate.c