summaryrefslogtreecommitdiff
path: root/include/xtensa-config.h
diff options
context:
space:
mode:
authorBob Wilson <bob.wilson@acm.org>2007-07-18 18:51:21 +0000
committerBob Wilson <bwilson@gcc.gnu.org>2007-07-18 18:51:21 +0000
commit2a48b790b26895fd7fb56c9ce1d64f083dd278bb (patch)
tree491a671d2873d5b092054d056294c21999ed9248 /include/xtensa-config.h
parent8a91c45bbfb3d5c99560ab89dc1dc55a1add8719 (diff)
xtensa-config.h (XCHAL_HAVE_THREADPTR): New.
include/ * xtensa-config.h (XCHAL_HAVE_THREADPTR): New. (XCHAL_HAVE_RELEASE_SYNC, XCHAL_HAVE_S32C1I): New. gcc/ * config/xtensa/xtensa.c (xtensa_expand_mask_and_shift): New. (struct alignment_context, init_alignment_context): New. (xtensa_expand_compare_and_swap, xtensa_expand_atomic): New. * config/xtensa/xtensa.h (XCHAL_HAVE_RELEASE_SYNC): Add default. (XCHAL_HAVE_S32C1I): Likewise. (TARGET_RELEASE_SYNC, TARGET_S32C1I): New. * config/xtensa/xtensa.md (UNSPECV_MEMW): New constant. (UNSPECV_S32RI, UNSPECV_S32C1I): Likewise. (ATOMIC, HQI): New macros. (memory_barrier, *memory_barrier): New. (sync_lock_releasesi): New. (sync_compare_and_swapsi, sync_compare_and_swap<mode>): New. (sync_lock_test_and_set<mode>): New. (sync_<atomic><mode>): New. (sync_old_<atomic><mode>, sync_new_<atomic><mode>): New. * config/xtensa/xtensa-protos.h (xtensa_expand_compare_and_swap): New. (xtensa_expand_atomic): New. gcc/testsuite/ * lib/target-supports.exp (check_effective_target_sync_int_long): Enable for xtensa. (check_effective_target_sync_char_short): Likewise. From-SVN: r126728
Diffstat (limited to 'include/xtensa-config.h')
-rw-r--r--include/xtensa-config.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/include/xtensa-config.h b/include/xtensa-config.h
index 36f9719fe33..2aca5feda05 100644
--- a/include/xtensa-config.h
+++ b/include/xtensa-config.h
@@ -1,5 +1,5 @@
/* Xtensa configuration settings.
- Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006
+ Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007
Free Software Foundation, Inc.
Contributed by Bob Wilson (bwilson@tensilica.com) at Tensilica.
@@ -73,6 +73,15 @@
#undef XCHAL_HAVE_LOOPS
#define XCHAL_HAVE_LOOPS 1
+#undef XCHAL_HAVE_THREADPTR
+#define XCHAL_HAVE_THREADPTR 1
+
+#undef XCHAL_HAVE_RELEASE_SYNC
+#define XCHAL_HAVE_RELEASE_SYNC 0
+
+#undef XCHAL_HAVE_S32C1I
+#define XCHAL_HAVE_S32C1I 0
+
#undef XCHAL_HAVE_BOOLEANS
#define XCHAL_HAVE_BOOLEANS 0