1
0
mirror of https://github.com/google/cpu_features.git synced 2025-04-27 15:12:30 +02:00

75 Commits

Author SHA1 Message Date
Guillaume Chatelet
8ba03e9d24
Fix CI for Mips v0.2.0 2018-09-07 15:54:51 +02:00
Guillaume Chatelet
dab7cea707 Fix -Wunused-function warning. 2018-09-07 15:17:44 +02:00
Guillaume Chatelet
26133d3b62 Match function definition and declaration arguments. 2018-06-20 09:18:57 +02:00
Guillaume Chatelet
9f9a8d4b6e
Merge pull request #37 from psteinb/adding-missing-header
without cpu_features_macros.h in the install tree, the library cannot
2018-06-19 11:11:36 +02:00
Peter Steinbach
ce4637008d without cpu_features_macros.h in the install tree, the library cannot
be used after `make install`
2018-05-22 10:09:00 +02:00
Guillaume Chatelet
06d4f52f7e
Update README.md to add support for POWER. 2018-05-15 11:24:37 +02:00
Guillaume Chatelet
d5e3985359
Delete .cpuinfo_ppc.h.swp 2018-05-15 10:46:12 +02:00
Guillaume Chatelet
7e1035c5fc
Merge pull request #36 from RashmicaG/master
Add Power support
2018-05-15 10:42:42 +02:00
Rashmica Gupta
bc1066c128
travis: Add PowerPC jobs
Signed-off-by: Rashmica Gupta <rashmica.gupta@au1.ibm.com>
2018-05-15 14:25:03 +10:00
Rashmica Gupta
c45e32f812
powerpc: Add AT_PLATFORM and AT_BASE_PLATFORM
Some PowerPC machines can operate in a mode that appears different
to a process than the actual hardware. AT_PLATFORM indicates the
supported instruction set and AT_BASE_PLATFORM indicates the
actual microarchitecture of the hardware.

Signed-off-by: Rashmica Gupta <rashmica.gupta@au1.ibm.com>
2018-05-15 14:24:58 +10:00
Rashmica Gupta
1c8bf0ecd8
hwcaps: Change uint32_t to unsigned long
getauxval() returns an unsigned long which can be defined to be
more than 32 bits so don't force the result into a uint32_t.

