From d6f6f50285a4e6c05d1aad108da1d8da13cce004 Mon Sep 17 00:00:00 2001 From: Sterling Augustine Date: Fri, 21 Nov 2008 22:13:32 +0000 Subject: [PATCH] 2008-11-21 Sterling Augustine * xtensa-isa.c (xtensa_state_is_shared_or): New function. 2008-11-21 Sterling Augustine * xtensa-isa-internal.h (XTENSA_STATE_IS_SHARED_OR): New flag. * xtensa-isa.h (xtensa_state_is_shared_or): New prototype. 2008-11-21 Sterling Augustine * config/tc-xtensa.c (check_t1_t2_reads_and_writes): Call xtensa_state_is_shared_or to allow multiple opcodes within a single FLIX bundle to write to these special states. --- include/ChangeLog | 5 +++++ include/xtensa-isa-internal.h | 6 ++++-- include/xtensa-isa.h | 12 ++++++++++-- 3 files changed, 19 insertions(+), 4 deletions(-) diff --git a/include/ChangeLog b/include/ChangeLog index 082147b4d..c6a6caef4 100644 --- a/include/ChangeLog +++ b/include/ChangeLog @@ -1,3 +1,8 @@ +2008-11-21 Sterling Augustine + + * xtensa-isa-internal.h (XTENSA_STATE_IS_SHARED_OR): New flag. + * xtensa-isa.h (xtensa_state_is_shared_or): New prototype. + 2008-11-19 Bob Wilson * xtensa-config.h (XCHAL_HAVE_MUL16, XCHAL_HAVE_MUL32, XCHAL_HAVE_DIV32) diff --git a/include/xtensa-isa-internal.h b/include/xtensa-isa-internal.h index 9ea23e440..ae1f1679f 100644 --- a/include/xtensa-isa-internal.h +++ b/include/xtensa-isa-internal.h @@ -1,5 +1,5 @@ /* Internal definitions for configurable Xtensa ISA support. - Copyright 2003, 2004, 2005 Free Software Foundation, Inc. + Copyright 2003, 2004, 2005, 2008 Free Software Foundation, Inc. This file is part of BFD, the Binary File Descriptor library. @@ -15,7 +15,8 @@ You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software - Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. */ + Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, + USA. */ #ifndef XTENSA_ISA_INTERNAL_H #define XTENSA_ISA_INTERNAL_H @@ -33,6 +34,7 @@ #define XTENSA_OPCODE_IS_CALL 0x00000008 #define XTENSA_STATE_IS_EXPORTED 0x00000001 +#define XTENSA_STATE_IS_SHARED_OR 0x00000002 #define XTENSA_INTERFACE_HAS_SIDE_EFFECT 0x00000001 diff --git a/include/xtensa-isa.h b/include/xtensa-isa.h index c4e31ed7f..69ac60d4b 100644 --- a/include/xtensa-isa.h +++ b/include/xtensa-isa.h @@ -1,5 +1,5 @@ /* Interface definition for configurable Xtensa ISA support. - Copyright 2003, 2004, 2005, 2006 Free Software Foundation, Inc. + Copyright 2003, 2004, 2005, 2006, 2008 Free Software Foundation, Inc. This file is part of BFD, the Binary File Descriptor library. @@ -15,7 +15,8 @@ You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software - Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. */ + Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, + USA. */ #ifndef XTENSA_LIBISA_H #define XTENSA_LIBISA_H @@ -686,6 +687,13 @@ extern int xtensa_state_is_exported (xtensa_isa isa, xtensa_state st); +/* Check for a "shared_or" state. Returns 0 if the condition is false, + 1 if the condition is true, and XTENSA_UNDEFINED on error. */ + +extern int +xtensa_state_is_shared_or (xtensa_isa isa, xtensa_state st); + + /* Sysregs ("special registers" and "user registers"). */