Skip to content

Commit ffead7a

Browse files
author
Michael Meissner
committed
regenerate cgen files after prototype fix
1 parent af2bbf6 commit ffead7a

22 files changed

Lines changed: 911 additions & 994 deletions

opcodes/ChangeLog

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,28 @@
9494
(extract_normal): Ditto.
9595
(extract_insn_normal): Ditto.
9696

97+
* fr30-asm.c: Regenerate.
98+
* fr30-dis.c: Ditto.
99+
* fr30-ibld.c: Ditto.
100+
* frv-asm.c: Regenerate.
101+
* frv-dis.c: Ditto.
102+
* frv-ibld.c: Ditto.
103+
* ip2k-asm.c: Regenerate.
104+
* ip2k-dis.c: Ditto.
105+
* ip2k-ibld.c: Ditto.
106+
* iq2000-asm.c: Regenerate.
107+
* iq2000-dis.c: Ditto.
108+
* iq2000-ibld.c: Ditto.
109+
* m32r-asm.c: Regenerate.
110+
* m32r-dis.c: Ditto.
111+
* m32r-ibld.c: Ditto.
112+
* openrisc-asm.c: Regenerate.
113+
* openrisc-dis.c: Ditto.
114+
* openrisc-ibld.c: Ditto.
115+
* xstormy16-asm.c: Regenerate.
116+
* xstormy16-dis.c: Ditto.
117+
* xstormy16-ibld.c: Ditto.
118+
97119
2003-08-06 Nick Clifton <[email protected]>
98120

99121
* po/fr.po: Updated French translation.

opcodes/fr30-asm.c

Lines changed: 12 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ along with this program; if not, write to the Free Software Foundation, Inc.,
4343
#define max(a,b) ((a) > (b) ? (a) : (b))
4444

4545
static const char * parse_insn_normal
46-
PARAMS ((CGEN_CPU_DESC, const CGEN_INSN *, const char **, CGEN_FIELDS *));
46+
(CGEN_CPU_DESC, const CGEN_INSN *, const char **, CGEN_FIELDS *);
4747

4848
/* -- assembler routines inserted here. */
4949

@@ -356,8 +356,7 @@ fr30_cgen_init_asm (cd)
356356
Returns NULL for success, an error message for failure. */
357357

