Permalink
Browse files

target: arm: cpu64: HACK: enable all features on max cpu

XNU needs the ARMv8.1 atomics instructions.
  • Loading branch information...
zhuowei committed Jul 4, 2018
1 parent 5008e3e commit b1dec3933a0dfb5374dff416ab812a74da1d296c
Showing with 2 additions and 1 deletion.
  1. +2 −1 target/arm/cpu64.c
@@ -230,7 +230,7 @@ static void aarch64_max_initfn(Object *obj)
kvm_arm_set_cpu_features_from_host(cpu);
} else {
aarch64_a57_initfn(obj);
#ifdef CONFIG_USER_ONLY
//#ifdef CONFIG_USER_ONLY
/* We don't set these in system emulation mode for the moment,
* since we don't correctly set the ID registers to advertise them,
* and in some cases they're only available in AArch64 and not AArch32,
@@ -247,6 +247,7 @@ static void aarch64_max_initfn(Object *obj)
set_feature(&cpu->env, ARM_FEATURE_V8_FP16);
set_feature(&cpu->env, ARM_FEATURE_V8_FCMA);
set_feature(&cpu->env, ARM_FEATURE_SVE);
#ifdef CONFIG_USER_ONLY
/* For usermode -cpu max we can use a larger and more efficient DCZ
* blocksize since we don't have to follow what the hardware does.
*/

0 comments on commit b1dec39

Please sign in to comment.