1
0
Fork 0
mirror of https://github.com/anrieff/libcpuid synced 2024-11-10 22:59:13 +00:00
Commit graph

339 commits

Author SHA1 Message Date
Veselin Georgiev
c96ae6f8fc Merge pull request #83 from X0rg/master
Various changes for RDMSR
2017-02-15 01:44:51 +00:00
Xorg
eac52e7f04 RDMSR: fix bus speed computing with AMD CPUs 2017-02-12 21:51:04 +01:00
Xorg
09a75e95f2 RDMSR: fix returned value on NULL handler
It should return CPU_INVALID_VALUE on error, not ERR_HANDLE
2017-02-12 20:17:56 +01:00
Xorg
e7bfcc3651 RDMSR: add an internal structure to pass arguments 2017-02-12 20:17:56 +01:00
Xorg
d5c892e002 RDMSR: fix cpu_msrinfo() function with AMD CPUs 2017-02-12 20:17:51 +01:00
Veselin Georgiev
0cb7023828 Merge pull request #82 from X0rg/master
Add a switch to cpuid_tool to dump MSR values to a file.

This is very similar to the --save=... feature.
2017-02-10 01:55:05 +00:00
Veselin Georgiev
86bf8e8269 Fixed issue #81: Misdiagnosis microarchitecture for i3-3220T
It's a mystery to me why this CPU doesn't have RdRand.
A quick-n-dirty workaround is inserted to fix that.
2017-02-10 03:48:00 +02:00
Xorg
9b038c94c4 Add a msr_serialize_raw_data() function 2017-02-09 20:55:28 +01:00
Veselin Georgiev
fa87a5e183 Fixed issue #78: date in changelog is wrong 2016-11-13 02:54:52 +02:00
Veselin Georgiev
e36a08deb9 Fixed issue #76: Skylake Core i5 badly recognized
Add support for detecting RDSEED and ADX instructions.
Use RDSEED instead of RTM to ascertain that the CPU is
Broadwell or later in recog_intel.c. This fixes
detection discrepancies on Linux, where RTM is not
made available (I guess there's no kernel support for it).

The two new flags are also now detected in the Broadwell
and Skylake tests. Update them as well.
2016-10-25 05:16:44 +03:00
Veselin Georgiev
ee88463079 Fix a compilation error on MSVC. 2016-10-18 02:15:36 +02:00
Veselin Georgiev
6907241564 Related to issue #75: Improve documentation of cpuid_get_total_cpus(). 2016-10-18 01:54:27 +03:00
Veselin Georgiev
4c776cb465 cpuid_tool: proper indentation for printing EPC sections. 2016-10-04 00:37:10 +03:00
Veselin Georgiev
722a12bad2 cpuid_tool: document the `--sgx' option, and make it special.
Other, non-special options like `--cache' output strictly one line.
--sgx is not like that, because how much data it will print depends
on the machine it is being run.
2016-10-04 00:04:56 +03:00
Veselin Georgiev
f10e8c79ee Fix an error with printing SGX values, and a few warnings. 2016-10-03 22:34:22 +03:00
Veselin Georgiev
937586037a Merge pull request #74 from eloaders/master
Fix #72
2016-10-03 19:15:05 +01:00
eloaders
b5bd535582 Fix #72
let libcpuid 0.4.0 and brethen conflict with libcpuid 0.3.0 and its
brethen
2016-10-03 20:10:02 +02:00
Veselin Georgiev
12849cea60 Merge pull request #70 from eloaders/master
Fix Launchpad Build
2016-10-03 17:47:36 +01:00
eloaders
14cd4421b5 Fix Launchpad Build
debian/changelog didn't contain any parseable stanzas
2016-10-03 18:31:06 +02:00
Veselin Georgiev
e632d1287c Fix issue #69: clang LTO error
Replace named asm label with unnamed (local) label.
2016-10-03 13:17:01 +03:00
Veselin Georgiev
4cf8cfa862 Related to issue #67: Information about the availability of SGX
Initial commit adding support for detection of SGX. Not tested yet.
Increment version number due to binary incompatibility of the
sizes of cpu_raw_data_t and cpu_id_t.
2016-10-03 13:07:22 +03:00
Veselin Georgiev
94843e8fd5 Merge pull request #68 from X0rg/master
Minor fixes
2016-09-22 16:31:14 +01:00
Xorg
af35c0a0dc Fix Debian package 2016-09-22 17:11:47 +02:00
Xorg
4b4b49b288 Fix build on GhostBSD 10.3 2016-09-22 17:11:47 +02:00
Veselin Georgiev
240d1c2e1e Merge pull request #65 from eloaders/patch-4
Update control
2016-09-20 13:38:23 +01:00
Veselin Georgiev
a7a31743a2 Fix issue #66: Manpage for cpuid_tool
The man-page is generated with Doxygen, similar to the lib docs.
2016-09-20 15:36:40 +03:00
eloaders
05b0540b4b Update control 2016-09-19 20:32:45 +02:00
Veselin Georgiev
a68792dc2c Merge pull request #63 from eloaders/patch-3
Update control
2016-09-15 18:43:15 +01:00
Veselin Georgiev
2f31e94263 Merge pull request #62 from eloaders/patch-2
Rename libcpuid11-dev.install to libcpuid13-dev.install
2016-09-15 18:43:09 +01:00
Veselin Georgiev
334d58388b Merge pull request #61 from eloaders/patch-1
Rename libcpuid11.install to libcpuid13.install
2016-09-15 18:43:02 +01:00
eloaders
43d28e68f4 Update control 2016-09-15 19:39:30 +02:00
eloaders
e442833858 Rename libcpuid11-dev.install to libcpuid13-dev.install 2016-09-15 19:38:51 +02:00
eloaders
20955b7534 Rename libcpuid11.install to libcpuid13.install 2016-09-15 19:38:00 +02:00
Veselin Georgiev
f6051bb6d7 Merge pull request #60 from eloaders/patch-3
Update control
2016-09-15 12:50:00 +01:00
Veselin Georgiev
835c297d91 Merge pull request #59 from eloaders/patch-2
Create cpuidtool.install
2016-09-15 12:49:51 +01:00
Veselin Georgiev
b7c07a2390 Merge pull request #58 from eloaders/patch-4
Update libcpuid11.install
2016-09-15 12:49:39 +01:00
eloaders
a858630c1f Update libcpuid11.install 2016-09-15 08:10:38 +02:00
eloaders
896a6f6c29 Update control 2016-09-15 08:10:06 +02:00
eloaders
d9bed6f3b1 Create cpuidtool.install 2016-09-15 08:08:57 +02:00
Veselin Georgiev
2fa79c9a26 Merge pull request #57 from X0rg/master
Replace binary literals by hex literals
2016-09-03 17:42:43 +01:00
Xorg
581ca840fa Replace binary literals by hex literals
Fix #52, again.
2016-09-03 18:39:55 +02:00
Veselin Georgiev
8f21ed54ab Merge pull request #56 from X0rg/master
Fix for AMD multipliers
2016-08-30 11:07:41 +01:00
Xorg
77c6a9a666 Increase CPU clock accuracy in bus clock calculation
The CPU clock is computed once and cached, so it needs to be accurate. In libcpuid.h, 100ms is recommended.
2016-08-30 11:13:17 +02:00
Xorg
4a077265fd Fixed issue #52: Wrong CPU multipliers on AMD APU
Properly use formulas from AMD BKDG, it should fix CPU multipliers report from 10h family to 16h family.
Some tests are available in #52.
2016-08-30 11:07:06 +02:00
Veselin Georgiev
3f38efb6c9 Fixed issue #54: Intel Atom N450 not recognised properly
Improved parsing of brand strings for both Pineview and Cedarview
Atoms.

Add tests for both the Pineview Atom, and also Broadwell-E
(forgotten in a previous commit).
2016-08-24 15:06:40 +03:00
Veselin Georgiev
f5d82b0f1a Merge pull request #55 from eloaders/patch-1
Update Changelog
2016-08-24 12:48:45 +01:00
Veselin Georgiev
1599fd5a27 Fixed issue #53: Broadwell-E not recognised properly
The presence of RTM was previously incorrectly attributed to a Skylake
or later only CPUs. Broadwells have this as well, so the detected
intel_code_t for Broadwell-E was wrong (it was CORE_HASWELL*).
2016-08-24 08:50:28 +03:00
eloaders
9e3d20d25b Update Changelog 2016-08-22 17:52:00 +02:00
Veselin Georgiev
50530f7618 Fix issue #51: Undefined behavior. 2016-07-31 17:48:49 +03:00
Veselin Georgiev
e0505af4f6 Fix issue #50: On some virtual machines, library returns zero number of cores.
As proposed in the issue discussion.
2016-07-18 09:07:51 +03:00