This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[patch] mep opcodes regen
- From: DJ Delorie <dj at redhat dot com>
- To: binutils at sourceware dot org
- Date: Tue, 19 May 2009 19:35:49 -0400
- Subject: [patch] mep opcodes regen
Committed.
2009-05-19 DJ Delorie <dj@redhat.com>
* mep-asm.c: Regenerate.
* mep-opc.c: Regenerate.
Index: mep-asm.c
===================================================================
RCS file: /cvs/src/src/opcodes/mep-asm.c,v
retrieving revision 1.6
diff -p -U3 -r1.6 mep-asm.c
--- mep-asm.c 30 Apr 2009 21:23:29 -0000 1.6
+++ mep-asm.c 19 May 2009 23:35:19 -0000
@@ -489,7 +489,7 @@ parse_cdisp10 (CGEN_CPU_DESC cd,
break;
}
- if (MEP_CPU == EF_MEP_CPU_C5)
+ if ((MEP_CPU & EF_MEP_CPU_MASK) == EF_MEP_CPU_C5)
wide = 1;
if (strncmp (*strp, "0x0", 3) == 0
Index: mep-opc.c
===================================================================
RCS file: /cvs/src/src/opcodes/mep-opc.c,v
retrieving revision 1.7
diff -p -U3 -r1.7 mep-opc.c
--- mep-opc.c 30 Apr 2009 21:23:29 -0000 1.7
+++ mep-opc.c 19 May 2009 23:35:19 -0000
@@ -91,8 +91,8 @@ mep_insn_supported_by_isa (const CGEN_IN
mep_config_map_struct mep_config_map[] =
{
/* config-map-start */
- /* Default entry: mep core only, all options enabled. */
- { "", 0, EF_MEP_CPU_C5, 1, 0, {1,"\x0"}, {1,"\x0"}, {1,"\x0"}, {1,"\x0"}, {1,"\x0"}, {1,"\x80"}, OPTION_MASK },
+ /* Default entry: first module, with all options enabled. */
+ { "", 0, EF_MEP_COP_IVC2 | EF_MEP_CPU_C5,1, 0, { 1, "\x20" }, { 1, "\x10" }, { 1, "\x8" }, { 1, "\x4" }, { 1, "\x3c" }, { 1, "\xc0" }, OPTION_MASK | (1 << CGEN_INSN_OPTIONAL_DSP_INSN) | (1 << CGEN_INSN_OPTIONAL_UCI_INSN) },
{ "default", CONFIG_DEFAULT, EF_MEP_COP_IVC2 | EF_MEP_CPU_C5, 0, 64, { 1, "\x20" }, { 1, "\x10" }, { 1, "\x8" }, { 1, "\x4" }, { 1, "\x3c" }, { 1, "\xc0" },
0
| (1 << CGEN_INSN_OPTIONAL_CP_INSN)
@@ -117,7 +117,7 @@ check_configured_mach (int machs)
{
/* All base insns are supported. */
int mach = 1 << MACH_BASE;
- switch (MEP_CPU)
+ switch (MEP_CPU & EF_MEP_CPU_MASK)
{
case EF_MEP_CPU_C2:
case EF_MEP_CPU_C3: