Advertisement
Guest User

Untitled

a guest
Nov 14th, 2018
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. rsr a1, DEBUG_PC
  2.     movi    a2, initial_breakpoint
  3.     bne a1, a2, 1f // jumps to location formed by address of this inst. + '1f' label (first label with '1:'') + 4. Of course when a1 1= a2
  4.     addi    a1, a1, 3
  5. 1:
  6.     s32i    a1, a3, DEBUG_PC * 4
  7.  
  8.     SAVE    EXCSAVE_1
  9.     SAVE_   DEBUG_PS, PS
  10.     SAVE    EXCCAUSE
  11.     SAVE    DEBUGCAUSE
  12.     SAVE    EXCVADDR
  13.  
  14.     movi    a1, XCHAL_NUM_AREGS / 4 - 1
  15.     movi    a2, aregs
  16. 1:
  17.     s32i    a4, a2, 16
  18.     s32i    a5, a2, 20
  19.     s32i    a6, a2, 24
  20.     s32i    a7, a2, 28
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement