diff options
author | Peter Maydell <peter.maydell@linaro.org> | 2012-03-22 20:07:50 +0000 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2012-03-23 15:33:13 +0000 |
commit | 9ed900aec129d31821a382f7485f41ccb22a161e (patch) | |
tree | 8bb2e2c22f2888620d4d94485d7c4e96a3f32def /target-arm/cpu.c | |
parent | 978c581aee3bbdadb968f54c9603fd1636461732 (diff) |
target-arm: TODO markerscp15-on-qom
Add some TODO comments as a sketch of where things are going
to need to change...
Diffstat (limited to 'target-arm/cpu.c')
-rw-r--r-- | target-arm/cpu.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/target-arm/cpu.c b/target-arm/cpu.c index e788fd7e0b..ed78fe4c78 100644 --- a/target-arm/cpu.c +++ b/target-arm/cpu.c @@ -67,6 +67,13 @@ static void arm_cpu_reset(CPUState *c) klass->parent_reset(c); + /* TODO: where we are doing things for cp15 reset here we should + * make sure it is handled via the cp infrastructure instead, + * and get rid of the code here. + * TODO: we should be able to get rid of these copy-values-across-memset + * hacks by having the reset be handled in the cp15 infrastructure + */ + id = env->cp15.c0_cpuid; tmp = env->cp15.c15_config_base_address; memset(env, 0, offsetof(CPUARMState, breakpoints)); @@ -203,6 +210,21 @@ static void arm_cpu_postconfig_init(ARMCPU *cpu) /* CPU models */ +/* TODO: + * these functions should set up the reset values for more registers, + * particularly the c0 ID registers which we have not yet converted. + * We should set here fields in ARMCPU. Then in register_cp_regs_for_features() + * we should define cp15 regs with the 'resetvalue' field set from those + * ARMCPU fields. That makes the env->cp15 fields redundant. + * TODO: + * c1_sys (aka the SCTLR) should have its reset value set up like this too. + * TODO: + * maybe we should handle the AUXCR that way too? + * TODO: FPSID, MVFR0, MVFR1 aren't cp15 registers but we should put their + * reset values in ARMCPU too, and reset from those in arm_cpu_reset. + * + * When all the above have been dealt with we can get rid of cpu_model_id_reset. + */ static void arm926_initfn(Object *obj) { ARMCPU *cpu = ARM_CPU(obj); |