aboutsummaryrefslogtreecommitdiff
path: root/target-arm/cpu-qom.h
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2012-04-20 17:58:33 +0000
committerPeter Maydell <peter.maydell@linaro.org>2012-04-21 18:10:44 +0000
commit0ca7e01cbc5f2850560e6a170ae1e4541aecce17 (patch)
tree3f920fddace3ac71866734b8d4a6ba68988d8399 /target-arm/cpu-qom.h
parent64e1671fd46669f097763f71b9a8cbcc0bf61cce (diff)
downloadqemu-0ca7e01cbc5f2850560e6a170ae1e4541aecce17.zip
qemu-0ca7e01cbc5f2850560e6a170ae1e4541aecce17.tar.gz
qemu-0ca7e01cbc5f2850560e6a170ae1e4541aecce17.tar.bz2
target-arm: Move SCTLR reset value setup to per cpu init fns
Move the reset value of SCTLR to ARMCPU, initialised in the per-cpu init functions. It can then be reset by a simple copy, and we can drop the code from cpu_reset_model_id(). Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Acked-by: Andreas Färber <afaerber@suse.de>
Diffstat (limited to 'target-arm/cpu-qom.h')
-rw-r--r--target-arm/cpu-qom.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/target-arm/cpu-qom.h b/target-arm/cpu-qom.h
index cb9198a..97f7e90 100644
--- a/target-arm/cpu-qom.h
+++ b/target-arm/cpu-qom.h
@@ -74,6 +74,7 @@ typedef struct ARMCPU {
uint32_t mvfr0;
uint32_t mvfr1;
uint32_t ctr;
+ uint32_t reset_sctlr;
} ARMCPU;
static inline ARMCPU *arm_env_get_cpu(CPUARMState *env)