Commit 961b96a5 authored by Nayana Thorat's avatar Nayana Thorat Committed by Nayana-ibm

MDEV-29324 s390x patch srw_lock.cc

Fix debug mode build failure on s390x.
Replaced builtin_ttest by __builtin_tx_nesting_depth() > 0 as a s390x equivalent version of the expression.
parent f009c4da
......@@ -117,8 +117,13 @@ bool transactional_lock_enabled()
__attribute__((target("htm"),hot))
bool xtest()
{
# ifdef __s390x__
return have_transactional_memory &&
__builtin_tx_nesting_depth() > 0;
# else
return have_transactional_memory &&
_HTM_STATE (__builtin_ttest ()) == _HTM_TRANSACTIONAL;
# endif
}
# endif
#endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment