]> rtime.felk.cvut.cz Git - lisovros/qemu_apohw.git/commitdiff
target-arm: arm_any_initfn() should never set ARM_FEATURE_AARCH64
authorPeter Maydell <peter.maydell@linaro.org>
Mon, 9 Jun 2014 14:43:24 +0000 (15:43 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Mon, 9 Jun 2014 15:06:11 +0000 (16:06 +0100)
The arm_any_initfn() is used only for the 32-bit linux-user "cpu any",
so it only gets called in builds where TARGET_AARCH64 is not defined.
Remove the unreachable line which sets ARM_FEATURE_AARCH64.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Message-id: 1401458125-27977-2-git-send-email-peter.maydell@linaro.org

target-arm/cpu.c

index fb9c12d81e3e0f074047f019a66d7b7343432127..94123b221341391b71d1ff68fa0856a87c05a5ea 100644 (file)
@@ -963,9 +963,6 @@ static void arm_any_initfn(Object *obj)
     set_feature(&cpu->env, ARM_FEATURE_ARM_DIV);
     set_feature(&cpu->env, ARM_FEATURE_V7MP);
     set_feature(&cpu->env, ARM_FEATURE_CRC);
-#ifdef TARGET_AARCH64
-    set_feature(&cpu->env, ARM_FEATURE_AARCH64);
-#endif
     cpu->midr = 0xffffffff;
 }
 #endif