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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [gdb-5.3/] [sim/] [testsuite/] [d30v-elf/] [trap.S] - Blame information for rev 1773

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1181 sfurman
# verify that trap || cmp works
2
        add  r8,r0,0x11223344         ;
3
        add  r9,r0,0x11223344         ;
4
 
5
        mvtsys bpsw,r0 || nop
6
        mvtsys bpc,r0  || nop
7
 
8
        add  r1,r0,0x97000555       ; for psw
9
        mvtsys psw,r1 || nop
10
        trap 0  || cmpeq f0,r8,r9,;
11
 
12
        .long 0x0e000004, 0x00f00000
13
 
14
        .section .eit_v, "a"
15
        nop     || nop
16
        nop     || nop
17
        nop     || nop
18
        nop     || nop
19
 
20
# save the old bpsw, psw
21
        mvfsys r4,bpsw || nop
22
        mvfsys r5,psw || nop
23
 
24
# load up what they should be
25
        add r6,r0,0x97004555
26
        add r7,r0,0x90000000
27
 
28
# verify that they have the right values
29
# return exit value in r2 -- 0 success, 47 failure
30
        add r2,r0,47
31
        cmpeq f0,r4,r6 || nop
32
        cmpeq f1,r5,r7 || nop
33
        add/tt r2,r0,r0 || nop
34
 
35
        reit

powered by: WebSVN 2.1.0

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