diff options
author | David Reiss <dreiss@meta.com> | 2023-02-27 11:33:27 -1000 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2023-03-06 14:08:11 +0000 |
commit | 48688c94418590585c05faed6fd7abb3296bf686 (patch) | |
tree | 79e948293104f0e78769d68869081e9a72813a2f /target/arm/internals.h | |
parent | e995d5cce4a022afc4624471cafd2e4eb72962e6 (diff) | |
download | qemu-48688c94418590585c05faed6fd7abb3296bf686.zip qemu-48688c94418590585c05faed6fd7abb3296bf686.tar.gz qemu-48688c94418590585c05faed6fd7abb3296bf686.tar.bz2 |
target/arm: Export arm_v7m_mrs_control
Allow the function to be used outside of m_helper.c.
Rename with an "arm_" prefix.
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: David Reiss <dreiss@meta.com>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20230227213329.793795-13-richard.henderson@linaro.org
[rth: Split out of a larger patch]
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'target/arm/internals.h')
-rw-r--r-- | target/arm/internals.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/target/arm/internals.h b/target/arm/internals.h index dda89aa..086e88e 100644 --- a/target/arm/internals.h +++ b/target/arm/internals.h @@ -1357,6 +1357,9 @@ void arm_cpu_pauth_finalize(ARMCPU *cpu, Error **errp); void arm_cpu_lpa2_finalize(ARMCPU *cpu, Error **errp); #endif +/* Read the CONTROL register as the MRS instruction would. */ +uint32_t arm_v7m_mrs_control(CPUARMState *env, uint32_t secure); + #ifdef CONFIG_USER_ONLY static inline void define_cortex_a72_a57_a53_cp_reginfo(ARMCPU *cpu) { } #else |