]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Enable testing for the ETF3 facility.
authorFlorian Krohm <florian@eich-krohm.de>
Thu, 19 Jul 2012 14:35:55 +0000 (14:35 +0000)
committerFlorian Krohm <florian@eich-krohm.de>
Thu, 19 Jul 2012 14:35:55 +0000 (14:35 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12759

tests/s390x_features.c

index 31a7bd7565cf3a2ae5695a76e0529f205f12c55a..670acb6c24c8ccd6ce80361b3b57d99c350a2677 100644 (file)
@@ -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.
    }