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 | 9ba7401a7bf0a823402e71dcf8503d18a7647b00 (patch) | |
tree | fdf100a71932cfd8887e3c96c1eba7d8c3f1a167 | |
parent | 30b732c9421db2c0de4699b7d38519654b1ad7c4 (diff) | |
download | bcm5719-llvm-9ba7401a7bf0a823402e71dcf8503d18a7647b00.tar.gz bcm5719-llvm-9ba7401a7bf0a823402e71dcf8503d18a7647b00.zip |
[XRay][compiler-rt] Fix rdtscp support check for x86_64
Follow-up to D29438.
llvm-svn: 315306
-rw-r--r-- | compiler-rt/lib/xray/xray_x86_64.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler-rt/lib/xray/xray_x86_64.cc b/compiler-rt/lib/xray/xray_x86_64.cc index 3c12682ccfc..e17f00ac3a6 100644 --- a/compiler-rt/lib/xray/xray_x86_64.cc +++ b/compiler-rt/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; } |