|
From: <sv...@va...> - 2012-07-19 14:36:07
|
florian 2012-07-19 15:35:55 +0100 (Thu, 19 Jul 2012)
New Revision: 12759
Log:
Enable testing for the ETF3 facility.
Modified files:
trunk/tests/s390x_features.c
Modified: trunk/tests/s390x_features.c (+2 -1)
===================================================================
--- trunk/tests/s390x_features.c 2012-07-19 00:01:02 -23:00 (rev 12758)
+++ trunk/tests/s390x_features.c 2012-07-19 15:35:55 +01:00 (rev 12759)
@@ -116,7 +116,6 @@
model_info *model;
/* Slurp contents of /proc/cpuinfo into FILE_BUF */
- //fh = open("/proc/cpuinfo", O_RDONLY, S_IRUSR);
fh = open("/proc/cpuinfo", O_RDONLY, S_IRUSR);
if (fh < 0) return NULL;
@@ -215,6 +214,8 @@
match = (facilities & (1ULL << 29));
} else if (strcmp(feature, "s390x-exrl") == 0 ) {
match = (facilities & (1ULL << 28));
+ } else if (strcmp(feature, "s390x-etf3") == 0 ) {
+ match = (facilities & (1ULL << (63 - 30));
} else {
return 2; // Unrecognised feature.
}
|