summaryrefslogtreecommitdiff
path: root/opcodes/mips-dis.c
diff options
context:
space:
mode:
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 9c9112b3f59..018ac94f302 100644
--- a/opcodes/mips-dis.c
+++ b/opcodes/mips-dis.c
@@ -1273,7 +1273,9 @@ print_insn_args (const char *d,
case 'U':
{
/* First check for both rd and rt being equal. */
- unsigned int reg = GET_OP (l, RD);
+ unsigned int reg;
+
+ reg = GET_OP (l, RD);
if (reg == GET_OP (l, RT))
infprintf (is, "%s", mips_gpr_names[reg]);
else