OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gdb-7.2/] [gdb/] [testsuite/] [gdb.asm/] [iq2000.inc] - Blame information for rev 330

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 330 jeremybenn
        comment "subroutine prologue"
2
        .macro gdbasm_enter
3
        addiu %29, %29, 0xfffc
4
        sw %31,0(%29)
5
        .endm
6
 
7
        comment "subroutine epilogue"
8
        .macro gdbasm_leave
9
        lw %31,0(%29)
10
        addiu %29, %29, 4
11
        jr %31
12
        nop
13
        .endm
14
 
15
        .macro gdbasm_call subr
16
        jal \subr
17
        nop
18
        .endm
19
 
20
        .macro gdbasm_several_nops
21
        nop
22
        nop
23
        nop
24
        nop
25
        .endm
26
 
27
        comment "exit (0)"
28
        .macro gdbasm_exit0
29
        ori  %4, %0, 1  # SYS_exit
30
        ori  %5, %0, 0  # normal exit code
31
        ori  %6, %0, 0
32
        ori  %7, %0, 0
33
        syscall
34
        .endm
35
 
36
        comment "crt0 startup"
37
        .macro gdbasm_startup
38
        andi %0, %0, 0
39
        addiu %29, %0, 0xffc
40
        .endm
41
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.