aboutsummaryrefslogtreecommitdiff
path: root/opcodes/cgen-dis.in
diff options
context:
space:
mode:
authorDoug Evans <dje@google.com>1998-02-12 03:13:21 +0000
committerDoug Evans <dje@google.com>1998-02-12 03:13:21 +0000
commitab0bd0493ad0dbb544fec8f46b03a0887c594bec (patch)
tree704bb265a3b05386c9228931a03cd0a8e706e3e9 /opcodes/cgen-dis.in
parente0bd6e186c1523ae7c8e9719d4b3bf84c590d76b (diff)
downloadgdb-ab0bd0493ad0dbb544fec8f46b03a0887c594bec.zip
gdb-ab0bd0493ad0dbb544fec8f46b03a0887c594bec.tar.gz
gdb-ab0bd0493ad0dbb544fec8f46b03a0887c594bec.tar.bz2
* cgen-opc.in: New file.
* cgen.sh: Translate @ARCH@. Cat cgen-opc.in into @arch@-opc.c. * Makefile.am (CGENFILES): Add cgen-opc.in. * Makefile.in: Regenerate. * cgen-opc.c (cgen_set_cpu): Delete init of hw list `next' chain. (cgen_hw_lookup): Make result const. * cgen-dis.in (*): Use PTR instead of void *. (print_insn): Delete unused vars `i', `syntax'. * m32r-opc.h, m32r-opc.c, m32r-asm.c, m32r-dis.c: Regenerate.
Diffstat (limited to 'opcodes/cgen-dis.in')
-rw-r--r--opcodes/cgen-dis.in16
1 files changed, 7 insertions, 9 deletions
diff --git a/opcodes/cgen-dis.in b/opcodes/cgen-dis.in
index af3dfc6..0724b44 100644
--- a/opcodes/cgen-dis.in
+++ b/opcodes/cgen-dis.in
@@ -57,7 +57,7 @@ static void print_insn_normal
static int
extract_normal (buf_ctrl, insn_value, attrs, start, length, shift, total_length, valuep)
- void *buf_ctrl;
+ PTR buf_ctrl;
cgen_insn_t insn_value;
unsigned int attrs;
int start, length, shift, total_length;
@@ -94,7 +94,7 @@ extract_normal (buf_ctrl, insn_value, attrs, start, length, shift, total_length,
static void
print_normal (dis_info, value, attrs, pc, length)
- void *dis_info;
+ PTR dis_info;
long value;
unsigned int attrs;
unsigned long pc; /* FIXME: should be bfd_vma */
@@ -121,7 +121,7 @@ print_normal (dis_info, value, attrs, pc, length)
static void
print_keyword (dis_info, keyword_table, value, attrs)
- void *dis_info;
+ PTR dis_info;
CGEN_KEYWORD *keyword_table;
long value;
CGEN_ATTR *attrs;
@@ -147,7 +147,7 @@ print_keyword (dis_info, keyword_table, value, attrs)
static int
extract_insn_normal (insn, buf_ctrl, insn_value, fields)
const CGEN_INSN *insn;
- void *buf_ctrl;
+ PTR buf_ctrl;
cgen_insn_t insn_value;
CGEN_FIELDS *fields;
{
@@ -177,13 +177,13 @@ extract_insn_normal (insn, buf_ctrl, insn_value, fields)
/* Default insn printer.
- DIS_INFO is defined as `void *' so the disassembler needn't know anything
+ DIS_INFO is defined as `PTR' so the disassembler needn't know anything
about disassemble_info.
*/
static void
print_insn_normal (dis_info, insn, fields, pc, length)
- void *dis_info;
+ PTR dis_info;
const CGEN_INSN *insn;
CGEN_FIELDS *fields;
bfd_vma pc;
@@ -215,7 +215,7 @@ print_insn_normal (dis_info, insn, fields, pc, length)
}
/* Default value for CGEN_PRINT_INSN.
- Given BUFLEN bytes (target byte order) read into BUF, look up the
+ Given BUFLEN bits (target byte order) read into BUF, look up the
insn in the instruction table and disassemble it.
The result is the size of the insn in bytes. */
@@ -231,7 +231,6 @@ print_insn (pc, info, buf, buflen)
char *buf;
int buflen;
{
- int i;
unsigned long insn_value;
const CGEN_INSN_LIST *insn_list;
@@ -257,7 +256,6 @@ print_insn (pc, info, buf, buflen)
while (insn_list != NULL)
{
const CGEN_INSN *insn = insn_list->insn;
- const CGEN_SYNTAX *syntax = CGEN_INSN_SYNTAX (insn);
CGEN_FIELDS fields;
int length;