Re: [PATCH] target/arm: Get correct MMU index for other-security-state

2020-10-30 Thread Richard Henderson
On 10/22/20 9:44 AM, Peter Maydell wrote: > In arm_v7m_mmu_idx_for_secstate() we get the 'priv' level to pass to > armv7m_mmu_idx_for_secstate_and_priv() by calling arm_current_el(). > This is incorrect when the security state being queried is not the > current one, because arm_current_el() uses

Re: [PATCH] target/arm: Get correct MMU index for other-security-state

2020-10-30 Thread Peter Maydell
Ping for code review, please ? thanks -- PMM On Thu, 22 Oct 2020 at 17:44, Peter Maydell wrote: > > In arm_v7m_mmu_idx_for_secstate() we get the 'priv' level to pass to > armv7m_mmu_idx_for_secstate_and_priv() by calling arm_current_el(). > This is incorrect when the security state being

[PATCH] target/arm: Get correct MMU index for other-security-state

2020-10-22 Thread Peter Maydell
In arm_v7m_mmu_idx_for_secstate() we get the 'priv' level to pass to armv7m_mmu_idx_for_secstate_and_priv() by calling arm_current_el(). This is incorrect when the security state being queried is not the current one, because arm_current_el() uses the current security state to determine which of