]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Add ETF3 facility (VEX bits). Part of fixing Bugzilla #289839.
authorFlorian Krohm <florian@eich-krohm.de>
Thu, 3 May 2012 01:30:48 +0000 (01:30 +0000)
committerFlorian Krohm <florian@eich-krohm.de>
Thu, 3 May 2012 01:30:48 +0000 (01:30 +0000)
Patch by Divya Vyas (divyvyas@linux.vnet.ibm.com)

git-svn-id: svn://svn.valgrind.org/vex/trunk@2319

VEX/priv/host_s390_defs.h
VEX/priv/main_main.c
VEX/pub/libvex.h

index ba3b32789383c534b86e4fac8b25870202a8e0b6..a953b4356ba91a9e157513da0c597122198047a4 100644 (file)
@@ -564,6 +564,8 @@ extern UInt s390_host_hwcaps;
                       (s390_host_hwcaps & (VEX_HWCAPS_S390X_ETF2))
 #define s390_host_has_stfle \
                       (s390_host_hwcaps & (VEX_HWCAPS_S390X_STFLE))
+#define s390_host_has_etf3 \
+                      (s390_host_hwcaps & (VEX_HWCAPS_S390X_ETF3))
 
 #endif /* ndef __VEX_HOST_S390_DEFS_H */
 
index 4d11a671d9da167c1c7cbbf4c5ff55ebf0f51622..83a93e59ca4571863f8b914528301466850cf598 100644 (file)
@@ -1178,6 +1178,7 @@ static HChar* show_hwcaps_s390x ( UInt hwcaps )
      { "fgx" },
      { "stfle" },
      { "etf2" },
+     { "etf3" },
    };
    static HChar buf[sizeof facilities + sizeof prefix + 1];
    static HChar *p;
@@ -1201,6 +1202,8 @@ static HChar* show_hwcaps_s390x ( UInt hwcaps )
      p = p + vex_sprintf(p, "-%s", facilities[5]);
    if (hwcaps & VEX_HWCAPS_S390X_ETF2)
      p = p + vex_sprintf(p, "-%s", facilities[6]);
+   if (hwcaps & VEX_HWCAPS_S390X_ETF3)
+     p = p + vex_sprintf(p, "-%s", facilities[7]);
 
    /* If there are no facilities, add "zarch" */
    if (hwcaps == 0)
index 51495e186248c3d36992214eee9dc5edc7960620..1e7b66f2cf5c58473e5c6bfab79ae13930a412c7 100644 (file)
@@ -134,6 +134,7 @@ typedef
 #define VEX_HWCAPS_S390X_FGX   (1<<10)  /* FPR-GR transfer facility */
 #define VEX_HWCAPS_S390X_ETF2  (1<<11)  /* ETF2-enhancement facility */
 #define VEX_HWCAPS_S390X_STFLE (1<<12)  /* STFLE facility */
+#define VEX_HWCAPS_S390X_ETF3  (1<<13)  /* ETF3-enhancement facility */
 
 /* Special value representing all available s390x hwcaps */
 #define VEX_HWCAPS_S390X_ALL   (VEX_HWCAPS_S390X_LDISP | \
@@ -142,6 +143,7 @@ typedef
                                 VEX_HWCAPS_S390X_DFP   | \
                                 VEX_HWCAPS_S390X_FGX   | \
                                 VEX_HWCAPS_S390X_STFLE | \
+                                VEX_HWCAPS_S390X_ETF3  | \
                                 VEX_HWCAPS_S390X_ETF2)
 
 #define VEX_HWCAPS_S390X(x)  ((x) & ~VEX_S390X_MODEL_MASK)