target-arm: Get MMU index information correct for A64 code
commitd9ea7d290b685844d3603103bc53ad977e6f68a3
authorPeter Maydell <peter.maydell@linaro.org>
Wed, 26 Feb 2014 17:20:05 +0000 (26 17:20 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Wed, 26 Feb 2014 17:20:05 +0000 (26 17:20 +0000)
tree382f70d418c5581facafbaa89521d04d976311e5
parentcd5c11b84b2539049e0fdc2c4c5f3e86e88a8bff
target-arm: Get MMU index information correct for A64 code

Emit the correct MMU index information for loads and stores from
A64 code, rather than hardwiring it to "always kernel mode",
by storing the exception level in the TB flags, and make
cpu_mmu_index() return the right answer when the CPU is in
AArch64 mode.

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