Add custom HTM fast path for RTM on x86_64.
authorTorvald Riegel <triegel@redhat.com>
Fri, 30 Aug 2013 10:33:41 +0000 (10:33 +0000)
committerTorvald Riegel <torvald@gcc.gnu.org>
Fri, 30 Aug 2013 10:33:41 +0000 (10:33 +0000)
commitbec9ec3fc1f24d55a37a6c90ac03dc60f87d4d72
treec0b7c9260feea5365646627e5ddc4df6b74877de
parent8595a07d8d161b4c612101171f3ad423689ec020
Add custom HTM fast path for RTM on x86_64.

* libitm_i.h (gtm_thread): Assign an asm name to serial_lock.
(htm_fastpath): Assign an asm name.
* libitm.h (_ITM_codeProperties): Add non-ABI flags used by custom
HTM fast paths.
(_ITM_actions): Likewise.
* config/x86/target.h (HTM_CUSTOM_FASTPATH): Enable custom fastpath on
x86_64.
* config/x86/sjlj.S (_ITM_beginTransaction): Add custom HTM fast path.
* config/posix/rwlock.h (gtm_rwlock): Update comments.  Move summary
field to the start of the structure.
* config/linux/rwlock.h (gtm_rwlock): Update comments.
* beginend.cc (gtm_thread::begin_transaction): Add retry policy
handling for custom HTM fast paths.

From-SVN: r202101
libitm/ChangeLog
libitm/beginend.cc
libitm/config/linux/rwlock.h
libitm/config/posix/rwlock.h
libitm/config/x86/sjlj.S
libitm/config/x86/target.h
libitm/libitm.h
libitm/libitm_i.h