* [PATCH] Use $cc instead of $fcc for non-FP coprocessor registers
@ 2006-04-28 13:52 Thiemo Seufer
2006-04-28 17:59 ` Thiemo Seufer
0 siblings, 1 reply; 2+ messages in thread
From: Thiemo Seufer @ 2006-04-28 13:52 UTC (permalink / raw)
To: binutils
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;
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] Use $cc instead of $fcc for non-FP coprocessor registers
2006-04-28 13:52 [PATCH] Use $cc instead of $fcc for non-FP coprocessor registers Thiemo Seufer
@ 2006-04-28 17:59 ` Thiemo Seufer
0 siblings, 0 replies; 2+ messages in thread
From: Thiemo Seufer @ 2006-04-28 17:59 UTC (permalink / raw)
To: binutils
Thiemo Seufer wrote:
> Hello All,
>
> I committed the appended patch, it changes the disassembler output of
> coprocessor registers used by non-FP instructions from $fcc to $cc.
... and it needs an additional function argument.
Thiemo
2006-04-28 Thiemo Seufer <ths@mips.com>
Nigel Stevens <nigel@mips.com>
David Ung <davidu@mips.com>
* mips-dis.c (print_insn_args): Add mips_opcode argument.
(print_insn_mips): Adjust print_insn_args call.
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
@@ -688,7 +714,8 @@ static void
print_insn_args (const char *d,
register unsigned long int l,
bfd_vma pc,
- struct disassemble_info *info)
+ struct disassemble_info *info,
+ const struct mips_opcode *opp)
{
int op, delta;
unsigned int lsb, msb, msbd;
@@ -1247,7 +1280,7 @@ print_insn_mips (bfd_vma memaddr,
if (d != NULL && *d != '\0')
{
(*info->fprintf_func) (info->stream, "\t");
- print_insn_args (d, word, memaddr, info);
+ print_insn_args (d, word, memaddr, info, op);
}
return INSNLEN;
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-04-28 12:58 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-04-28 13:52 [PATCH] Use $cc instead of $fcc for non-FP coprocessor registers Thiemo Seufer
2006-04-28 17:59 ` Thiemo Seufer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).