OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [tags/] [gnu-src/] [gdb-6.8/] [pre-binutils-2.20.1-sync/] [gdb/] [testsuite/] [gdb.asm/] [iq2000.inc] - Diff between revs 157 and 223

Go to most recent revision | Only display areas with differences | Details | Blame | View Log

Rev 157 Rev 223
        comment "subroutine prologue"
        comment "subroutine prologue"
        .macro gdbasm_enter
        .macro gdbasm_enter
        addiu %29, %29, 0xfffc
        addiu %29, %29, 0xfffc
        sw %31,0(%29)
        sw %31,0(%29)
        .endm
        .endm
        comment "subroutine epilogue"
        comment "subroutine epilogue"
        .macro gdbasm_leave
        .macro gdbasm_leave
        lw %31,0(%29)
        lw %31,0(%29)
        addiu %29, %29, 4
        addiu %29, %29, 4
        jr %31
        jr %31
        nop
        nop
        .endm
        .endm
        .macro gdbasm_call subr
        .macro gdbasm_call subr
        jal \subr
        jal \subr
        nop
        nop
        .endm
        .endm
        .macro gdbasm_several_nops
        .macro gdbasm_several_nops
        nop
        nop
        nop
        nop
        nop
        nop
        nop
        nop
        .endm
        .endm
        comment "exit (0)"
        comment "exit (0)"
        .macro gdbasm_exit0
        .macro gdbasm_exit0
        ori  %4, %0, 1  # SYS_exit
        ori  %4, %0, 1  # SYS_exit
        ori  %5, %0, 0  # normal exit code
        ori  %5, %0, 0  # normal exit code
        ori  %6, %0, 0
        ori  %6, %0, 0
        ori  %7, %0, 0
        ori  %7, %0, 0
        syscall
        syscall
        .endm
        .endm
        comment "crt0 startup"
        comment "crt0 startup"
        .macro gdbasm_startup
        .macro gdbasm_startup
        andi %0, %0, 0
        andi %0, %0, 0
        addiu %29, %0, 0xffc
        addiu %29, %0, 0xffc
        .endm
        .endm
 
 

powered by: WebSVN 2.1.0

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