358358
char *
359-
fr30_cgen_build_insn_regex (insn)
360-
CGEN_INSN *insn;
359+
fr30_cgen_build_insn_regex (CGEN_INSN *insn)
361360
{
362361
CGEN_OPCODE *opc = (CGEN_OPCODE *) CGEN_INSN_OPCODE (insn);
363362
const char *mnem = CGEN_INSN_MNEMONIC (insn);
@@ -480,11 +479,10 @@ fr30_cgen_build_insn_regex (insn)
480479
Returns NULL for success, an error message for failure. */
481480

482481
static const char *
483-
parse_insn_normal (cd, insn, strp, fields)
484-
CGEN_CPU_DESC cd;
485-
const CGEN_INSN *insn;
486-
const char **strp;
487-
CGEN_FIELDS *fields;
482+
parse_insn_normal (CGEN_CPU_DESC cd,
483+
const CGEN_INSN *insn,
484+
const char **strp,
485+
CGEN_FIELDS *fields)
488486
{
489487
/* ??? Runtime added insns not handled yet. */
490488
const CGEN_SYNTAX *syntax = CGEN_INSN_SYNTAX (insn);
@@ -622,12 +620,11 @@ parse_insn_normal (cd, insn, strp, fields)
622620
mind helps keep the design clean. */
623621

624622
const CGEN_INSN *
625-
fr30_cgen_assemble_insn (cd, str, fields, buf, errmsg)
626-
CGEN_CPU_DESC cd;
627-
const char *str;
628-
CGEN_FIELDS *fields;
629-
CGEN_INSN_BYTES_PTR buf;
630-
char **errmsg;
623+
fr30_cgen_assemble_insn (CGEN_CPU_DESC cd,
624+
const char *str,
625+
CGEN_FIELDS *fields,
626+
CGEN_INSN_BYTES_PTR buf,
627+
char **errmsg)
631628
{
632629
const char *start;
633630
CGEN_INSN_LIST *ilist;
@@ -731,9 +728,7 @@ fr30_cgen_assemble_insn (cd, str, fields, buf, errmsg)
731728
FIXME: Not currently used. */
732729

733730
void
734-
fr30_cgen_asm_hash_keywords (cd, opvals)
735-
CGEN_CPU_DESC cd;
736-
CGEN_KEYWORD *opvals;
731+
fr30_cgen_asm_hash_keywords (CGEN_CPU_DESC cd, CGEN_KEYWORD *opvals)
737732
{
738733
CGEN_KEYWORD_SEARCH search = cgen_keyword_search_init (opvals, NULL);
739734
const CGEN_KEYWORD_ENTRY * ke;

opcodes/fr30-dis.c

Lines changed: 46 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -41,21 +41,20 @@ along with this program; if not, write to the Free Software Foundation, Inc.,
4141
#define UNKNOWN_INSN_MSG _("*unknown*")
4242

4343
static void print_normal
44-
PARAMS ((CGEN_CPU_DESC, PTR, long, unsigned int, bfd_vma, int));
44+
(CGEN_CPU_DESC, void *, long, unsigned int, bfd_vma, int);
4545
static void print_address
46-
PARAMS ((CGEN_CPU_DESC, PTR, bfd_vma, unsigned int, bfd_vma, int));
46+
(CGEN_CPU_DESC, void *, bfd_vma, unsigned int, bfd_vma, int);
4747
static void print_keyword
48-
PARAMS ((CGEN_CPU_DESC, PTR, CGEN_KEYWORD *, long, unsigned int));
48+
(CGEN_CPU_DESC, void *, CGEN_KEYWORD *, long, unsigned int);
4949
static void print_insn_normal
50-
PARAMS ((CGEN_CPU_DESC, PTR, const CGEN_INSN *, CGEN_FIELDS *,
51-
bfd_vma, int));
50+
(CGEN_CPU_DESC, void *, const CGEN_INSN *, CGEN_FIELDS *, bfd_vma, int);
5251
static int print_insn
53-
PARAMS ((CGEN_CPU_DESC, bfd_vma, disassemble_info *, char *, unsigned));
52+
(CGEN_CPU_DESC, bfd_vma, disassemble_info *, char *, unsigned);
5453
static int default_print_insn
55-
PARAMS ((CGEN_CPU_DESC, bfd_vma, disassemble_info *));
54+
(CGEN_CPU_DESC, bfd_vma, disassemble_info *);
5655
static int read_insn
57-
PARAMS ((CGEN_CPU_DESC, bfd_vma, disassemble_info *, char *, int,
58-
CGEN_EXTRACT_INFO *, unsigned long *));
56+
(CGEN_CPU_DESC, bfd_vma, disassemble_info *, char *, int, CGEN_EXTRACT_INFO *,
57+
unsigned long *);
5958

6059
/* -- disassembler routines inserted here */
6160

@@ -343,13 +342,12 @@ fr30_cgen_init_dis (cd)
343342
/* Default print handler. */
344343

345344
static void
346-
print_normal (cd, dis_info, value, attrs, pc, length)
347-
CGEN_CPU_DESC cd ATTRIBUTE_UNUSED;
348-
PTR dis_info;
349-
long value;
350-
unsigned int attrs;
351-
bfd_vma pc ATTRIBUTE_UNUSED;
352-
int length ATTRIBUTE_UNUSED;
345+
print_normal (CGEN_CPU_DESC cd ATTRIBUTE_UNUSED,
346+
void *dis_info,
347+
long value,
348+
unsigned int attrs,
349+
bfd_vma pc ATTRIBUTE_UNUSED,
350+
int length ATTRIBUTE_UNUSED)
353351
{
354352
disassemble_info *info = (disassemble_info *) dis_info;
355353

@@ -369,13 +367,12 @@ print_normal (cd, dis_info, value, attrs, pc, length)
369367
/* Default address handler. */
370368

371369
static void
372-
print_address (cd, dis_info, value, attrs, pc, length)
373-
CGEN_CPU_DESC cd ATTRIBUTE_UNUSED;
374-
PTR dis_info;
375-
bfd_vma value;
376-
unsigned int attrs;
377-
bfd_vma pc ATTRIBUTE_UNUSED;
378-
int length ATTRIBUTE_UNUSED;
370+
print_address (CGEN_CPU_DESC cd ATTRIBUTE_UNUSED,
371+
void *dis_info,
372+
bfd_vma value,
373+
unsigned int attrs,
374+
bfd_vma pc ATTRIBUTE_UNUSED,
375+
int length ATTRIBUTE_UNUSED)
379376
{
380377
disassemble_info *info = (disassemble_info *) dis_info;
381378

@@ -399,12 +396,11 @@ print_address (cd, dis_info, value, attrs, pc, length)
399396
/* Keyword print handler. */
400397

401398
static void
402-
print_keyword (cd, dis_info, keyword_table, value, attrs)
403-
CGEN_CPU_DESC cd ATTRIBUTE_UNUSED;
404-
PTR dis_info;
405-
CGEN_KEYWORD *keyword_table;
406-
long value;
407-
unsigned int attrs ATTRIBUTE_UNUSED;
399+
print_keyword (CGEN_CPU_DESC cd ATTRIBUTE_UNUSED,
400+
void *dis_info,
401+
CGEN_KEYWORD *keyword_table,
402+
long value,
403+
unsigned int attrs ATTRIBUTE_UNUSED)
408404
{
409405
disassemble_info *info = (disassemble_info *) dis_info;
410406
const CGEN_KEYWORD_ENTRY *ke;
@@ -418,17 +414,16 @@ print_keyword (cd, dis_info, keyword_table, value, attrs)
418414

419415
/* Default insn printer.
420416
421-
DIS_INFO is defined as `PTR' so the disassembler needn't know anything
417+
DIS_INFO is defined as `void *' so the disassembler needn't know anything
422418
about disassemble_info. */
423419

424420
static void
425-
print_insn_normal (cd, dis_info, insn, fields, pc, length)
426-
CGEN_CPU_DESC cd;
427-
PTR dis_info;
428-
const CGEN_INSN *insn;
429-
CGEN_FIELDS *fields;
430-
bfd_vma pc;
431-
int length;
421+
print_insn_normal (CGEN_CPU_DESC cd,
422+
void *dis_info,
423+
const CGEN_INSN *insn,
424+
CGEN_FIELDS *fields,
425+
bfd_vma pc,
426+
int length)
432427
{
433428
const CGEN_SYNTAX *syntax = CGEN_INSN_SYNTAX (insn);
434429
disassemble_info *info = (disassemble_info *) dis_info;
@@ -460,14 +455,13 @@ print_insn_normal (cd, dis_info, insn, fields, pc, length)
460455
Returns 0 if all is well, non-zero otherwise. */
461456

462457
static int
463-
read_insn (cd, pc, info, buf, buflen, ex_info, insn_value)
464-
CGEN_CPU_DESC cd ATTRIBUTE_UNUSED;
465-
bfd_vma pc;
466-
disassemble_info *info;
467-
char *buf;
468-
int buflen;
469-
CGEN_EXTRACT_INFO *ex_info;
470-
unsigned long *insn_value;
458+
read_insn (CGEN_CPU_DESC cd ATTRIBUTE_UNUSED,
459+
bfd_vma pc,
460+
disassemble_info *info,
461+
char *buf,
462+
int buflen,
463+
CGEN_EXTRACT_INFO *ex_info,
464+
unsigned long *insn_value)
471465
{
472466
int status = (*info->read_memory_func) (pc, buf, buflen, info);
473467
if (status != 0)
@@ -491,12 +485,11 @@ read_insn (cd, pc, info, buf, buflen, ex_info, insn_value)
491485
been called). */
492486

493487
static int
494-
print_insn (cd, pc, info, buf, buflen)
495-
CGEN_CPU_DESC cd;
496-
bfd_vma pc;
497-
disassemble_info *info;
498-
char *buf;
499-
unsigned int buflen;
488+
print_insn (CGEN_CPU_DESC cd,
489+
bfd_vma pc,
490+
disassemble_info *info,
491+
char *buf,
492+
unsigned int buflen)
500493
{
501494
CGEN_INSN_INT insn_value;
502495
const CGEN_INSN_LIST *insn_list;
@@ -601,10 +594,7 @@ print_insn (cd, pc, info, buf, buflen)
601594
#endif
602595

603596
static int
604-
default_print_insn (cd, pc, info)
605-
CGEN_CPU_DESC cd;
606-
bfd_vma pc;
607-
disassemble_info *info;
597+
default_print_insn (CGEN_CPU_DESC cd, bfd_vma pc, disassemble_info *info)
608598
{
609599
char buf[CGEN_MAX_INSN_SIZE];
610600
int buflen;
@@ -643,9 +633,7 @@ typedef struct cpu_desc_list {
643633
} cpu_desc_list;
644634

645635
int
646-
print_insn_fr30 (pc, info)
647-
bfd_vma pc;
648-
disassemble_info *info;
636+
print_insn_fr30 (bfd_vma pc, disassemble_info *info)
649637
{
650638
static cpu_desc_list *cd_list = 0;
651639
cpu_desc_list *cl = 0;

0 commit comments

Comments
 (0)