]> git.proxmox.com Git - mirror_qemu.git/commit
target/arm: New helper function arm_v7m_mmu_idx_all()
authorPeter Maydell <peter.maydell@linaro.org>
Mon, 29 Apr 2019 16:36:02 +0000 (17:36 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Mon, 29 Apr 2019 16:36:02 +0000 (17:36 +0100)
commitfa6252a988dbe440cd6087bf93cbe0887f0c401b
tree580fb5821257f61e4090b63bed219fefa8f79913
parent6000531e19964756673a5f4b694a649ef883605a
target/arm: New helper function arm_v7m_mmu_idx_all()

Add a new helper function which returns the MMU index to use
for v7M, where the caller specifies all of the security
state, privilege level and whether the execution priority
is negative, and reimplement the existing
arm_v7m_mmu_idx_for_secstate_and_priv() in terms of it.

We are going to need this for the lazy-FP-stacking code.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20190416125744.27770-21-peter.maydell@linaro.org
target/arm/cpu.h
target/arm/helper.c