singlestepclear.h
Go to the documentation of this file.00001 unsigned int aui_singlestepclear_code[]=
00002 tgt_compile(\
00003 "1:\n" \
00004 " mtc0 $15, $31 ;\n" \
00005 " lui $15, 0xFF20;\n" \
00006 " sw $1, 0x1fc($15);\n" \
00007 " sw $2, 0x1fc($15);\n" \
00008 " # Load R1 with the debug register (CP0 reg 23 select 0);\n" \
00009 " mfc0 $1, $23;\n" \
00010 " # Load the AND mask into R2;\n" \
00011 " lui $2, 0xFFFF;\n" \
00012 " ori $2, $2, 0xFEFF;\n" \
00013 " # Clear the SSt bit in the debug register;\n" \
00014 " and $1, $1, $2;\n" \
00015 " # Put the modified debug register back;\n" \
00016 " mtc0 $1, $23;\n" \
00017 " # Pop R1 and R2 off the debug stack;\n" \
00018 " lw $2, 0x1fc($15);\n" \
00019 " lw $1, 0x1fc($15);\n" \
00020 " mfc0 $15, $31 ;\n" \
00021 " b 1b;\n" \
00022 " nop;\n" \
00023 );