summaryrefslogtreecommitdiff
path: root/gdb/mips-tdep.c
diff options
context:
space:
mode:
authorMaciej W. Rozycki <macro@linux-mips.org>2011-12-06 23:49:55 +0000
committerMaciej W. Rozycki <macro@linux-mips.org>2011-12-06 23:49:55 +0000
commite924755ea9080c6f208cc8a4e503c1e42a79743f (patch)
tree31bd0ebce51aae46b967f65fa57435b29d1c1296 /gdb/mips-tdep.c
parent81da50eaa62c75a3415393f69a23760f8dca4d05 (diff)
downloadgdb-e924755ea9080c6f208cc8a4e503c1e42a79743f.tar.gz
* mips-tdep.c (mips32_next_pc): Fix floating point condition
code mask.
Diffstat (limited to 'gdb/mips-tdep.c')
-rw-r--r--gdb/mips-tdep.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/mips-tdep.c b/gdb/mips-tdep.c
index 4f1c940d9f4..bbfd7e9e607 100644
--- a/gdb/mips-tdep.c
+++ b/gdb/mips-tdep.c
@@ -1144,7 +1144,7 @@ mips32_next_pc (struct frame_info *frame, CORE_ADDR pc)
get_frame_register_signed (frame,
mips_regnum (get_frame_arch (frame))->
fp_control_status);
- int cond = ((fcrcs >> 24) & 0x0e) | ((fcrcs >> 23) & 0x01);
+ int cond = ((fcrcs >> 24) & 0xfe) | ((fcrcs >> 23) & 0x01);
if (((cond >> cnum) & 0x01) == tf)
pc += mips32_relative_offset (inst) + 4;