aboutsummaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorBob Wilson <bob.wilson@acm.org>2004-11-12 21:59:13 +0000
committerBob Wilson <bob.wilson@acm.org>2004-11-12 21:59:13 +0000
commita1ace8d8587718c6ccbd4bc9c7c4a2907866ee91 (patch)
treeb694091a00edd14027076abdfacf7db9454f34f1 /bfd
parentdf407dfe2e8452c0a3edfcf50d55942ff0273433 (diff)
downloadgdb-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')
-rw-r--r--bfd/ChangeLog4
-rw-r--r--bfd/xtensa-isa.c9
2 files changed, 13 insertions, 0 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index ed41ba2..eb1b718 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,7 @@
+2004-11-12 Bob Wilson <bob.wilson@acm.org>
+
+ * xtensa-isa.c (xtensa_interface_class_id): New.
+
2004-11-11 Bob Wilson <bob.wilson@acm.org>
* elf32-xtensa.c (property_table_compare): Remove assertion about
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. */