aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDJ Delorie <dj@redhat.com>2009-05-19 23:31:33 +0000
committerDJ Delorie <dj@redhat.com>2009-05-19 23:31:33 +0000
commitb899d3323df558fe8ffdc393c7af72e66d9621ac (patch)
tree884247314cb013429b6ea11e944f629ec79c332b
parent6551490093fe8f141c073324b2c4387ce93fa712 (diff)
downloadgdb-b899d3323df558fe8ffdc393c7af72e66d9621ac.zip
gdb-b899d3323df558fe8ffdc393c7af72e66d9621ac.tar.gz
gdb-b899d3323df558fe8ffdc393c7af72e66d9621ac.tar.bz2
* config/tc-mep.c (mep_machine): Only check CPU flags, not COP flags.
(mep_process_saved_insns): Remove debugging printfs.
-rw-r--r--gas/ChangeLog5
-rw-r--r--gas/config/tc-mep.c7
2 files changed, 6 insertions, 6 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index 7f4fd56..d9af8b4 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,8 @@
+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.
+
2009-05-19 Dave Korn <dave.korn.cygwin@gmail.com>
* NEWS: Mention new feature.
diff --git a/gas/config/tc-mep.c b/gas/config/tc-mep.c
index 6ad6877..338fdbf 100644
--- a/gas/config/tc-mep.c
+++ b/gas/config/tc-mep.c
@@ -413,7 +413,7 @@ mep_check_for_disabled_registers (mep_insn *insn)
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);