OSDN Git Service

target-arm: A64: Use PMULL feature bit for PMULL
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)
Now that we have a separate ARM_FEATURE_V8_PMULL bit, use it for
the A64 PMULL, not the AES feature bit.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
linux-user/elfload.c
target-arm/translate-a64.c

index 3241fec..e872493 100644 (file)
@@ -539,7 +539,7 @@ static uint32_t get_elf_hwcap(void)
     /* probe for the extra features */
 #define GET_FEATURE(feat, hwcap) \
     do { if (arm_feature(&cpu->env, feat)) { hwcaps |= hwcap; } } while (0)
-    GET_FEATURE(ARM_FEATURE_V8_AES, ARM_HWCAP_A64_PMULL);
+    GET_FEATURE(ARM_FEATURE_V8_PMULL, ARM_HWCAP_A64_PMULL);
 #undef GET_FEATURE
 
     return hwcaps;
index a9c4633..9832cc3 100644 (file)
@@ -8574,7 +8574,7 @@ static void disas_simd_three_reg_diff(DisasContext *s, uint32_t insn)
             return;
         }
         if (size == 3) {
-            if (!arm_dc_feature(s, ARM_FEATURE_V8_AES)) {
+            if (!arm_dc_feature(s, ARM_FEATURE_V8_PMULL)) {
                 unallocated_encoding(s);
                 return;
             }