aboutsummaryrefslogtreecommitdiff
path: root/debug/programs/run_halt_timing.S
blob: ce4000afaf8b4ce0316b8b090246ac6e7ad18987 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#if XLEN == 64
# define LREG ld
# define SREG sd
# define REGBYTES 8
#else
# define LREG lw
# define SREG sw
# define REGBYTES 4
#endif

        .global main
main:
        li      s0, 0
        li      s1, 0x0200bff8
loop:
        addi    s0, s0, 1
        LREG    s2, 0(s1)
        j       loop