mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
target/arm: Make BASEPRI register banked for v8M
Make the BASEPRI register banked if v8M security extensions are enabled. Note that we do not yet implement the functionality of the new AIRCR.PRIS bit (which allows the effect of the NS copy of BASEPRI to be restricted). Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-id: 1503414539-28762-7-git-send-email-peter.maydell@linaro.org
This commit is contained in:
parent
66787c7868
commit
acf949411f
4 changed files with 23 additions and 8 deletions
|
@ -115,7 +115,7 @@ static const VMStateDescription vmstate_m = {
|
|||
.needed = m_needed,
|
||||
.fields = (VMStateField[]) {
|
||||
VMSTATE_UINT32(env.v7m.vecbase, ARMCPU),
|
||||
VMSTATE_UINT32(env.v7m.basepri, ARMCPU),
|
||||
VMSTATE_UINT32(env.v7m.basepri[M_REG_NS], ARMCPU),
|
||||
VMSTATE_UINT32(env.v7m.control, ARMCPU),
|
||||
VMSTATE_UINT32(env.v7m.ccr, ARMCPU),
|
||||
VMSTATE_UINT32(env.v7m.cfsr, ARMCPU),
|
||||
|
@ -250,6 +250,7 @@ static const VMStateDescription vmstate_m_security = {
|
|||
.needed = m_security_needed,
|
||||
.fields = (VMStateField[]) {
|
||||
VMSTATE_UINT32(env.v7m.secure, ARMCPU),
|
||||
VMSTATE_UINT32(env.v7m.basepri[M_REG_S], ARMCPU),
|
||||
VMSTATE_END_OF_LIST()
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue