From Maciej W. Rozycki <macro@mips.com>:
* mips-tdep.c (mips32_next_pc): Check the register's contents, not its number for BLEZ/BLEZL and BGTZ/BGTZL.
This commit is contained in:
parent
bbac1f2ac7
commit
1fd8cd2072
2 changed files with 8 additions and 2 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
2004-10-07 Daniel Jacobowitz <dan@debian.org>
|
||||||
|
|
||||||
|
From Maciej W. Rozycki <macro@mips.com>:
|
||||||
|
* mips-tdep.c (mips32_next_pc): Check the register's contents,
|
||||||
|
not its number for BLEZ/BLEZL and BGTZ/BGTZL.
|
||||||
|
|
||||||
2004-10-07 Kei Sakamoto <sakamoto.kei@renesas.com>
|
2004-10-07 Kei Sakamoto <sakamoto.kei@renesas.com>
|
||||||
|
|
||||||
* m32r-tdep.c (decode_prologue): Support functions written
|
* m32r-tdep.c (decode_prologue): Support functions written
|
||||||
|
|
|
@ -1167,7 +1167,7 @@ mips32_next_pc (CORE_ADDR pc)
|
||||||
pc += 8;
|
pc += 8;
|
||||||
break;
|
break;
|
||||||
case 6: /* BLEZ, BLEZL */
|
case 6: /* BLEZ, BLEZL */
|
||||||
if (read_signed_register (itype_rs (inst) <= 0))
|
if (read_signed_register (itype_rs (inst)) <= 0)
|
||||||
pc += mips32_relative_offset (inst) + 4;
|
pc += mips32_relative_offset (inst) + 4;
|
||||||
else
|
else
|
||||||
pc += 8;
|
pc += 8;
|
||||||
|
@ -1175,7 +1175,7 @@ mips32_next_pc (CORE_ADDR pc)
|
||||||
case 7:
|
case 7:
|
||||||
default:
|
default:
|
||||||
greater_branch: /* BGTZ, BGTZL */
|
greater_branch: /* BGTZ, BGTZL */
|
||||||
if (read_signed_register (itype_rs (inst) > 0))
|
if (read_signed_register (itype_rs (inst)) > 0)
|
||||||
pc += mips32_relative_offset (inst) + 4;
|
pc += mips32_relative_offset (inst) + 4;
|
||||||
else
|
else
|
||||||
pc += 8;
|
pc += 8;
|
||||||
|
|
Loading…
Add table
Reference in a new issue