Skip to content

Commit b1dec39

Browse files
committed
target: arm: cpu64: HACK: enable all features on max cpu
XNU needs the ARMv8.1 atomics instructions.
1 parent 5008e3e commit b1dec39

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

target/arm/cpu64.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ static void aarch64_max_initfn(Object *obj)
230230
kvm_arm_set_cpu_features_from_host(cpu);
231231
} else {
232232
aarch64_a57_initfn(obj);
233-
#ifdef CONFIG_USER_ONLY
233+
//#ifdef CONFIG_USER_ONLY
234234
/* We don't set these in system emulation mode for the moment,
235235
* since we don't correctly set the ID registers to advertise them,
236236
* and in some cases they're only available in AArch64 and not AArch32,
@@ -247,6 +247,7 @@ static void aarch64_max_initfn(Object *obj)
247247
set_feature(&cpu->env, ARM_FEATURE_V8_FP16);
248248
set_feature(&cpu->env, ARM_FEATURE_V8_FCMA);
249249
set_feature(&cpu->env, ARM_FEATURE_SVE);
250+
#ifdef CONFIG_USER_ONLY
250251
/* For usermode -cpu max we can use a larger and more efficient DCZ
251252
* blocksize since we don't have to follow what the hardware does.
252253
*/

0 commit comments

Comments
 (0)