Received: from eggs.gnu.org ([2001:4830:134:3::10]:35367) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WtzyF-0005S5-Kd for qemu-devel@nongnu.org; Mon, 09 Jun 2014 09:50:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WtzyE-00060l-TQ for qemu-devel@nongnu.org; Mon, 09 Jun 2014 09:50:43 -0400 Received: from mnementh.archaic.org.uk ([2001:8b0:1d0::1]:48570) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WtzyE-000600-NV for qemu-devel@nongnu.org; Mon, 09 Jun 2014 09:50:42 -0400 From: Peter Maydell Date: Mon, 9 Jun 2014 14:50:34 +0100 Message-Id: <1402321834-23468-1-git-send-email-peter.maydell@linaro.org> Subject: [Qemu-devel] [PATCH] target-arm: A64: Use PMULL feature bit for PMULL List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: patches@linaro.org 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 --- Oops, I thought I'd sent this trivial patch already; it sits between the "finish v8 AArch32 crypto insns" and the "add v8 AArch64 crypto instructions" patchsets, both already sent. linux-user/elfload.c | 2 +- target-arm/translate-a64.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/linux-user/elfload.c b/linux-user/elfload.c index 3241fec..e872493 100644 --- a/linux-user/elfload.c +++ b/linux-user/elfload.c @@ -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; diff --git a/target-arm/translate-a64.c b/target-arm/translate-a64.c index 9f964df..389a256 100644 --- a/target-arm/translate-a64.c +++ b/target-arm/translate-a64.c @@ -8573,7 +8573,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; } -- 1.9.2