Commit aaaffb2a by Andreas Krebbel Committed by Andreas Krebbel

2013-07-29 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>

	* config/s390/target.h (htm_begin, htm_commit, htm_abort)
	(htm_transaction_active): Enable zEC12 instructions in the
	assembler.
	* configure.tgt: Remove -Wa,-march=zEC12 from XCFLAGS.

From-SVN: r201301
parent a71f0749
2013-07-29 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
* config/s390/target.h (htm_begin, htm_commit, htm_abort)
(htm_transaction_active): Enable zEC12 instructions in the
assembler.
* configure.tgt: Remove -Wa,-march=zEC12 from XCFLAGS.
2013-07-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com> 2013-07-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
* acinclude.m4: Add htm asm check for s390. * acinclude.m4: Add htm asm check for s390.
......
...@@ -85,6 +85,7 @@ htm_init () ...@@ -85,6 +85,7 @@ htm_init ()
static inline uint32_t static inline uint32_t
htm_begin () htm_begin ()
{ {
__asm volatile (".machine \"all\" \n\t");
return __builtin_tbegin_nofloat (NULL); return __builtin_tbegin_nofloat (NULL);
} }
...@@ -97,12 +98,14 @@ htm_begin_success (uint32_t begin_ret) ...@@ -97,12 +98,14 @@ htm_begin_success (uint32_t begin_ret)
static inline void static inline void
htm_commit () htm_commit ()
{ {
__asm volatile (".machine \"all\" \n\t");
__builtin_tend (); __builtin_tend ();
} }
static inline void static inline void
htm_abort () htm_abort ()
{ {
__asm volatile (".machine \"all\" \n\t");
__builtin_tabort (_HTM_FIRST_USER_ABORT_CODE); __builtin_tabort (_HTM_FIRST_USER_ABORT_CODE);
} }
...@@ -115,6 +118,7 @@ htm_abort_should_retry (uint32_t begin_ret) ...@@ -115,6 +118,7 @@ htm_abort_should_retry (uint32_t begin_ret)
static inline bool static inline bool
htm_transaction_active () htm_transaction_active ()
{ {
__asm volatile (".machine \"all\" \n\t");
return __builtin_tx_nesting_depth() != 0; return __builtin_tx_nesting_depth() != 0;
} }
......
...@@ -109,7 +109,7 @@ case "${target_cpu}" in ...@@ -109,7 +109,7 @@ case "${target_cpu}" in
ARCH=x86 ARCH=x86
;; ;;
s390|s390x) s390|s390x)
XCFLAGS="${XCFLAGS} -mzarch -mhtm -Wa,-march=zEC12" XCFLAGS="${XCFLAGS} -mzarch -mhtm"
ARCH=s390 ARCH=s390
;; ;;
......
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