Changeset 7455087 in rtems


Ignore:
Timestamp:
Nov 25, 2009, 10:55:51 PM (9 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, master
Children:
0d196f9
Parents:
68049df
Message:

2009-11-25 Michael Walle <michael@…>

  • shared/gdbstub/lm32-stub.c: Fix wrong computation of negative branch targets (thanks to Manfred Scheible <mscheible@…>.
Location:
c/src/lib/libbsp/lm32
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/lm32/ChangeLog

    r68049df r7455087  
     12009-11-25      Michael Walle <michael@walle.cc>
     2
     3        * shared/gdbstub/lm32-stub.c: Fix wrong computation of negative branch
     4        targets (thanks to Manfred Scheible <mscheible@husware.de>.
     5
    162009-11-24      Ralf Corsépius <ralf.corsepius@rtems.org>
    27
  • c/src/lib/libbsp/lm32/shared/gdbstub/lm32-stub.c

    r68049df r7455087  
    741741          branch_step = 1;
    742742          branch_target = registers[LM32_REG_PC]
    743               + ((signed)(insn & 0x3ffffff) << 2);
     743              + (((signed)insn << 6) >> 4);
    744744        }   
    745745        else if (   (opcode == 0x44000000)
     
    753753          branch_step = 1;
    754754          branch_target = registers[LM32_REG_PC] +
    755               + ((signed)(insn & 0x0000ffff) << 2);
     755              + (((signed)insn << 16) >> 14);
    756756        }
    757757        else if (   (opcode == 0xd8000000)
Note: See TracChangeset for help on using the changeset viewer.