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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gdb-6.8/] [sim/] [testsuite/] [sim/] [frv/] [interrupts/] [insn_access_error-fr550.cgs] - Blame information for rev 856

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

Line No. Rev Author Line
1 24 jeremybenn
# frv testcase to generate insn_access_error interrupt
2
# mach: fr550
3
# sim: --memory-region 0xfe800000,0x7f0500 --memory-region 0xfeff0540,0xfb00
4
        .include "testutils.inc"
5
 
6
        start
7
 
8
        .global dsr
9
dsr:
10
        and_spr_immed   -4081,tbr               ; clear tbr.tt
11
        set_gr_spr      tbr,gr17
12
        inc_gr_immed    0x020,gr17              ; address of exception handler
13
        set_bctrlr_0_0  gr17
14
        set_spr_immed   128,lcr
15
        set_psr_et      1
16
 
17
        set_spr_addr    handler,lr
18
        set_gr_immed    0,gr16
19
 
20
        set_gr_addr     ok0,gr8
21
        set_gr_addr     0xfe800000,gr17
22
        jmpl            @(gr17,gr0)             ; cause interrupt
23
ok0:
24
        test_gr_immed   1,gr16
25
 
26
        set_gr_addr     ok1,gr8
27
        set_gr_addr     0xfefffffc,gr17
28
        jmpl            @(gr17,gr0)             ; cause interrupt
29
ok1:
30
        test_gr_immed   2,gr16
31
 
32
        pass
33
handler:
34
        ; check interrupts
35
        test_spr_immed  0x1,esfr1               ; esr0 is active
36
;       test_spr_gr     epcr0,gr17              ; epcr0 is not used
37
        test_spr_bits   0x0001,0,0x1,esr0       ; esr0 is valid
38
        test_spr_bits   0x003e,1,0x2,esr0       ; esr0.ec is set
39
        test_spr_bits   0x0800,11,0x0,esr0      ; esr0.eav is not set
40
 
41
        addi            gr16,1,gr16
42
        movgs           gr8,pcsr
43
        rett            0
44
        fail

powered by: WebSVN 2.1.0

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