diff options
author | Sterling Augustine <saugustine@google.com> | 2008-11-21 22:13:32 +0000 |
---|---|---|
committer | Sterling Augustine <saugustine@google.com> | 2008-11-21 22:13:32 +0000 |
commit | 1fa3cd83085778237f1f11a87eda7962f706fd1b (patch) | |
tree | dec8b3c24db8bce6d9cdb24ce3b5b454b9ee6937 /bfd | |
parent | e2ce1e4a4173cc5ddba48e83d74faef7c0738ed8 (diff) | |
download | gdb-1fa3cd83085778237f1f11a87eda7962f706fd1b.zip gdb-1fa3cd83085778237f1f11a87eda7962f706fd1b.tar.gz gdb-1fa3cd83085778237f1f11a87eda7962f706fd1b.tar.bz2 |
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.
Diffstat (limited to 'bfd')
-rw-r--r-- | bfd/ChangeLog | 4 | ||||
-rw-r--r-- | bfd/xtensa-isa.c | 11 |
2 files changed, 15 insertions, 0 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 650ff2e..48f3039 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -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> * elf-bfd.h (struct elf_backend_data): New member got_elt_size. diff --git a/bfd/xtensa-isa.c b/bfd/xtensa-isa.c index 35b27db..138f6ec 100644 --- a/bfd/xtensa-isa.c +++ b/bfd/xtensa-isa.c @@ -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. */ |