This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[PATCH] Use $cc instead of $fcc for non-FP coprocessor registers
- From: Thiemo Seufer <ths at networkno dot de>
- To: binutils at sourceware dot org
- Date: Fri, 28 Apr 2006 13:22:23 +0100
- Subject: [PATCH] Use $cc instead of $fcc for non-FP coprocessor registers
Hello All,
I committed the appended patch, it changes the disassembler output of
coprocessor registers used by non-FP instructions from $fcc to $cc.
Thiemo
2006-04-28 Thiemo Seufer <ths@mips.com>
Nigel Stevens <nigel@mips.com>
* mips-dis.c (print_insn_args): Print $fcc only for FP
instructions, use $cc elsewise.
Index: opcodes/mips-dis.c
===================================================================
RCS file: /cvs/src/src/opcodes/mips-dis.c,v
retrieving revision 1.55
diff -u -p -r1.55 mips-dis.c
--- opcodes/mips-dis.c 14 Nov 2005 02:25:39 -0000 1.55
+++ opcodes/mips-dis.c 27 Apr 2006 12:53:39 -0000
@@ -1069,7 +1100,9 @@ print_insn_args (const char *d,
break;
case 'N':
- (*info->fprintf_func) (info->stream, "$fcc%ld",
+ (*info->fprintf_func) (info->stream,
+ ((opp->pinfo & (FP_D | FP_S)) != 0
+ ? "$fcc%ld" : "$cc%ld"),
(l >> OP_SH_BCC) & OP_MASK_BCC);
break;