Skip to content

Commit e0c7c89

Browse files
npigginstewartsmith
authored andcommitted
core/cpufeatures: Fix setting DARN and SCV HWCAP feature bits
DARN and SCV has been assigned AT_HWCAP2 (32-63) bits: #define PPC_FEATURE2_DARN 0x00200000 /* darn random number insn */ #define PPC_FEATURE2_SCV 0x00100000 /* scv syscall */ A cpufeatures-aware OS will not advertise these to userspace without this patch. Signed-off-by: Nicholas Piggin <[email protected]> Signed-off-by: Stewart Smith <[email protected]>
1 parent cfe9d44 commit e0c7c89

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/cpufeatures.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -558,7 +558,7 @@ static const struct cpu_feature cpu_features_table[] = {
558558
CPU_P9,
559559
ISA_V3_0B, USABLE_OS|USABLE_PR,
560560
HV_NONE, OS_CUSTOM,
561-
-1, PPC_BITLSHIFT(51), -1,
561+
-1, PPC_BITLSHIFT(51), 52,
562562
NULL, },
563563

564564
/*
@@ -612,7 +612,7 @@ static const struct cpu_feature cpu_features_table[] = {
612612
CPU_P9,
613613
ISA_V3_0B, USABLE_HV|USABLE_OS|USABLE_PR,
614614
HV_NONE, OS_NONE,
615-
-1, -1, -1,
615+
-1, -1, 53,
616616
NULL, },
617617

618618
/*

0 commit comments

Comments
 (0)