Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rsr a1, DEBUG_PC
- movi a2, initial_breakpoint
- 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
- addi a1, a1, 3
- 1:
- s32i a1, a3, DEBUG_PC * 4
- SAVE EXCSAVE_1
- SAVE_ DEBUG_PS, PS
- SAVE EXCCAUSE
- SAVE DEBUGCAUSE
- SAVE EXCVADDR
- movi a1, XCHAL_NUM_AREGS / 4 - 1
- movi a2, aregs
- 1:
- s32i a4, a2, 16
- s32i a5, a2, 20
- s32i a6, a2, 24
- s32i a7, a2, 28
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement