diff options
author | Peter Maydell <peter.maydell@linaro.org> | 2012-06-20 11:57:09 +0000 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2012-06-20 12:02:54 +0000 |
commit | 2ceb98c0079a68078947c222111238c7c7ae89b5 (patch) | |
tree | 2c6947d86947e51e355fdc7c0305f6ebf4f5ca57 /target-arm/helper.c | |
parent | e8070a23a8f9f6fa28ac1dcb4399c11492f18b10 (diff) | |
download | qemu-2ceb98c0079a68078947c222111238c7c7ae89b5.zip qemu-2ceb98c0079a68078947c222111238c7c7ae89b5.tar.gz qemu-2ceb98c0079a68078947c222111238c7c7ae89b5.tar.bz2 |
target-arm: Add register_cp_regs_for_features()
Add new function register_cp_regs_for_features() as a place to
register coprocessor registers dependent on feature flags.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'target-arm/helper.c')
-rw-r--r-- | target-arm/helper.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/target-arm/helper.c b/target-arm/helper.c index 57bb78b..f7c9a3a 100644 --- a/target-arm/helper.c +++ b/target-arm/helper.c @@ -56,6 +56,17 @@ static int vfp_gdb_set_reg(CPUARMState *env, uint8_t *buf, int reg) return 0; } +void register_cp_regs_for_features(ARMCPU *cpu) +{ + /* Register all the coprocessor registers based on feature bits */ + CPUARMState *env = &cpu->env; + if (arm_feature(env, ARM_FEATURE_M)) { + /* M profile has no coprocessor registers */ + return; + } + +} + ARMCPU *cpu_arm_init(const char *cpu_model) { ARMCPU *cpu; |