kjdb
  1. kjdb
  2. KJDB-15

SPARC disassembly BPcc needs to use p, cc0, cc1 bits and disp19.

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
      None

      Description

      I may have done most of the sparc disassembly with a baby in one arm,
      but now I notice it's wrong here:

      Bad disassembly:

      kjdb: 0xffffffff780008d8: BPcc bne 0xffffffff77c008c0
      dbx: 0xffffffff780008d8: bne,pt %xcc,0xffffffff780008c0

      Calling new SPARCInstructionBranch("BPcc", address, a, cond, op2, disp22) was wrong: bits 19, 20 and 21 are not part of the displacement.

        Activity

        Hide
        kevinw added a comment -

        changeset : 145:2478c3edb16f
        tags : tip
        author : kevinw
        date : Wed Jul 03 22:38:16 BST 2013
        summary : 15: SPARC disassembly BPcc needs to use p, cc0, cc1 bits and disp19.

        Show
        kevinw added a comment - changeset : 145:2478c3edb16f tags : tip author : kevinw date : Wed Jul 03 22:38:16 BST 2013 summary : 15: SPARC disassembly BPcc needs to use p, cc0, cc1 bits and disp19.

          People

          • Assignee:
            kevinw
            Reporter:
            kevinw
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: