projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
740db97
)
[AArch64][compiler-rt] Fix HWCAP_CPUID not defined in some cases.
author
Pavel Iliin
<Pavel.Iliin@arm.com>
Tue, 20 Dec 2022 19:06:09 +0000
(19:06 +0000)
committer
Pavel Iliin
<Pavel.Iliin@arm.com>
Tue, 20 Dec 2022 19:15:27 +0000
(19:15 +0000)
Define HWCAP_CPUID to fix commit
e43924a75145d2f9e722f74b673145c3e62bfd07
.
compiler-rt/lib/builtins/cpu_model.c
patch
|
blob
|
history
diff --git
a/compiler-rt/lib/builtins/cpu_model.c
b/compiler-rt/lib/builtins/cpu_model.c
index
e377d64
..
ce5f729
100644
(file)
--- a/
compiler-rt/lib/builtins/cpu_model.c
+++ b/
compiler-rt/lib/builtins/cpu_model.c
@@
-921,6
+921,9
@@
_Bool __aarch64_have_lse_atomics
#define AT_HWCAP 16
#endif
+#ifndef HWCAP_CPUID
+#define HWCAP_CPUID (1 << 11)
+#endif
#ifndef HWCAP_FP
#define HWCAP_FP (1 << 0)
#endif