< prev index next >
src/hotspot/cpu/ppc/vm_version_ppc.hpp
Print this page
rev 50225 : PPC64: Fix jtreg RTM tests after "8203305: Improve TM detection for enabling RTM on Linux / POWER9"
@@ -47,10 +47,11 @@
mfdscr,
vsx,
ldbrx,
stdbrx,
vshasig,
+ rtm,
num_features // last entry to count features
};
enum Feature_Flag_Set {
unknown_m = 0,
fsqrt_m = (1 << fsqrt ),
@@ -62,16 +63,17 @@
popcntw_m = (1 << popcntw),
fcfids_m = (1 << fcfids ),
vand_m = (1 << vand ),
lqarx_m = (1 << lqarx ),
vcipher_m = (1 << vcipher),
- vshasig_m = (1 << vshasig),
vpmsumb_m = (1 << vpmsumb),
mfdscr_m = (1 << mfdscr ),
vsx_m = (1 << vsx ),
ldbrx_m = (1 << ldbrx ),
stdbrx_m = (1 << stdbrx ),
+ vshasig_m = (1 << vshasig),
+ rtm_m = (1 << rtm ),
all_features_m = (unsigned long)-1
};
static bool _is_determine_features_test_running;
@@ -105,10 +107,12 @@
static bool has_vsx() { return (_features & vsx_m) != 0; }
static bool has_ldbrx() { return (_features & ldbrx_m) != 0; }
static bool has_stdbrx() { return (_features & stdbrx_m) != 0; }
static bool has_vshasig() { return (_features & vshasig_m) != 0; }
static bool has_mtfprd() { return has_vpmsumb(); } // alias for P8
+ // OS feature support
+ static bool has_tm() { return (_features & rtm_m) != 0; }
// Assembler testing
static void allow_all();
static void revert();
< prev index next >