diff options
author | Clement Deschamps <clement.deschamps@greensocs.com> | 2020-01-23 15:22:38 +0000 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2020-01-23 15:22:38 +0000 |
commit | 90f671581ac601fcc1b840d9e9abe7e3c3e672db (patch) | |
tree | 4fd66fe64f640f10842291c1f48642cf016c2363 /target/arm/cpu.c | |
parent | b7c359c748a2e3ccb97a184b9739feb2cd48de2f (diff) | |
download | qemu-90f671581ac601fcc1b840d9e9abe7e3c3e672db.zip qemu-90f671581ac601fcc1b840d9e9abe7e3c3e672db.tar.gz qemu-90f671581ac601fcc1b840d9e9abe7e3c3e672db.tar.bz2 |
target/arm: add PMU feature to cortex-r5 and cortex-r5f
The PMU is not optional on cortex-r5 and cortex-r5f (see
the "Features" chapter of the Technical Reference Manual).
Signed-off-by: Clement Deschamps <clement.deschamps@greensocs.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-id: 20200114105918.2366370-1-clement.deschamps@greensocs.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'target/arm/cpu.c')
-rw-r--r-- | target/arm/cpu.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/target/arm/cpu.c b/target/arm/cpu.c index d62fd5f..64cd0a7 100644 --- a/target/arm/cpu.c +++ b/target/arm/cpu.c @@ -2121,6 +2121,7 @@ static void cortex_r5_initfn(Object *obj) set_feature(&cpu->env, ARM_FEATURE_V7); set_feature(&cpu->env, ARM_FEATURE_V7MP); set_feature(&cpu->env, ARM_FEATURE_PMSA); + set_feature(&cpu->env, ARM_FEATURE_PMU); cpu->midr = 0x411fc153; /* r1p3 */ cpu->id_pfr0 = 0x0131; cpu->id_pfr1 = 0x001; |