diff options
author | Bob Wilson <bob.wilson@acm.org> | 2004-11-12 21:59:13 +0000 |
---|---|---|
committer | Bob Wilson <bob.wilson@acm.org> | 2004-11-12 21:59:13 +0000 |
commit | a1ace8d8587718c6ccbd4bc9c7c4a2907866ee91 (patch) | |
tree | b694091a00edd14027076abdfacf7db9454f34f1 /bfd/xtensa-isa.c | |
parent | df407dfe2e8452c0a3edfcf50d55942ff0273433 (diff) | |
download | gdb-a1ace8d8587718c6ccbd4bc9c7c4a2907866ee91.zip gdb-a1ace8d8587718c6ccbd4bc9c7c4a2907866ee91.tar.gz gdb-a1ace8d8587718c6ccbd4bc9c7c4a2907866ee91.tar.bz2 |
2004-11-12 Bob Wilson <bob.wilson@acm.org>
include/ChangeLog
* xtensa-isa-internal.h (xtensa_interface_internal): Add class_id.
* xtensa-isa.h (xtensa_interface_class_id): New prototype.
bfd/ChangeLog
* xtensa-isa.c (xtensa_interface_class_id): New.
gas/ChangeLog
* config/tc-xtensa.c (finish_vinsn): Clear pending instruction if
there is a conflict.
(check_t1_t2_reads_and_writes): Check for both reads and writes to
interfaces that are related as determined by xtensa_interface_class_id.
Diffstat (limited to 'bfd/xtensa-isa.c')
-rw-r--r-- | bfd/xtensa-isa.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/bfd/xtensa-isa.c b/bfd/xtensa-isa.c index 30ad80c..f5fa3c2 100644 --- a/bfd/xtensa-isa.c +++ b/bfd/xtensa-isa.c @@ -1677,6 +1677,15 @@ xtensa_interface_has_side_effect (xtensa_isa isa, xtensa_interface intf) return 0; } + +int +xtensa_interface_class_id (xtensa_isa isa, xtensa_interface intf) +{ + xtensa_isa_internal *intisa = (xtensa_isa_internal *) isa; + CHECK_INTERFACE (intisa, intf, XTENSA_UNDEFINED); + return intisa->interfaces[intf].class_id; +} + /* Functional Units. */ |