target-arm: Make SETEND respect bswap_code (BE8) setting
commit10962fd510bb381acc6694156bd675e5d86f32d8
authorPeter Maydell <peter.maydell@linaro.org>
Tue, 24 Apr 2012 18:05:05 +0000 (24 18:05 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 27 Apr 2012 11:07:52 +0000 (27 11:07 +0000)
tree717eef66cc4c5a521f69e9d630abfa01c9bc4731
parentc5fad12fa08228d0c2f04089ba0cd27718f1b723
target-arm: Make SETEND respect bswap_code (BE8) setting

Make the SETEND instruction respect the setting of bswap_code,
so that in BE8 mode we UNDEF for attempts to switch into
little-endian mode and nop for attempts to stay in big-endian
mode. (This is the inverse of the existing handling of SETEND
in the more common little-endian setup, which we use since
we don't implement the architecturally-mandated dynamic
endianness switching.)

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
target-arm/translate.c