This is the mail archive of the
gdb-cvs@sourceware.org
mailing list for the GDB project.
src/gdb sparc-tdep.c ChangeLog
- From: davem at sourceware dot org
- To: gdb-cvs at sourceware dot org
- Date: 21 Apr 2012 19:03:55 -0000
- Subject: src/gdb sparc-tdep.c ChangeLog
CVSROOT: /cvs/src
Module name: src
Changes by: davem@sourceware.org 2012-04-21 19:03:55
Modified files:
gdb : sparc-tdep.c ChangeLog
Log message:
Handle sparc compare-and-branch
SPARC-T4 adds a "compare and branch" instruction which fuses
a compare and a branch instruction into one. The branch
is non-delayed, there are no anulling facilities, and the
displacement is 10-bits.
This also corrects the existing bit test for Branch on
Integer Register. The distinguising characteristic between
Branch on Integer Register and Compare-and-Branch is bit
28. The existing code was checking bit 24 for zero, but
that's pointless because bit 24 is already covered by
the "X_OP2 (insn) == 3" test.
gdb/
* sparc-tdep.c (X_DISP10): Define.
(sparc_analyze_control_transfer): Handle compare-and-branch.
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/sparc-tdep.c.diff?cvsroot=src&r1=1.224&r2=1.225
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/ChangeLog.diff?cvsroot=src&r1=1.14149&r2=1.14150