1 1.1 christos #progos: nowhere:disabled-due-to-randomness 2 1.1 christos #mach: crisv10 crisv32 3 1.1 christos #sim(crisv10): --hw-device "/rv/trace? true" 4 1.1 christos #sim(crisv32): --hw-device "/rv/trace? true" 5 1.1 christos #output: /rv: WD\n 6 1.1 christos #output: /rv: REG R 0xd0000032\n 7 1.1 christos #output: /rv: := 0xabcdef01\n 8 1.1 christos #output: /rv: IRQ 0x4\n 9 1.1 christos #output: /rv: REG R 0xd0000036\n 10 1.1 christos #output: /rv: := 0x76543210\n 11 1.1 christos #output: /rv: REG R 0xd0000036\n 12 1.1 christos #output: /rv: := 0x76543211\n 13 1.1 christos #output: /rv: REG R 0xd0000030\n 14 1.1 christos #output: /rv: IRQ 0x0\n 15 1.1 christos #output: /rv: := 0xeeff4455\n 16 1.1 christos #output: pass\n 17 1.1 christos 18 1.1 christos # Trivial test of interrupts. 19 1.1 christos # Locations of IRQ notifiers above depend on when the simulator is 20 1.1 christos # polled; adjustments may be needed (after checking that no poll is 21 1.1 christos # gone due to a bug!) 22 1.1 christos 23 1.1 christos #r W, 24 1.1 christos #r r,a8832,abcdef01 25 1.1 christos #r I,4 26 1.1 christos #r r,a8836,76543210 27 1.1 christos #r r,a8836,76543211 28 1.1 christos #r I,0 29 1.1 christos #r r,a8830,eeff4455 30 1.1 christos 31 1.1 christos .lcomm dummy,4 32 1.1 christos 33 1.1 christos .include "testutils.inc" 34 1.1 christos start 35 1.1 christos .if ..asm.arch.cris.v32 36 1.1 christos move irqvec1,$ebp 37 1.1 christos .else 38 1.1 christos move irqvec1,$ibr 39 1.1 christos .endif 40 1.1 christos test_h_mem 0xabcdef01 0xd0000032 41 1.1 christos nop 42 1.1 christos nop 43 1.1 christos test_h_mem 0x76543210 0xd0000036 44 1.1 christos ei 45 1.1 christos test_h_mem 0,dummy 46 1.1 christos wouldreturnhere: 47 1.1 christos nop 48 1.1 christos killme: 49 1.1 christos fail 50 1.1 christos 51 1.1 christos returnhere: 52 1.1 christos test_h_mem 0x76543211 0xd0000036 53 1.1 christos test_h_mem 0xeeff4455 0xd0000030 54 1.1 christos pass 55 1.1 christos 56 1.1 christos irq0x33: 57 1.1 christos .if ..asm.arch.cris.v32 58 1.1 christos test_h_dr wouldreturnhere,$erp 59 1.1 christos move returnhere,$erp 60 1.1 christos rete 61 1.1 christos rfe 62 1.1 christos .else 63 1.1 christos move $dccr,$r0 64 1.1 christos test_h_dr wouldreturnhere,$irp 65 1.1 christos move returnhere,$irp 66 1.1 christos reti 67 1.1 christos move $r0,$dccr 68 1.1 christos .endif 69 1.1 christos 70 1.1 christos singlevec irqvec1,0x33,irq0x33 71