diff options
author | Peter Maydell <peter.maydell@linaro.org> | 2018-02-15 18:29:37 +0000 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2018-02-15 18:29:49 +0000 |
commit | 478257709a052f94bbe504ef295c876bbec174a7 (patch) | |
tree | 96c44eba869c2440d4ddef144b421397a254dfe7 /target | |
parent | 12fbf1a1639ed916fda948718dac0d30b82b954e (diff) | |
download | qemu-478257709a052f94bbe504ef295c876bbec174a7.zip qemu-478257709a052f94bbe504ef295c876bbec174a7.tar.gz qemu-478257709a052f94bbe504ef295c876bbec174a7.tar.bz2 |
target/arm: Add AIRCR to vmstate struct
In commit commit 3b2e934463121 we added support for the AIRCR
register holding state, but forgot to add it to the vmstate
structs. Since it only holds r/w state if the security extension
is implemented, we can just add it to vmstate_m_security.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20180209165810.6668-10-peter.maydell@linaro.org
Diffstat (limited to 'target')
-rw-r--r-- | target/arm/machine.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/target/arm/machine.c b/target/arm/machine.c index 30fb145..25cdf4d 100644 --- a/target/arm/machine.c +++ b/target/arm/machine.c @@ -423,6 +423,10 @@ static const VMStateDescription vmstate_m_security = { VMSTATE_VALIDATE("SAU_RNR is valid", sau_rnr_vmstate_validate), VMSTATE_UINT32(env.sau.ctrl, ARMCPU), VMSTATE_UINT32(env.v7m.scr[M_REG_S], ARMCPU), + /* AIRCR is not secure-only, but our implementation is R/O if the + * security extension is unimplemented, so we migrate it here. + */ + VMSTATE_UINT32(env.v7m.aircr, ARMCPU), VMSTATE_END_OF_LIST() } }; |