[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v3 8/9] target-arm: Infer VFP feature from VFPv3
From: |
Andreas Färber |
Subject: |
[Qemu-devel] [PATCH v3 8/9] target-arm: Infer VFP feature from VFPv3 |
Date: |
Tue, 6 Dec 2011 01:30:45 +0100 |
VFP3 => VFP
Signed-off-by: Andreas Färber <address@hidden>
Cc: Peter Maydell <address@hidden>
---
target-arm/helper.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/target-arm/helper.c b/target-arm/helper.c
index a4c3aa0..6c35261 100644
--- a/target-arm/helper.c
+++ b/target-arm/helper.c
@@ -121,7 +121,6 @@ static void cpu_reset_model_id(CPUARMState *env, uint32_t
id)
break;
case ARM_CPUID_CORTEXA8:
set_feature(env, ARM_FEATURE_V7);
- set_feature(env, ARM_FEATURE_VFP);
set_feature(env, ARM_FEATURE_VFP3);
set_feature(env, ARM_FEATURE_NEON);
set_feature(env, ARM_FEATURE_THUMB2EE);
@@ -139,7 +138,6 @@ static void cpu_reset_model_id(CPUARMState *env, uint32_t
id)
break;
case ARM_CPUID_CORTEXA9:
set_feature(env, ARM_FEATURE_V7);
- set_feature(env, ARM_FEATURE_VFP);
set_feature(env, ARM_FEATURE_VFP3);
set_feature(env, ARM_FEATURE_VFP_FP16);
set_feature(env, ARM_FEATURE_NEON);
@@ -166,7 +164,6 @@ static void cpu_reset_model_id(CPUARMState *env, uint32_t
id)
break;
case ARM_CPUID_ANY: /* For userspace emulation. */
set_feature(env, ARM_FEATURE_V7);
- set_feature(env, ARM_FEATURE_VFP);
set_feature(env, ARM_FEATURE_VFP3);
set_feature(env, ARM_FEATURE_VFP4);
set_feature(env, ARM_FEATURE_VFP_FP16);
@@ -248,6 +245,9 @@ static void cpu_reset_model_id(CPUARMState *env, uint32_t
id)
if (arm_feature(env, ARM_FEATURE_ARM_DIV)) {
set_feature(env, ARM_FEATURE_THUMB_DIV);
}
+ if (arm_feature(env, ARM_FEATURE_VFP3)) {
+ set_feature(env, ARM_FEATURE_VFP);
+ }
}
void cpu_reset(CPUARMState *env)
--
1.7.7
- [Qemu-devel] [PATCH v3 for-1.1 0/9] target-arm: More inference rules for features, Andreas Färber, 2011/12/05
- [Qemu-devel] [PATCH v3 1/9] target-arm: Infer ARMv4T feature from ARMv5, Andreas Färber, 2011/12/05
- [Qemu-devel] [PATCH v3 2/9] target-arm: Infer ARMv5 feature from ARMv6, Andreas Färber, 2011/12/05
- [Qemu-devel] [PATCH v3 3/9] target-arm: Infer ARMv6 feature from v6K, Andreas Färber, 2011/12/05
- [Qemu-devel] [PATCH v3 6/9] target-arm: Infer Thumb2 feature from ARMv7, Andreas Färber, 2011/12/05
- [Qemu-devel] [PATCH v3 5/9] target-arm: Infer AUXCR feature from ARMv6, Andreas Färber, 2011/12/05
- [Qemu-devel] [PATCH v3 8/9] target-arm: Infer VFP feature from VFPv3,
Andreas Färber <=
- [Qemu-devel] [PATCH v3 4/9] target-arm: Infer ARMv6(K) feature from ARMv7, Andreas Färber, 2011/12/05
- [Qemu-devel] [PATCH v3 7/9] target-arm: Infer Thumb division feature from M profile, Andreas Färber, 2011/12/05
- [Qemu-devel] [PATCH v3 9/9] target-arm: Infer VFPv3 feature from VFPv4, Andreas Färber, 2011/12/05
- Re: [Qemu-devel] [PATCH v3 for-1.1 0/9] target-arm: More inference rules for features, Peter Maydell, 2011/12/06
- Re: [Qemu-devel] [PATCH v3 for-1.1 0/9] target-arm: More inference rules for features, Peter Maydell, 2011/12/06