mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-23 03:29:47 +08:00
* mips-dis.c (print_insn_mips): Correct branch instruction type
determination.
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
2010-07-06 Maciej W. Rozycki <macro@codesourcery.com>
|
||||||
|
|
||||||
|
* mips-dis.c (print_insn_mips): Correct branch instruction type
|
||||||
|
determination.
|
||||||
|
|
||||||
2010-07-06 Maciej W. Rozycki <macro@codesourcery.com>
|
2010-07-06 Maciej W. Rozycki <macro@codesourcery.com>
|
||||||
|
|
||||||
* mips-dis.c (print_mips16_insn_arg): Remove branch instruction
|
* mips-dis.c (print_mips16_insn_arg): Remove branch instruction
|
||||||
|
@ -1404,7 +1404,8 @@ print_insn_mips (bfd_vma memaddr,
|
|||||||
/* Figure out instruction type and branch delay information. */
|
/* Figure out instruction type and branch delay information. */
|
||||||
if ((op->pinfo & INSN_UNCOND_BRANCH_DELAY) != 0)
|
if ((op->pinfo & INSN_UNCOND_BRANCH_DELAY) != 0)
|
||||||
{
|
{
|
||||||
if ((info->insn_type & INSN_WRITE_GPR_31) != 0)
|
if ((op->pinfo & (INSN_WRITE_GPR_31
|
||||||
|
| INSN_WRITE_GPR_D)) != 0)
|
||||||
info->insn_type = dis_jsr;
|
info->insn_type = dis_jsr;
|
||||||
else
|
else
|
||||||
info->insn_type = dis_branch;
|
info->insn_type = dis_branch;
|
||||||
@ -1413,7 +1414,7 @@ print_insn_mips (bfd_vma memaddr,
|
|||||||
else if ((op->pinfo & (INSN_COND_BRANCH_DELAY
|
else if ((op->pinfo & (INSN_COND_BRANCH_DELAY
|
||||||
| INSN_COND_BRANCH_LIKELY)) != 0)
|
| INSN_COND_BRANCH_LIKELY)) != 0)
|
||||||
{
|
{
|
||||||
if ((info->insn_type & INSN_WRITE_GPR_31) != 0)
|
if ((op->pinfo & INSN_WRITE_GPR_31) != 0)
|
||||||
info->insn_type = dis_condjsr;
|
info->insn_type = dis_condjsr;
|
||||||
else
|
else
|
||||||
info->insn_type = dis_condbranch;
|
info->insn_type = dis_condbranch;
|
||||||
|
Reference in New Issue
Block a user