]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
s390: Add STCKF hardware facility to hwcaps.
authorFlorian Krohm <florian@eich-krohm.de>
Sun, 26 Aug 2012 04:22:33 +0000 (04:22 +0000)
committerFlorian Krohm <florian@eich-krohm.de>
Sun, 26 Aug 2012 04:22:33 +0000 (04:22 +0000)
git-svn-id: svn://svn.valgrind.org/vex/trunk@2486

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

index 5c457973b5f9cc7b805df7fff42006d3c8a1d4bc..fc0b86325e732a1529f62456e5b888543446d1a3 100644 (file)
@@ -581,6 +581,8 @@ extern UInt s390_host_hwcaps;
                       (s390_host_hwcaps & (VEX_HWCAPS_S390X_STFLE))
 #define s390_host_has_etf3 \
                       (s390_host_hwcaps & (VEX_HWCAPS_S390X_ETF3))
+#define s390_host_has_stckf \
+                      (s390_host_hwcaps & (VEX_HWCAPS_S390X_STCKF))
 
 #endif /* ndef __VEX_HOST_S390_DEFS_H */
 
index 33c362e85c99a79f9986c4af3df43c4a4decc79e..12946d817296c2353a85d510c4a939ff54113dbb 100644 (file)
@@ -1247,6 +1247,7 @@ static HChar* show_hwcaps_s390x ( UInt hwcaps )
      { "stfle" },
      { "etf2" },
      { "etf3" },
+     { "stckf" },
    };
    static HChar buf[sizeof facilities + sizeof prefix + 1];
    static HChar *p;
@@ -1272,6 +1273,8 @@ static HChar* show_hwcaps_s390x ( UInt hwcaps )
      p = p + vex_sprintf(p, "-%s", facilities[6]);
    if (hwcaps & VEX_HWCAPS_S390X_ETF3)
      p = p + vex_sprintf(p, "-%s", facilities[7]);
+   if (hwcaps & VEX_HWCAPS_S390X_STCKF)
+     p = p + vex_sprintf(p, "-%s", facilities[8]);
 
    /* If there are no facilities, add "zarch" */
    if (hwcaps == 0)
index a66a399801aba048bc89b486ddd19bc7286d4de9..1b32c70f5e3cfa86aaf304b02649bad3a1758606 100644 (file)
@@ -130,6 +130,7 @@ typedef
 #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 */
+#define VEX_HWCAPS_S390X_STCKF (1<<14)  /* STCKF facility */
 
 /* Special value representing all available s390x hwcaps */
 #define VEX_HWCAPS_S390X_ALL   (VEX_HWCAPS_S390X_LDISP | \
@@ -138,6 +139,7 @@ typedef
                                 VEX_HWCAPS_S390X_DFP   | \
                                 VEX_HWCAPS_S390X_FGX   | \
                                 VEX_HWCAPS_S390X_STFLE | \
+                                VEX_HWCAPS_S390X_STCKF | \
                                 VEX_HWCAPS_S390X_ETF3  | \
                                 VEX_HWCAPS_S390X_ETF2)