summaryrefslogtreecommitdiff
path: root/opcodes/mips-dis.c
diff options
context:
space:
mode:
authorThiemo Seufer <ths@networkno.de>2006-04-28 12:19:31 +0000
committerThiemo Seufer <ths@networkno.de>2006-04-28 12:19:31 +0000
commit9ec77d2dabc9dff0aded3e4158b305731e83991a (patch)
treeee83fbf9d780a57312fea3521e54fd1e36749fe8 /opcodes/mips-dis.c
parent4d5dc3f4ff0b2c4399d65aee1893f6dabd9f414e (diff)
downloadgdb-9ec77d2dabc9dff0aded3e4158b305731e83991a.tar.gz
* mips-dis.c (print_insn_args): Print $fcc only for FP
instructions, use $cc elsewise.
Diffstat (limited to 'opcodes/mips-dis.c')
-rw-r--r--opcodes/mips-dis.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/opcodes/mips-dis.c b/opcodes/mips-dis.c
index 5001f06ac40..416be375a5b 100644
--- a/opcodes/mips-dis.c
+++ b/opcodes/mips-dis.c
@@ -1072,7 +1072,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;