]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Fix debug print for hwcaps adding stfle ad etf2.
authorFlorian Krohm <florian@eich-krohm.de>
Sat, 21 Apr 2012 15:41:51 +0000 (15:41 +0000)
committerFlorian Krohm <florian@eich-krohm.de>
Sat, 21 Apr 2012 15:41:51 +0000 (15:41 +0000)
Add VEX_HWCAPS_S390X_STFLE. This should have been part of r2237.

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

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

index ce4a19726033ef1adc9703f004a74861fcfd3183..ba3b32789383c534b86e4fac8b25870202a8e0b6 100644 (file)
@@ -562,6 +562,8 @@ extern UInt s390_host_hwcaps;
                       (s390_host_hwcaps & (VEX_HWCAPS_S390X_FGX))
 #define s390_host_has_etf2 \
                       (s390_host_hwcaps & (VEX_HWCAPS_S390X_ETF2))
+#define s390_host_has_stfle \
+                      (s390_host_hwcaps & (VEX_HWCAPS_S390X_STFLE))
 
 #endif /* ndef __VEX_HOST_S390_DEFS_H */
 
index cf6e2f5c618b0e4a645da16ea530eb47e48578af..a8c396816c530a844750aded89343b834f78d2c8 100644 (file)
@@ -1168,6 +1168,8 @@ static HChar* show_hwcaps_s390x ( UInt hwcaps )
      { "gie" },
      { "dfp" },
      { "fgx" },
+     { "stfle" },
+     { "etf2" },
    };
    static HChar buf[sizeof facilities + sizeof prefix + 1];
    static HChar *p;
@@ -1187,6 +1189,10 @@ static HChar* show_hwcaps_s390x ( UInt hwcaps )
      p = p + vex_sprintf(p, "-%s", facilities[3]);
    if (hwcaps & VEX_HWCAPS_S390X_FGX)
      p = p + vex_sprintf(p, "-%s", facilities[4]);
+   if (hwcaps & VEX_HWCAPS_S390X_STFLE)
+     p = p + vex_sprintf(p, "-%s", facilities[5]);
+   if (hwcaps & VEX_HWCAPS_S390X_ETF2)
+     p = p + vex_sprintf(p, "-%s", facilities[6]);
 
    /* If there are no facilities, add "zarch" */
    if (hwcaps == 0)
index 04668014c6984c8b8433c469901d3d1c496b9172..e2295621738f296c51185e243621c3b0e273df78 100644 (file)
@@ -132,6 +132,7 @@ typedef
 #define VEX_HWCAPS_S390X_DFP   (1<<9)   /* Decimal floating point facility */
 #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 */
 
 /* Special value representing all available s390x hwcaps */
 #define VEX_HWCAPS_S390X_ALL   (VEX_HWCAPS_S390X_LDISP | \
@@ -139,6 +140,7 @@ typedef
                                 VEX_HWCAPS_S390X_GIE   | \
                                 VEX_HWCAPS_S390X_DFP   | \
                                 VEX_HWCAPS_S390X_FGX   | \
+                                VEX_HWCAPS_S390X_STFLE | \
                                 VEX_HWCAPS_S390X_ETF2)
 
 #define VEX_HWCAPS_S390X(x)  ((x) & ~VEX_S390X_MODEL_MASK)