Signed-off-by: Rashmica Gupta <rashmica.gupta@au1.ibm.com>
2018-05-15 14:24:53 +10:00
Rashmica Gupta
3adafbfe66
powerpc: Added PowerPC implementation
Signed-off-by: Rashmica Gupta <rashmica.gupta@au1.ibm.com>
2018-05-15 14:24:45 +10:00
Guillaume Chatelet
a5093bbe7c
Merge pull request #35 from Leandros/master
Explicitly namespace every extern identifier
2018-05-04 09:50:07 +02:00
Arvid Gerstmann
d968991caa Reformat files 2018-05-04 09:32:17 +02:00
Arvid Gerstmann
235d57c591 Fix failing tests on Linux & Android 2018-05-04 09:30:32 +02:00
Arvid Gerstmann
8d726f81f0 Merge remote-tracking branch 'original/master' 2018-05-04 09:26:13 +02:00
Guillaume Chatelet
6cfe2326b6
Fix missing line feed in .clang-format 2018-05-04 08:46:51 +02:00
Arvid Gerstmann
fd4839032c Fix tests & fix missing GetHardwareCapabilities() change 2018-05-03 17:07:07 +02:00
Arvid Gerstmann
a1ffdcbe70 Explicitly namespace every extern identifier 2018-04-26 10:31:03 +02:00
Guillaume Chatelet
7eca4a7a39
Merge pull request #33 from google/json_output2
Add JSON output. Fixes #24
2018-03-27 15:53:06 +02:00
Guillaume Chatelet
07fd90d4f5 Add JSON output. Fixes #24 2018-03-27 15:28:40 +02:00
Guillaume Chatelet
9b872ce0b2 Add cx16 (cmpxchg16b) cpuid flag. Fixes #30 2018-03-13 10:58:42 +01:00
Guillaume Chatelet
68479a8cf9 Fixing unneeded whitespaces 2018-02-21 10:15:22 +01:00
Guillaume Chatelet
9c56b0385e
Merge pull request #27 from google/cross_compilation
Adding cross compilation. Fixes #13.
2018-02-16 17:11:54 +01:00
Guillaume Chatelet
894c2dc1a7 Fix shellcheck warnings. 2018-02-16 16:45:33 +01:00
Guillaume Chatelet
6da37f5dd0 Factor in mips-mti-linux-gnu for mips 2018-02-16 15:09:51 +01:00
Guillaume Chatelet
9233afb83b Remove non standard tools 2018-02-16 14:38:05 +01:00
Guillaume Chatelet
6446b42567 Add Mips compilation support 2018-02-16 14:17:10 +01:00
Guillaume Chatelet
c1de7c935e Update QEMU config and path 2018-02-15 14:16:25 +01:00
Guillaume Chatelet
59cb104692 Trigger build when run within travis 2018-02-15 13:57:06 +01:00
Guillaume Chatelet
245c812f10 Update cross compilation script 2018-02-15 13:51:08 +01:00
Guillaume Chatelet
5ec8408da3 Fix invalid linaro url.wq 2018-02-14 14:40:22 +01:00
Guillaume Chatelet
5a9819ce82 Update cross compilation scripts. 2018-02-14 14:34:46 +01:00
Guillaume Chatelet
54e27126e6 Cache is not shared between builds, prevent full qemu compilation 2018-02-14 11:04:15 +01:00
Guillaume Chatelet
499786392e update travis.yml.wq 2018-02-14 10:57:34 +01:00
Guillaume Chatelet
bce8959aca Add aarch64 cross compilation. 2018-02-14 10:54:20 +01:00
Guillaume Chatelet
5e016e4f1b Make toolchain persistent accross runs 2018-02-14 09:59:29 +01:00
Guillaume Chatelet
a25b5cbe7e Test travis cross compilation 2018-02-14 09:41:51 +01:00
Guillaume Chatelet
36df25b7bc Add <stdbool.h> to examples where needed, pluse minor stylistic touch-up. 2018-02-13 14:19:25 +01:00
Guillaume Chatelet
f7e0a6d066
Merge pull request #25 from xqp/feature/detect_sgx_smx
detect intel sgx and smx cpu features for the x86 arch
2018-02-13 11:52:28 +01:00
Guillaume Chatelet
d1a8d22346 Amend OS/Arch matrix to remove N/A configurations. 2018-02-13 11:50:53 +01:00
Patrik Fiedler
0f1f3ac262
sort the detection by leaf and bit 2018-02-13 11:44:40 +01:00
Patrik Fiedler
3ee0d62e87
detect intel sgx and smx cpu features for the x86 arch 2018-02-13 11:16:48 +01:00
Guillaume Chatelet
bc8df0c1c5 Update documentation to reflect per OS support.
Fixes #16
2018-02-13 10:57:49 +01:00
Guillaume Chatelet
7634420f31 GCC does not discover all cpu features. Fixes #22 2018-02-13 10:12:21 +01:00
Guillaume Chatelet
9df2d78b8d Update googletest management. 2018-02-13 10:07:02 +01:00
Guillaume Chatelet
57917d2b12 Fix typo in CMakeLists.txt 2018-02-12 16:48:57 +01:00
Guillaume Chatelet
1976dcd4d2 Adding CMake install. Fixes #18 2018-02-12 16:17:21 +01:00
Guillaume Chatelet
e419573d10 Use CPU_FEATURES_ prefix for namespace macros. 2018-02-12 16:15:15 +01:00
Guillaume Chatelet
8bace7000c Advertize list_cpu_features demo program. Fixes #19 2018-02-12 12:57:15 +01:00