From fc74a022bf819d291531742e473b70edd72fc5b1 Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Fri, 9 Mar 2018 00:27:21 -0500 Subject: [PATCH] target/arm: Enable ARM_FEATURE_V8_RDM Enable it for the "any" CPU used by *-linux-user. Backports commit f5dfc2ecdd48b71900bc50298ad2768d60356e44 from qemu --- qemu/target/arm/cpu.c | 1 + qemu/target/arm/cpu64.c | 1 + 2 files changed, 2 insertions(+) diff --git a/qemu/target/arm/cpu.c b/qemu/target/arm/cpu.c index 783aafb5..1645e05e 100644 --- a/qemu/target/arm/cpu.c +++ b/qemu/target/arm/cpu.c @@ -1474,6 +1474,7 @@ static void arm_any_initfn(struct uc_struct *uc, Object *obj, void *opaque) set_feature(&cpu->env, ARM_FEATURE_V8_SHA256); set_feature(&cpu->env, ARM_FEATURE_V8_PMULL); set_feature(&cpu->env, ARM_FEATURE_CRC); + set_feature(&cpu->env, ARM_FEATURE_V8_RDM); cpu->midr = 0xffffffff; } #endif diff --git a/qemu/target/arm/cpu64.c b/qemu/target/arm/cpu64.c index 21efc1ae..6f25ad27 100644 --- a/qemu/target/arm/cpu64.c +++ b/qemu/target/arm/cpu64.c @@ -206,6 +206,7 @@ static void aarch64_any_initfn(struct uc_struct *uc, Object *obj, void *opaque) set_feature(&cpu->env, ARM_FEATURE_V8_SM4); set_feature(&cpu->env, ARM_FEATURE_V8_PMULL); set_feature(&cpu->env, ARM_FEATURE_CRC); + set_feature(&cpu->env, ARM_FEATURE_V8_RDM); set_feature(&cpu->env, ARM_FEATURE_V8_FP16); cpu->ctr = 0x80038003; /* 32 byte I and D cacheline size, VIPT icache */ cpu->dcz_blocksize = 7; /* 512 bytes */