OSDN Git Service

target/arm: Reduce arm_v7m_mmu_idx_[all/for_secstate_and_priv]() scope
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Mon, 6 Feb 2023 22:34:54 +0000 (23:34 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 16 Feb 2023 16:00:46 +0000 (16:00 +0000)
commiteda349be62d2c7441d9dfd5ca62b5af4db919e41
treed225a3ba7ed94d0d38082376c15aa1f8f259e20c
parent1eb13a0947e9ef1b2ca2a3396eb661a3b22b45d1
target/arm: Reduce arm_v7m_mmu_idx_[all/for_secstate_and_priv]() scope

arm_v7m_mmu_idx_all() and arm_v7m_mmu_idx_for_secstate_and_priv()
are only used for system emulation in m_helper.c.
Move the definitions to avoid prototype forward declarations.

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20230206223502.25122-4-philmd@linaro.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
target/arm/internals.h
target/arm/m_helper.c