aboutsummaryrefslogtreecommitdiff
path: root/gdb/mips-tdep.h
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2004-10-30 20:54:54 +0000
committerAndrew Cagney <cagney@redhat.com>2004-10-30 20:54:54 +0000
commit95ac2dcfbb412c950079cd182299a7d572ed9f90 (patch)
tree8cad60c72e3cdcde5d143876d4dddd224730fa6f /gdb/mips-tdep.h
parent1a8da44df3a27ece21de383e0e0571957bfc56cb (diff)
downloadgdb-95ac2dcfbb412c950079cd182299a7d572ed9f90.zip
gdb-95ac2dcfbb412c950079cd182299a7d572ed9f90.tar.gz
gdb-95ac2dcfbb412c950079cd182299a7d572ed9f90.tar.bz2
2004-10-30 Andrew Cagney <cagney@gnu.org>
* config/mips/tm-mips.h (MIPS16_INSTLEN, MIPS_NUMREGS) (MIPS_INSTLEN): Delete. * mips-tdep.h (enum mips_insn_size): Rename MIPS32_INSN_SIZE and MIPS16_INSN_SIZE to MIPS_INSN32_SIZE and MIPS_INSN16_SIZE. * remote-mips.c, mips-tdep.c: Update.
Diffstat (limited to 'gdb/mips-tdep.h')
-rw-r--r--gdb/mips-tdep.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/gdb/mips-tdep.h b/gdb/mips-tdep.h
index e90346e..404ec7d 100644
--- a/gdb/mips-tdep.h
+++ b/gdb/mips-tdep.h
@@ -81,11 +81,13 @@ enum
/* Defined in mips-tdep.c and used in remote-mips.c */
extern void deprecated_mips_set_processor_regs_hack (void);
-/* Instruction sizes. */
-enum mips_insn_size
+/* Instruction sizes and other useful constants. */
+enum
{
- MIPS16_INSN_SIZE = 2,
- MIPS32_INSN_SIZE = 4
+ MIPS_INSN16_SIZE = 2,
+ MIPS_INSN32_SIZE = 4,
+ /* The number of floating-point or integer registers. */
+ MIPS_NUMREGS = 32
};
/* Single step based on where the current instruction will take us. */