Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBob Wilson <bob.wilson@acm.org>2005-03-22 22:51:07 +0300
committerBob Wilson <bob.wilson@acm.org>2005-03-22 22:51:07 +0300
commit305ae3e6e54ee94a5b779aecebf852ca1ea662e1 (patch)
treea13a6e4f9a88914497661e7d1e68c7a5a75e0cf5
parent92a386c5f5567c4d1f9de82786bd223ac80b1563 (diff)
* xtensa-isa.h: Update a comment and whitespace. bfd: * xtensa-isa.c (xtensa_opcode_lookup, xtensa_state_lookup, xtensa_sysreg_lookup_name, xtensa_interface_lookup, xtensa_funcUnit_lookup): Skip bsearch call if count is zero. (xtensa_opcode_decode): Rearrange code.
-rw-r--r--include/ChangeLog4
-rw-r--r--include/xtensa-isa.h15
2 files changed, 17 insertions, 2 deletions
diff --git a/include/ChangeLog b/include/ChangeLog
index d45c62a3c..d83b4da32 100644
--- a/include/ChangeLog
+++ b/include/ChangeLog
@@ -1,3 +1,7 @@
+2005-03-22 Bob Wilson <bob.wilson@acm.org>
+
+ * xtensa-isa.h: Update a comment and whitespace.
+
2005-03-01 Jan Beulich <jbeulich@novell.com>
* libiberty.h: Declare unlink_if_ordinary.
diff --git a/include/xtensa-isa.h b/include/xtensa-isa.h
index 5c22902ee..043b9cdd5 100644
--- a/include/xtensa-isa.h
+++ b/include/xtensa-isa.h
@@ -65,7 +65,7 @@ extern "C" {
typedef struct xtensa_isa_opaque { int unused; } *xtensa_isa;
-/* Opcodes, formats, regfiles, states, sysregs, ctypes, and protos are
+/* Most of the Xtensa ISA entities (e.g., opcodes, regfiles, etc.) are
represented here using sequential integers beginning with 0. The
specific values are only fixed for a particular instantiation of an
xtensa_isa structure, so these values should only be used
@@ -168,6 +168,7 @@ xtensa_isa_errno (xtensa_isa isa);
extern char *
xtensa_isa_error_msg (xtensa_isa isa);
+
/* Instruction buffers. */
@@ -215,6 +216,7 @@ extern void
xtensa_insnbuf_from_chars (xtensa_isa isa, xtensa_insnbuf insn,
const unsigned char *cp, int num_chars);
+
/* ISA information. */
@@ -279,6 +281,7 @@ xtensa_isa_num_interfaces (xtensa_isa isa);
extern int
xtensa_isa_num_funcUnits (xtensa_isa isa);
+
/* Instruction formats. */
@@ -342,6 +345,7 @@ extern int
xtensa_format_set_slot (xtensa_isa isa, xtensa_format fmt, int slot,
xtensa_insnbuf insn, const xtensa_insnbuf slotbuf);
+
/* Opcode information. */
@@ -412,7 +416,6 @@ xtensa_opcode_is_call (xtensa_isa isa, xtensa_opcode opc);
extern int
xtensa_opcode_num_operands (xtensa_isa isa, xtensa_opcode opc);
-
extern int
xtensa_opcode_num_stateOperands (xtensa_isa isa, xtensa_opcode opc);
@@ -438,6 +441,7 @@ xtensa_opcode_num_funcUnit_uses (xtensa_isa isa, xtensa_opcode opc);
extern xtensa_funcUnit_use *
xtensa_opcode_funcUnit_use (xtensa_isa isa, xtensa_opcode opc, int u);
+
/* Operand information. */
@@ -572,6 +576,7 @@ extern int
xtensa_operand_undo_reloc (xtensa_isa isa, xtensa_opcode opc, int opnd,
uint32 *valp, uint32 pc);
+
/* State Operands. */
@@ -588,6 +593,7 @@ xtensa_stateOperand_state (xtensa_isa isa, xtensa_opcode opc, int stOp);
extern char
xtensa_stateOperand_inout (xtensa_isa isa, xtensa_opcode opc, int stOp);
+
/* Interface Operands. */
@@ -598,6 +604,7 @@ extern xtensa_interface
xtensa_interfaceOperand_interface (xtensa_isa isa, xtensa_opcode opc,
int ifOp);
+
/* Register Files. */
@@ -651,6 +658,7 @@ xtensa_regfile_num_bits (xtensa_isa isa, xtensa_regfile rf);
extern int
xtensa_regfile_num_entries (xtensa_isa isa, xtensa_regfile rf);
+
/* Processor States. */
@@ -680,6 +688,7 @@ xtensa_state_num_bits (xtensa_isa isa, xtensa_state st);
extern int
xtensa_state_is_exported (xtensa_isa isa, xtensa_state st);
+
/* Sysregs ("special registers" and "user registers"). */
@@ -717,6 +726,7 @@ xtensa_sysreg_number (xtensa_isa isa, xtensa_sysreg sysreg);
extern int
xtensa_sysreg_is_user (xtensa_isa isa, xtensa_sysreg sysreg);
+
/* Interfaces. */
@@ -768,6 +778,7 @@ xtensa_interface_has_side_effect (xtensa_isa isa, xtensa_interface intf);
extern int
xtensa_interface_class_id (xtensa_isa isa, xtensa_interface intf);
+
/* Functional Units. */