diff options
author | Alan Modra <amodra@gmail.com> | 2002-12-02 21:58:19 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2002-12-02 21:58:19 +0000 |
commit | 98f70fc4f028bc7399345947077e733e1feddb55 (patch) | |
tree | e7fea9c6ca588c2d7861260a00fb8aad73dbeb90 /opcodes/ip2k-desc.c | |
parent | 4fdf0a751a935351f70e4167c48fe10529a8c287 (diff) | |
download | fsf-binutils-gdb-98f70fc4f028bc7399345947077e733e1feddb55.zip fsf-binutils-gdb-98f70fc4f028bc7399345947077e733e1feddb55.tar.gz fsf-binutils-gdb-98f70fc4f028bc7399345947077e733e1feddb55.tar.bz2 |
* cgen-dis.in: Include libiberty.h.
* fr30-desc.c: Regenerate.
* fr30-dis.c: Regenerate.
* frv-desc.c: Regenerate.
* frv-dis.c: Regenerate.
* ip2k-asm.c: Regenerate.
* ip2k-desc.c: Regenerate.
* ip2k-dis.c: Regenerate.
* ip2k-opc.c: Regenerate.
* ip2k-opc.h: Regenerate.
* m32r-desc.c: Regenerate.
* m32r-dis.c: Regenerate.
* openrisc-desc.c: Regenerate.
* openrisc-dis.c: Regenerate.
* xstormy16-asm.c: Regenerate.
* xstormy16-desc.c: Regenerate.
* xstormy16-dis.c: Regenerate.
Diffstat (limited to 'opcodes/ip2k-desc.c')
-rw-r--r-- | opcodes/ip2k-desc.c | 38 |
1 files changed, 21 insertions, 17 deletions
diff --git a/opcodes/ip2k-desc.c b/opcodes/ip2k-desc.c index a676e77..ab6f7bf 100644 --- a/opcodes/ip2k-desc.c +++ b/opcodes/ip2k-desc.c @@ -32,6 +32,7 @@ with this program; if not, write to the Free Software Foundation, Inc., #include "ip2k-opc.h" #include "opintl.h" #include "libiberty.h" +#include "xregex.h" /* Attributes. */ @@ -347,57 +348,60 @@ const CGEN_OPERAND ip2k_cgen_operand_table[] = { /* pc: program counter */ { "pc", IP2K_OPERAND_PC, HW_H_PC, 0, 0, - { 0, &(ip2k_cgen_ifld_table[0]) }, + { 0, { (const PTR) &ip2k_cgen_ifld_table[0] } }, { 0|A(SEM_ONLY), { (1<<MACH_BASE) } } }, /* addr16cjp: 13-bit address */ { "addr16cjp", IP2K_OPERAND_ADDR16CJP, HW_H_UINT, 12, 13, - { 0, &(ip2k_cgen_ifld_table[4]) }, + { 0, { (const PTR) &ip2k_cgen_ifld_table[4] } }, { 0|A(ABS_ADDR), { (1<<MACH_BASE) } } }, /* fr: register */ { "fr", IP2K_OPERAND_FR, HW_H_REGISTERS, 8, 9, - { 0, &(ip2k_cgen_ifld_table[3]) }, + { 0, { (const PTR) &ip2k_cgen_ifld_table[3] } }, { 0|A(ABS_ADDR), { (1<<MACH_BASE) } } }, /* lit8: 8-bit signed literal */ { "lit8", IP2K_OPERAND_LIT8, HW_H_SINT, 7, 8, - { 0, &(ip2k_cgen_ifld_table[2]) }, + { 0, { (const PTR) &ip2k_cgen_ifld_table[2] } }, { 0, { (1<<MACH_BASE) } } }, /* bitno: bit number */ { "bitno", IP2K_OPERAND_BITNO, HW_H_UINT, 11, 3, - { 0, &(ip2k_cgen_ifld_table[6]) }, + { 0, { (const PTR) &ip2k_cgen_ifld_table[6] } }, { 0, { (1<<MACH_BASE) } } }, /* addr16p: page number */ { "addr16p", IP2K_OPERAND_ADDR16P, HW_H_UINT, 2, 3, - { 0, &(ip2k_cgen_ifld_table[16]) }, + { 0, { (const PTR) &ip2k_cgen_ifld_table[16] } }, { 0, { (1<<MACH_BASE) } } }, /* addr16h: high 8 bits of address */ { "addr16h", IP2K_OPERAND_ADDR16H, HW_H_UINT, 7, 8, - { 0, &(ip2k_cgen_ifld_table[2]) }, + { 0, { (const PTR) &ip2k_cgen_ifld_table[2] } }, { 0, { (1<<MACH_BASE) } } }, /* addr16l: low 8 bits of address */ { "addr16l", IP2K_OPERAND_ADDR16L, HW_H_UINT, 7, 8, - { 0, &(ip2k_cgen_ifld_table[2]) }, + { 0, { (const PTR) &ip2k_cgen_ifld_table[2] } }, { 0, { (1<<MACH_BASE) } } }, /* reti3: reti flags */ { "reti3", IP2K_OPERAND_RETI3, HW_H_UINT, 2, 3, - { 0, &(ip2k_cgen_ifld_table[14]) }, + { 0, { (const PTR) &ip2k_cgen_ifld_table[14] } }, { 0, { (1<<MACH_BASE) } } }, /* pabits: page bits */ { "pabits", IP2K_OPERAND_PABITS, HW_H_PABITS, 0, 0, - { 0, 0 }, + { 0, { (const PTR) 0 } }, { 0, { (1<<MACH_BASE) } } }, /* zbit: zero bit */ { "zbit", IP2K_OPERAND_ZBIT, HW_H_ZBIT, 0, 0, - { 0, 0 }, + { 0, { (const PTR) 0 } }, { 0, { (1<<MACH_BASE) } } }, /* cbit: carry bit */ { "cbit", IP2K_OPERAND_CBIT, HW_H_CBIT, 0, 0, - { 0, 0 }, + { 0, { (const PTR) 0 } }, { 0, { (1<<MACH_BASE) } } }, /* dcbit: digit carry bit */ { "dcbit", IP2K_OPERAND_DCBIT, HW_H_DCBIT, 0, 0, - { 0, 0 }, + { 0, { (const PTR) 0 } }, { 0, { (1<<MACH_BASE) } } }, - { 0, 0, 0, 0, 0, {0, {0}} } +/* sentinel */ + { 0, 0, 0, 0, 0, + { 0, { (const PTR) 0 } }, + { 0, { 0 } } } }; #undef A @@ -1178,7 +1182,7 @@ ip2k_cgen_cpu_close (cd) CGEN_CPU_DESC cd; { unsigned int i; - CGEN_INSN *insns; + const CGEN_INSN *insns; if (cd->macro_insn_table.init_entries) { @@ -1186,7 +1190,7 @@ ip2k_cgen_cpu_close (cd) for (i = 0; i < cd->macro_insn_table.num_init_entries; ++i, ++insns) { if (CGEN_INSN_RX ((insns))) - regfree(CGEN_INSN_RX (insns)); + regfree (CGEN_INSN_RX (insns)); } } @@ -1196,7 +1200,7 @@ ip2k_cgen_cpu_close (cd) for (i = 0; i < cd->insn_table.num_init_entries; ++i, ++insns) { if (CGEN_INSN_RX (insns)) - regfree(CGEN_INSN_RX (insns)); + regfree (CGEN_INSN_RX (insns)); } } |