summaryrefslogtreecommitdiff
path: root/bfd/xtensa-isa.c
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
commit5d503c51b4565843626b9fd88a3c7ee84b8ca2e8 (patch)
treebe6fffbeebc873902520b7e9095c2afc40196d64 /bfd/xtensa-isa.c
parent854d420a451f939897816916859be9f5c4dea307 (diff)
downloadgdb-5d503c51b4565843626b9fd88a3c7ee84b8ca2e8.tar.gz
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.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/bfd/xtensa-isa.c b/bfd/xtensa-isa.c
index 30ad80cfd6b..f5fa3c2111c 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. */