This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[patch] fix MeP CPU detection
- From: DJ Delorie <dj at redhat dot com>
- To: binutils at sourceware dot org
- Date: Tue, 19 May 2009 19:31:35 -0400
- Subject: [patch] fix MeP CPU detection
Committed.
2009-05-19 DJ Delorie <dj@redhat.com>
* config/tc-mep.c (mep_machine): Only check CPU flags, not COP flags.
(mep_process_saved_insns): Remove debugging printfs.
Index: config/tc-mep.c
===================================================================
RCS file: /cvs/src/src/gas/config/tc-mep.c,v
retrieving revision 1.6
diff -p -U3 -r1.6 config/tc-mep.c
--- config/tc-mep.c 30 Apr 2009 21:23:30 -0000 1.6
+++ config/tc-mep.c 19 May 2009 23:28:43 -0000
@@ -413,7 +413,7 @@ mep_check_for_disabled_registers (mep_in
static int
mep_machine (void)
{
- switch (MEP_CPU)
+ switch (MEP_CPU & EF_MEP_CPU_MASK)
{
default: break;
case EF_MEP_CPU_C2: return bfd_mach_mep;
@@ -1144,7 +1144,6 @@ static void
mep_process_saved_insns (void)
{
int i;
- unsigned j;
gas_cgen_save_fixups (MAX_SAVED_FIXUP_CHAINS - 1);
@@ -1164,10 +1163,6 @@ mep_process_saved_insns (void)
gas_cgen_finish_insn (saved_insns[i].insn, saved_insns[i].buffer,
CGEN_FIELDS_BITSIZE (& saved_insns[i].fields),
1, NULL);
- printf("insn[%d] =", i);
- for (j=0; j<sizeof(saved_insns[i].buffer); j++)
- printf(" %02x", saved_insns[i].buffer[j]);
- printf("\n");
}
}
gas_cgen_restore_fixups (MAX_SAVED_FIXUP_CHAINS - 1);