aboutsummaryrefslogtreecommitdiff
path: root/cpu/iq2000.opc
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2004-05-15 13:10:30 +0000
committerNick Clifton <nickc@redhat.com>2004-05-15 13:10:30 +0000
commitdc4c54bbd941f793740f49afdec3c70bb0a84ece (patch)
tree1c2d64e3c36593fd6fcbf3f0c27b2b72c743d620 /cpu/iq2000.opc
parent773df3e50eb03ab9b114698cd28df4c58f1e3ef0 (diff)
downloadgdb-dc4c54bbd941f793740f49afdec3c70bb0a84ece.zip
gdb-dc4c54bbd941f793740f49afdec3c70bb0a84ece.tar.gz
gdb-dc4c54bbd941f793740f49afdec3c70bb0a84ece.tar.bz2
Make 'insn' argument of iq2000_cgen_insn_supported be const.
Diffstat (limited to 'cpu/iq2000.opc')
-rw-r--r--cpu/iq2000.opc6
1 files changed, 3 insertions, 3 deletions
diff --git a/cpu/iq2000.opc b/cpu/iq2000.opc
index 06600ec..3b7620f 100644
--- a/cpu/iq2000.opc
+++ b/cpu/iq2000.opc
@@ -52,7 +52,7 @@
instructions have same mnemonics but different functionality. */
#define CGEN_VALIDATE_INSN_SUPPORTED
-extern int iq2000_cgen_insn_supported (CGEN_CPU_DESC cd, CGEN_INSN *insn);
+extern int iq2000_cgen_insn_supported (CGEN_CPU_DESC cd, const CGEN_INSN *insn);
/* -- asm.c */
static const char * parse_mimm PARAMS ((CGEN_CPU_DESC, const char **, int, long *));
@@ -60,11 +60,11 @@ static const char * parse_imm PARAMS ((CGEN_CPU_DESC, const char **, int, unsig
static const char * parse_hi16 PARAMS ((CGEN_CPU_DESC, const char **, int, unsigned long *));
static const char * parse_lo16 PARAMS ((CGEN_CPU_DESC, const char **, int, long *));
-/* Special check to ensure that instruction exists for given machine */
+/* Special check to ensure that instruction exists for given machine. */
int
iq2000_cgen_insn_supported (cd, insn)
CGEN_CPU_DESC cd;
- CGEN_INSN *insn;
+ const CGEN_INSN *insn;
{
int machs = cd->machs;