1 # frv testcase to generate privileged_instruction interrupt
4 .include "testutils.inc"
10 and_spr_immed -4081,tbr ; clear tbr.tt
12 inc_gr_immed 0x060,gr17 ; address of exception handler
16 and_spr_immed 0xfffffffb,psr ; clear psr.s
18 set_spr_addr handler,lr
22 bad1: rett 0 ; cause interrupt
25 bad2: rei 0 ; cause interrupt
28 bad3: witlb gr0,@(gr0,gr0) ; cause interrupt
31 bad4: wdtlb gr0,@(gr0,gr0) ; cause interrupt
34 bad5: itlbi @(gr0,gr0) ; cause interrupt
37 bad6: dtlbi @(gr0,gr0) ; cause interrupt
43 test_spr_immed 0x1,esfr1 ; esr0 is active
44 test_spr_gr epcr0,gr17
45 test_spr_bits 0x0001,0,0x1,esr0 ; esr0 is valid
46 test_spr_bits 0x003e,1,0x4,esr0 ; esr0.ec is set
47 test_spr_bits 0x0800,11,0x0,esr0 ; esr0.eav is not set