diff options
| author | Richard Henderson <richard.henderson@linaro.org> | 2022-06-08 19:38:50 +0100 |
|---|---|---|
| committer | Peter Maydell <peter.maydell@linaro.org> | 2022-06-08 19:38:50 +0100 |
| commit | c8e436c9f72bca95e37a155d6ead42d55f74eed2 (patch) | |
| tree | f6c3d2adcc629b08a13b28e5aa7d962300b9af73 /target/arm/helper.c | |
| parent | fedbaa0503d2c56d4ef58ca9a08121e2af7f5e54 (diff) | |
| download | focaccia-qemu-c8e436c9f72bca95e37a155d6ead42d55f74eed2.tar.gz focaccia-qemu-c8e436c9f72bca95e37a155d6ead42d55f74eed2.zip | |
target/arm: Move pmsav7_use_background_region to ptw.c
Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Message-id: 20220604040607.269301-11-richard.henderson@linaro.org Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'target/arm/helper.c')
| -rw-r--r-- | target/arm/helper.c | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/target/arm/helper.c b/target/arm/helper.c index cb23413d8e..62e48f0925 100644 --- a/target/arm/helper.c +++ b/target/arm/helper.c @@ -11678,25 +11678,6 @@ do_fault: return true; } -bool pmsav7_use_background_region(ARMCPU *cpu, ARMMMUIdx mmu_idx, bool is_user) -{ - /* Return true if we should use the default memory map as a - * "background" region if there are no hits against any MPU regions. - */ - CPUARMState *env = &cpu->env; - - if (is_user) { - return false; - } - - if (arm_feature(env, ARM_FEATURE_M)) { - return env->v7m.mpu_ctrl[regime_is_secure(env, mmu_idx)] - & R_V7M_MPU_CTRL_PRIVDEFENA_MASK; - } else { - return regime_sctlr(env, mmu_idx) & SCTLR_BR; - } -} - bool m_is_ppb_region(CPUARMState *env, uint32_t address) { /* True if address is in the M profile PPB region 0xe0000000 - 0xe00fffff */ |