Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#6 Step command on RTE istruction don't work.

open
Bill Gatliff
None
5
2002-04-08
2000-11-04
Giuliano
No

RTE istruction isn't implemented. Solution:

Add on sh2-704x.c file

!#define OPCODE_RTS(op) ((op) == 0xb)
#define OPCODE_RTE(op) ((op) == 0x2b)
!#define SR_T_BIT_MASK 0x1

and

! /* RTS */
! else if( OPCODE_RTS( op ))
! addr = gdb_register_file.pr;

/* RTE */
else if( OPCODE_RTE( op ))
addr = (*(long*)gdb_register_file.r[15]);

! return addr;

! -> are existent lines

Giuliano

Discussion

  • Bill Gatliff
    Bill Gatliff
    2002-04-08

    • assigned_to: nobody --> bgat