From: Florian Krohm Date: Thu, 19 Jul 2012 14:35:55 +0000 (+0000) Subject: Enable testing for the ETF3 facility. X-Git-Tag: svn/VALGRIND_3_8_0~109 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e78d930a091ad59948ac6b1e58ebd81adc3f32a6;p=thirdparty%2Fvalgrind.git Enable testing for the ETF3 facility. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12759 --- diff --git a/tests/s390x_features.c b/tests/s390x_features.c index 31a7bd7565..670acb6c24 100644 --- a/tests/s390x_features.c +++ b/tests/s390x_features.c @@ -116,7 +116,6 @@ static model_info *get_host(void) 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 @@ static int go(char *feature, char *cpu) 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. }