summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMichael Pratt <mpratt@google.com>2019-03-26 17:26:50 -0700
committerShentubot <shentubot@google.com>2019-03-26 17:27:48 -0700
commite9152d4a621ea3f83da4a064018bc32854330e6c (patch)
tree2958bddf93d032538f9ff7fa38c5d011dfedaf9f
parent654e878abba174d8f7d588f38ecfd5a020bf581e (diff)
Automated rollback of changelist 234892473
PiperOrigin-RevId: 240462667 Change-Id: I3d1c5c0d80a3badced963ae1d450c20ed8a767ed
-rw-r--r--pkg/cpuid/cpuid.go2
-rw-r--r--pkg/cpuid/cpuid_parse_test.go9
2 files changed, 8 insertions, 3 deletions
diff --git a/pkg/cpuid/cpuid.go b/pkg/cpuid/cpuid.go
index 68db7f33b..0571b7cde 100644
--- a/pkg/cpuid/cpuid.go
+++ b/pkg/cpuid/cpuid.go
@@ -338,7 +338,7 @@ var x86FeatureStrings = map[Feature]string{
X86FeatureRTM: "rtm",
X86FeatureCQM: "cqm",
X86FeatureMPX: "mpx",
- X86FeatureRDT: "rdt",
+ X86FeatureRDT: "rdt_a",
X86FeatureAVX512F: "avx512f",
X86FeatureAVX512DQ: "avx512dq",
X86FeatureRDSEED: "rdseed",
diff --git a/pkg/cpuid/cpuid_parse_test.go b/pkg/cpuid/cpuid_parse_test.go
index 7c202d73a..e8f87a10e 100644
--- a/pkg/cpuid/cpuid_parse_test.go
+++ b/pkg/cpuid/cpuid_parse_test.go
@@ -101,6 +101,11 @@ func TestHostFeatureFlags(t *testing.T) {
// SDBG only exposed in
// b1c599b8ff80ea79b9f8277a3f9f36a7b0cfedce (4.3).
continue
+ // Block 2.
+ case f == X86FeatureRDT && (major < 4 || major == 4 && minor < 10):
+ // RDT only exposed in
+ // 4ab1586488cb56ed8728e54c4157cc38646874d9 (4.10).
+ continue
// Block 3.
case f == X86FeatureAVX512VBMI && (major < 4 || major == 4 && minor < 10):
// AVX512VBMI only exposed in
@@ -111,8 +116,8 @@ func TestHostFeatureFlags(t *testing.T) {
// 3522c2a6a4f341058b8291326a945e2a2d2aaf55 (4.15).
continue
case f == X86FeaturePKU && (major < 4 || major == 4 && minor < 9):
- // PKU only exposed in dfb4a70f20c5b3880da56ee4c9484bdb4e8f1e65
- // (4.9).
+ // PKU only exposed in
+ // dfb4a70f20c5b3880da56ee4c9484bdb4e8f1e65 (4.9).
continue
// Block 4.
case f == X86FeatureXSAVES && (major < 4 || major == 4 && minor < 8):