diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2002-05-14 10:25:33 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2002-05-14 10:25:33 +0000 |
commit | db5897415cdde8d56bfc917c47475209e94c54a3 (patch) | |
tree | 683d869455eadf440341fba7ea9f7a0b78d54707 /gdb/testsuite/gdb.asm/v850.inc | |
parent | 5d085aafc80256c43cf1229e212158cf0afb1b2b (diff) | |
download | gdb-db5897415cdde8d56bfc917c47475209e94c54a3.zip gdb-db5897415cdde8d56bfc917c47475209e94c54a3.tar.gz gdb-db5897415cdde8d56bfc917c47475209e94c54a3.tar.bz2 |
* gdb.asm/asm-source.exp: Add v850 as supported target.
* gdb.asm/v850.inc: New file.
Diffstat (limited to 'gdb/testsuite/gdb.asm/v850.inc')
-rw-r--r-- | gdb/testsuite/gdb.asm/v850.inc | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.asm/v850.inc b/gdb/testsuite/gdb.asm/v850.inc new file mode 100644 index 0000000..8797791 --- /dev/null +++ b/gdb/testsuite/gdb.asm/v850.inc @@ -0,0 +1,41 @@ + comment "subroutine prologue" + .macro gdbasm_enter + add -8,sp + st.w r31,4[sp] + st.w r29,0[sp] + mov sp,r29 + .endm + + comment "subroutine epilogue" + .macro gdbasm_leave + mov r29,sp + ld.w 0[sp],r29 + ld.w 4[sp],r31 + add 8,sp + jmp [r31] + .endm + + .macro gdbasm_call subr + jarl \subr,r31 + .endm + + .macro gdbasm_several_nops + nop + nop + nop + nop + .endm + + comment "exit (0)" + .macro gdbasm_exit0 + halt + .endm + + comment "crt0 startup" + .macro gdbasm_startup + movea 255,r0,r20 + mov r0, r21 + ori 65535, r0, r21 + movhi 32, r0, sp + .endm + |