2008-11-21 Sterling Augustine <sterling@tensilica.com>
* xtensa-isa.c (xtensa_state_is_shared_or): New function. 2008-11-21 Sterling Augustine <sterling@tensilica.com> * 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 <sterling@tensilica.com> * 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.
This commit is contained in:
parent
e2ce1e4a41
commit
1fa3cd8308
@ -1,3 +1,7 @@
|
|||||||
|
2008-11-21 Sterling Augustine <sterling@tensilica.com>
|
||||||
|
|
||||||
|
* xtensa-isa.c (xtensa_state_is_shared_or): New function.
|
||||||
|
|
||||||
2008-11-21 Hans-Peter Nilsson <hp@axis.com>
|
2008-11-21 Hans-Peter Nilsson <hp@axis.com>
|
||||||
|
|
||||||
* elf-bfd.h (struct elf_backend_data): New member got_elt_size.
|
* elf-bfd.h (struct elf_backend_data): New member got_elt_size.
|
||||||
|
@ -1526,6 +1526,17 @@ xtensa_state_is_exported (xtensa_isa isa, xtensa_state st)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
int
|
||||||
|
xtensa_state_is_shared_or (xtensa_isa isa, xtensa_state st)
|
||||||
|
{
|
||||||
|
xtensa_isa_internal *intisa = (xtensa_isa_internal *) isa;
|
||||||
|
CHECK_STATE (intisa, st, XTENSA_UNDEFINED);
|
||||||
|
if ((intisa->states[st].flags & XTENSA_STATE_IS_SHARED_OR) != 0)
|
||||||
|
return 1;
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* Sysregs. */
|
/* Sysregs. */
|
||||||
|
|
||||||
|
@ -1,3 +1,9 @@
|
|||||||
|
2008-11-21 Sterling Augustine <sterling@tensilica.com>
|
||||||
|
|
||||||
|
* 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.
|
||||||
|
|
||||||
2008-11-19 Hans-Peter Nilsson <hp@axis.com>
|
2008-11-19 Hans-Peter Nilsson <hp@axis.com>
|
||||||
|
|
||||||
* config/tc-cris.c (cris_number_to_imm): Apply S_SET_THREAD_LOCAL
|
* config/tc-cris.c (cris_number_to_imm): Apply S_SET_THREAD_LOCAL
|
||||||
|
@ -6539,7 +6539,7 @@ check_t1_t2_reads_and_writes (TInsn *t1, TInsn *t2)
|
|||||||
{
|
{
|
||||||
xtensa_state t1_so = xtensa_stateOperand_state (isa, t1->opcode, i);
|
xtensa_state t1_so = xtensa_stateOperand_state (isa, t1->opcode, i);
|
||||||
t1_inout = xtensa_stateOperand_inout (isa, t1->opcode, i);
|
t1_inout = xtensa_stateOperand_inout (isa, t1->opcode, i);
|
||||||
if (t1_so != t2_so)
|
if (t1_so != t2_so || xtensa_state_is_shared_or (isa, t1_so) == 1)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (t2_inout == 'i' && (t1_inout == 'm' || t1_inout == 'o'))
|
if (t2_inout == 'i' && (t1_inout == 'm' || t1_inout == 'o'))
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
2008-11-21 Sterling Augustine <sterling@tensilica.com>
|
||||||
|
|
||||||
|
* 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 <bob.wilson@acm.org>
|
2008-11-19 Bob Wilson <bob.wilson@acm.org>
|
||||||
|
|
||||||
* xtensa-config.h (XCHAL_HAVE_MUL16, XCHAL_HAVE_MUL32, XCHAL_HAVE_DIV32)
|
* xtensa-config.h (XCHAL_HAVE_MUL16, XCHAL_HAVE_MUL32, XCHAL_HAVE_DIV32)
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/* Internal definitions for configurable Xtensa ISA support.
|
/* 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.
|
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
|
You should have received a copy of the GNU General Public License
|
||||||
along with this program; if not, write to the Free Software
|
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
|
#ifndef XTENSA_ISA_INTERNAL_H
|
||||||
#define XTENSA_ISA_INTERNAL_H
|
#define XTENSA_ISA_INTERNAL_H
|
||||||
@ -33,6 +34,7 @@
|
|||||||
#define XTENSA_OPCODE_IS_CALL 0x00000008
|
#define XTENSA_OPCODE_IS_CALL 0x00000008
|
||||||
|
|
||||||
#define XTENSA_STATE_IS_EXPORTED 0x00000001
|
#define XTENSA_STATE_IS_EXPORTED 0x00000001
|
||||||
|
#define XTENSA_STATE_IS_SHARED_OR 0x00000002
|
||||||
|
|
||||||
#define XTENSA_INTERFACE_HAS_SIDE_EFFECT 0x00000001
|
#define XTENSA_INTERFACE_HAS_SIDE_EFFECT 0x00000001
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/* Interface definition for configurable Xtensa ISA support.
|
/* 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.
|
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
|
You should have received a copy of the GNU General Public License
|
||||||
along with this program; if not, write to the Free Software
|
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
|
#ifndef XTENSA_LIBISA_H
|
||||||
#define XTENSA_LIBISA_H
|
#define XTENSA_LIBISA_H
|
||||||
@ -686,6 +687,13 @@ extern int
|
|||||||
xtensa_state_is_exported (xtensa_isa isa, xtensa_state st);
|
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"). */
|
/* Sysregs ("special registers" and "user registers"). */
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user