This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH, rs6000, libitm] Enable Hardware Transactional Memory (HTM) support on Power
- From: Richard Henderson <rth at redhat dot com>
- To: Peter Bergner <bergner at vnet dot ibm dot com>
- Cc: "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>, David Edelsohn <dje dot gcc at gmail dot com>, Michael Meissner <meissner at linux dot ibm dot com>, Pat Haugen <pthaugen at us dot ibm dot com>
- Date: Tue, 02 Jul 2013 07:31:00 -0700
- Subject: Re: [PATCH, rs6000, libitm] Enable Hardware Transactional Memory (HTM) support on Power
- References: <1372734758 dot 4736 dot 149 dot camel at otta>
On 07/01/2013 08:12 PM, Peter Bergner wrote:
> libitm/
> * acinclude.m4 (LIBITM_CHECK_AS_HTM): New.
> * configure.ac: Use it.
> (AC_CHECK_HEADERS): Check for sys/auxv.h.
> (AC_CHECK_FUNCS): Check for getauxval.
> * config.h.in, configure: Rebuild.
> * configure.tgt (target_cpu): Add -mhtm to XCFLAGS.
> * config/powerpc/target.h: Include sys/auxv.h and htmintrin.h.
> (USE_HTM_FASTPATH): Define.
> (_TBEGIN_STARTED, _TBEGIN_INDETERMINATE, _TBEGIN_PERSISTENT,
> _HTM_RETRIES) New macros.
> (htm_abort, htm_abort_should_retry, htm_available, htm_begin, htm_init,
> htm_begin_success, htm_commit, htm_transaction_active): New functions.
The libitm parts are ok.
I briefly looked over the rs6000 backend bits and didn't see anything
noticeably wrong, but I'll leave that for DJE to approve.
r~