diff options
author | Dean Michael Berris <dberris@google.com> | 2017-10-10 12:44:20 +0000 |
---|---|---|
committer | Dean Michael Berris <dberris@google.com> | 2017-10-10 12:44:20 +0000 |
commit | 7904451feadc8f766fd194b6d798b5c6ffabd069 (patch) | |
tree | 7c9edabfb7ea27113d78c65456270e70eb9a634a /lib/xray/xray_x86_64.cc | |
parent | e21fc332775e7288a719d8b8ddb18772002d0c62 (diff) |
[XRay][compiler-rt] Fix rdtscp support check for x86_64
Follow-up to D29438.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@315306 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/xray/xray_x86_64.cc')
-rw-r--r-- | lib/xray/xray_x86_64.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/xray/xray_x86_64.cc b/lib/xray/xray_x86_64.cc index 3c12682cc..e17f00ac3 100644 --- a/lib/xray/xray_x86_64.cc +++ b/lib/xray/xray_x86_64.cc @@ -258,9 +258,9 @@ bool probeRequiredCPUFeatures() XRAY_NEVER_INSTRUMENT { // We check whether rdtscp support is enabled. According to the x86_64 manual, // level should be set at 0x80000001, and we should have a look at bit 27 in - // EDX. That's 0x8000000 (or 1u << 26). + // EDX. That's 0x8000000 (or 1u << 27). __get_cpuid(0x80000001, &EAX, &EBX, &ECX, &EDX); - if (!(EDX & (1u << 26))) { + if (!(EDX & (1u << 27))) { Report("Missing rdtscp support.\n"); return false; } |