2 #sim(crisv10): --hw-device "/rv/trace? true"
3 #sim(crisv32): --hw-device "/rv/trace? true"
5 #output: /rv: REG R 0xd0000032\n
6 #output: /rv: := 0xabcdef01\n
7 #output: /rv: IRQ 0x4\n
8 #output: /rv: REG R 0xd0000036\n
9 #output: /rv: := 0x76543210\n
10 #output: /rv: REG R 0xd0000036\n
11 #output: /rv: := 0x76543211\n
12 #output: /rv: REG R 0xd0000030\n
13 #output: /rv: IRQ 0x0\n
14 #output: /rv: := 0xeeff4455\n
17 # Trivial test of interrupts.
18 # Locations of IRQ notifiers above depend on when the simulator is
19 # polled; adjustments may be needed (after checking that no poll is
32 .include "testutils.inc"
34 .if ..asm.arch.cris.v32
39 test_h_mem 0xabcdef01 0xd0000032
42 test_h_mem 0x76543210 0xd0000036
51 test_h_mem 0x76543211 0xd0000036
52 test_h_mem 0xeeff4455 0xd0000030
56 .if ..asm.arch.cris.v32
57 test_h_dr wouldreturnhere,$erp
63 test_h_dr wouldreturnhere,$irp
69 singlevec irqvec1,0x33,irq0x33