summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorPeter Maydell2017-10-06 17:46:49 +0200
committerPeter Maydell2017-10-06 17:46:49 +0200
commitb81ac0eb6315e602b18439961e0538538e4aed4f (patch)
tree2653c6abd4ada67ea79a38a5773741eea579b7f2 /scripts
parenttarget/arm: Fix calculation of secure mm_idx values (diff)
downloadqemu-b81ac0eb6315e602b18439961e0538538e4aed4f.tar.gz
qemu-b81ac0eb6315e602b18439961e0538538e4aed4f.tar.xz
qemu-b81ac0eb6315e602b18439961e0538538e4aed4f.zip
target/arm: Factor out "get mmuidx for specified security state"
For the SG instruction and secure function return we are going to want to do memory accesses using the MMU index of the CPU in secure state, even though the CPU is currently in non-secure state. Write arm_v7m_mmu_idx_for_secstate() to do this job, and use it in cpu_mmu_index(). Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-id: 1506092407-26985-17-git-send-email-peter.maydell@linaro.org
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions