Enable testing for the ETF3 facility.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12759 a5019735-40e9-0310-863c-91ae7b9d1cf9
diff --git a/tests/s390x_features.c b/tests/s390x_features.c
index 31a7bd7..670acb6 100644
--- a/tests/s390x_features.c
+++ b/tests/s390x_features.c
@@ -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.
}