diff options
author | Peter Crosthwaite <peter.crosthwaite@xilinx.com> | 2016-03-04 11:30:20 +0000 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2016-03-04 11:30:20 +0000 |
commit | 91cca2cda9823b1e7a049cb308a05104b5076cba (patch) | |
tree | 704bd5ac2ea83856a3b59dd15ea97b3857c66a8d /target-arm/translate-a64.c | |
parent | aa6489da4e297fb3ffcbc09b50afd700395b6386 (diff) | |
download | qemu-91cca2cda9823b1e7a049cb308a05104b5076cba.zip qemu-91cca2cda9823b1e7a049cb308a05104b5076cba.tar.gz qemu-91cca2cda9823b1e7a049cb308a05104b5076cba.tar.bz2 |
target-arm: introduce tbflag for endianness
Introduce a tbflags for endianness, set based upon the CPUs current
endianness. This in turn propagates through to the disas endianness
flag.
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>
Diffstat (limited to 'target-arm/translate-a64.c')
-rw-r--r-- | target-arm/translate-a64.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target-arm/translate-a64.c b/target-arm/translate-a64.c index 539e6d9..f0c73df 100644 --- a/target-arm/translate-a64.c +++ b/target-arm/translate-a64.c @@ -11043,7 +11043,7 @@ void gen_intermediate_code_a64(ARMCPU *cpu, TranslationBlock *tb) !arm_el_is_aa64(env, 3); dc->thumb = 0; dc->sctlr_b = 0; - dc->be_data = MO_TE; + dc->be_data = ARM_TBFLAG_BE_DATA(tb->flags) ? MO_BE : MO_LE; dc->condexec_mask = 0; dc->condexec_cond = 0; dc->mmu_idx = ARM_TBFLAG_MMUIDX(tb->flags); |