diff options
author | Nick Clifton <nickc@redhat.com> | 2002-05-15 20:54:50 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2002-05-15 20:54:50 +0000 |
commit | a978a3e5d8dec1a24c0851ecf16e241f7a23f946 (patch) | |
tree | df41ce89873e433333215fc9550a1d411a2ab157 /opcodes/m32r-desc.c | |
parent | c899585bc7835ebb2c56947f13ebbfc7ea8e6b7d (diff) | |
download | gdb-a978a3e5d8dec1a24c0851ecf16e241f7a23f946.zip gdb-a978a3e5d8dec1a24c0851ecf16e241f7a23f946.tar.gz gdb-a978a3e5d8dec1a24c0851ecf16e241f7a23f946.tar.bz2 |
Regernate cgen built files.
Diffstat (limited to 'opcodes/m32r-desc.c')
-rw-r--r-- | opcodes/m32r-desc.c | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/opcodes/m32r-desc.c b/opcodes/m32r-desc.c index 4acf720..de7bde4 100644 --- a/opcodes/m32r-desc.c +++ b/opcodes/m32r-desc.c @@ -1441,10 +1441,43 @@ void m32r_cgen_cpu_close (cd) CGEN_CPU_DESC cd; { + unsigned int i; + CGEN_INSN *insns; + + if (cd->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); } |