X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=opcodes%2Fxstormy16-desc.c;h=1c94fd7d853159f4fca818444ac61b4a6838f400;hb=22a398e1906e55c453f561070206acb80daf91f1;hp=5d22acdcf6005c507d9f80db3f356dd9ccac4f78;hpb=93fbbb04b887de8b1e56bf3de66581082d2b0e8b;p=deliverable%2Fbinutils-gdb.git diff --git a/opcodes/xstormy16-desc.c b/opcodes/xstormy16-desc.c index 5d22acdcf6..1c94fd7d85 100644 --- a/opcodes/xstormy16-desc.c +++ b/opcodes/xstormy16-desc.c @@ -2,7 +2,7 @@ THIS FILE IS MACHINE GENERATED WITH CGEN. -Copyright 1996, 1997, 1998, 1999, 2000, 2001 Free Software Foundation, Inc. +Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc. This file is part of the GNU Binutils and/or GDB, the GNU debugger. @@ -32,6 +32,7 @@ with this program; if not, write to the Free Software Foundation, Inc., #include "xstormy16-opc.h" #include "opintl.h" #include "libiberty.h" +#include "xregex.h" /* Attributes. */ @@ -103,7 +104,7 @@ const CGEN_ATTR_TABLE xstormy16_cgen_insn_attr_table[] = { "SKIP-CTI", &bool_attr[0], &bool_attr[0] }, { "DELAY-SLOT", &bool_attr[0], &bool_attr[0] }, { "RELAXABLE", &bool_attr[0], &bool_attr[0] }, - { "RELAX", &bool_attr[0], &bool_attr[0] }, + { "RELAXED", &bool_attr[0], &bool_attr[0] }, { "NO-DIS", &bool_attr[0], &bool_attr[0] }, { "PBB", &bool_attr[0], &bool_attr[0] }, { 0, 0, 0 } @@ -152,16 +153,24 @@ CGEN_KEYWORD xstormy16_cgen_opval_gr_names = 0, 0, 0, 0, "" }; -static CGEN_KEYWORD_ENTRY xstormy16_cgen_opval_gr_Rbj_names_entries[] = +static CGEN_KEYWORD_ENTRY xstormy16_cgen_opval_gr_Rb_names_entries[] = { { "r8", 0, {0, {0}}, 0, 0 }, - { "r9", 1, {0, {0}}, 0, 0 } + { "r9", 1, {0, {0}}, 0, 0 }, + { "r10", 2, {0, {0}}, 0, 0 }, + { "r11", 3, {0, {0}}, 0, 0 }, + { "r12", 4, {0, {0}}, 0, 0 }, + { "r13", 5, {0, {0}}, 0, 0 }, + { "r14", 6, {0, {0}}, 0, 0 }, + { "r15", 7, {0, {0}}, 0, 0 }, + { "psw", 6, {0, {0}}, 0, 0 }, + { "sp", 7, {0, {0}}, 0, 0 } }; -CGEN_KEYWORD xstormy16_cgen_opval_gr_Rbj_names = +CGEN_KEYWORD xstormy16_cgen_opval_gr_Rb_names = { - & xstormy16_cgen_opval_gr_Rbj_names_entries[0], - 2, + & xstormy16_cgen_opval_gr_Rb_names_entries[0], + 10, 0, 0, 0, 0, "" }; @@ -224,7 +233,8 @@ const CGEN_HW_ENTRY xstormy16_cgen_hw_table[] = { "h-iaddr", HW_H_IADDR, CGEN_ASM_NONE, 0, { 0, { (1<macro_insn_table.init_entries) + { + insns = cd->macro_insn_table.init_entries; + for (i = 0; i < cd->macro_insn_table.num_init_entries; ++i, ++insns) + { + if (CGEN_INSN_RX ((insns))) + regfree (CGEN_INSN_RX (insns)); + } + } + + if (cd->insn_table.init_entries) + { + insns = cd->insn_table.init_entries; + for (i = 0; i < cd->insn_table.num_init_entries; ++i, ++insns) + { + if (CGEN_INSN_RX (insns)) + regfree (CGEN_INSN_RX (insns)); + } + } + + + + if (cd->macro_insn_table.init_entries) + free ((CGEN_INSN *) cd->macro_insn_table.init_entries); + if (cd->insn_table.init_entries) free ((CGEN_INSN *) cd->insn_table.init_entries); + if (cd->hw_table.entries) free ((CGEN_HW_ENTRY *) cd->hw_table.entries); + + if (cd->operand_table.entries) + free ((CGEN_HW_ENTRY *) cd->operand_table.entries); + free (cd); }