0000000b # Test 5.2.3.6: ecall from going to U mode from M mode
00000000
00000002 # U mode write to sstatus with illegal instruction
00000000
00000002 # U mode read from sstatus with illegal instruction
00000000
00000bad
00000000
00000002 # U mode write to sie with illegal instruction
00000000
00000002 # U mode read from sie with illegal instruction
00000000
00000bad
00000000
00000002 # U mode write to stvec with illegal instruction
00000000
00000002 # U mode read from stvec with illegal instruction
00000000
00000bad
00000000
00000002 # U mode write to scounteren with illegal instruction
00000000
00000002 # U mode read from scounteren with illegal instruction
00000000
00000bad
00000000
00000002 # U mode write to sscratch with illegal instruction
00000000
00000002 # U mode read from sscratch with illegal instruction
00000000
00000bad
00000000
00000002 # U mode write to sepc with illegal instruction
00000000
00000002 # U mode read from sepc with illegal instruction
00000000
00000bad
00000000
00000002 # U mode write to scause with illegal instruction
00000000
00000002 # U mode read from scause with illegal instruction
00000000
00000bad
00000000
00000002 # U mode write to stval with illegal instruction
00000000
00000002 # U mode read from stval with illegal instruction
00000000
00000bad
00000000
00000002 # U mode write to sip with illegal instruction
00000000
00000002 # U mode read from sip with illegal instruction
00000000
00000bad
00000000
00000002 # U mode write to satp with illegal instruction
00000000
00000002 # U mode read from satp with illegal instruction
00000000
00000bad
00000000
00000002 # U mode write to mvendorid with illegal instruction
00000000
00000002 # U mode read from mvendorid with illegal instruction
00000000
00000bad
00000000
00000002 # U mode write to marchid with illegal instruction
00000000
00000002 # U mode read from marchid with illegal instruction
00000000
00000bad
00000000
00000002 # U mode write to mimpid with illegal instruction
00000000
00000002 # U mode read from mimpid with illegal instruction
00000000
00000bad
00000000
00000002 # U mode write to mhartid with illegal instruction
00000000
00000002 # U mode read from mhartid with illegal instruction
00000000
00000bad
00000000
00000002 # S mode write to mconfigptr with illegal instruction
00000000
00000002 # S mode read from mconfigptr with illegal instruction
00000000
00000bad
00000000
00000002 # U mode write to mstatus with illegal instruction
00000000
00000002 # U mode read from mstatus with illegal instruction
00000000
00000bad
00000000
00000002 # U mode write to misa with illegal instruction
00000000
00000002 # U mode read from misa with illegal instruction
00000000
00000bad
00000000
00000002 # U mode write to medeleg with illegal instruction
00000000
00000002 # U mode read from medeleg with illegal instruction
00000000
00000bad
00000000
00000002 # U mode write to mideleg with illegal instruction
00000000
00000002 # U mode read from mideleg with illegal instruction
00000000
00000bad
00000000
00000002 # U mode write to mie with illegal instruction
00000000
00000002 # U mode read from mie with illegal instruction
00000000
00000bad
00000000
00000002 # U mode write to mtvec with illegal instruction
00000000
00000002 # U mode read from mtvec with illegal instruction
00000000
00000bad
00000000
00000002 # U mode write to mcounteren with illegal instruction
00000000
00000002 # U mode read from mcounteren with illegal instruction
00000000
00000bad
00000000
00000002 # U mode write to mscratch with illegal instruction
00000000
00000002 # U mode read from mscratch with illegal instruction
00000000
00000bad
00000000
00000002 # U mode write to mepc with illegal instruction
00000000
00000002 # U mode read from mepc with illegal instruction
00000000
00000bad
00000000
00000002 # U mode write to mcause with illegal instruction
00000000
00000002 # U mode read from mcause with illegal instruction
00000000
00000bad
00000000
00000002 # U mode write to mtval with illegal instruction
00000000
00000002 # U mode read from mtval with illegal instruction
00000000
00000bad
00000000
00000002 # U mode write to mip with illegal instruction
00000000
00000002 # U mode read from mip with illegal instruction
00000000
00000bad
00000000
00000002 # S mode write to menvcfg with illegal instruction
00000000
00000002 # S mode read from menvcfg with illegal instruction
00000000
00000bad
00000000
00000002 # S mode write to mseccfg with illegal instruction
00000000
00000002 # S mode read from mseccfg with illegal instruction
00000000
00000bad
00000000
00000002 # U mode write to pmpcfg0 with illegal instruction
00000000
00000002 # U mode read from pmpcfg0 with illegal instruction
00000000
00000bad
00000000
00000002 # U mode write to pmpcfg2 with illegal instruction
00000000
00000002 # U mode read from pmpcfg2 with illegal instruction
00000000
00000bad
00000000
00000002 # U mode write to pmpaddr0 with illegal instruction
00000000
00000002 # U mode read from pmpaddr0 with illegal instruction
00000000
00000bad
00000000
00000002 # U mode write to pmpaddr1 with illegal instruction
00000000
00000002 # U mode read from pmpaddr1 with illegal instruction
00000000
00000bad
00000000
00000002 # U mode write to pmpaddr2 with illegal instruction
00000000
00000002 # U mode read from pmpaddr2 with illegal instruction
00000000
00000bad
00000000
00000002 # U mode write to pmpaddr3 with illegal instruction
00000000
00000002 # U mode read from pmpaddr3 with illegal instruction
00000000
00000bad
00000000
00000002 # U mode write to pmpaddr4 with illegal instruction
00000000
00000002 # U mode read from pmpaddr4 with illegal instruction
00000000
00000bad
00000000
00000002 # U mode write to pmpaddr5 with illegal instruction
00000000
00000002 # U mode read from pmpaddr5 with illegal instruction
00000000
00000bad
00000000
00000002 # U mode write to pmpaddr6 with illegal instruction
00000000
00000002 # U mode read from pmpaddr6 with illegal instruction
00000000
00000bad
00000000
00000002 # U mode write to pmpaddr7 with illegal instruction
00000000
00000002 # U mode read from pmpaddr7 with illegal instruction
00000000
00000bad
00000000
00000002 # U mode write to pmpaddr8 with illegal instruction
00000000
00000002 # U mode read from pmpaddr8 with illegal instruction
00000000
00000bad
00000000
00000002 # U mode write to pmpaddr9 with illegal instruction
00000000
00000002 # U mode read from pmpaddr9 with illegal instruction
00000000
00000bad
00000000
00000002 # U mode write to pmpaddr10 with illegal instruction
00000000
00000002 # U mode read from pmpaddr10 with illegal instruction
00000000
00000bad
00000000
00000002 # U mode write to pmpaddr11 with illegal instruction
00000000
00000002 # U mode read from pmpaddr11 with illegal instruction
00000000
00000bad
00000000
00000002 # U mode write to pmpaddr12 with illegal instruction
00000000
00000002 # U mode read from pmpaddr12 with illegal instruction
00000000
00000bad
00000000
00000002 # U mode write to pmpaddr13 with illegal instruction
00000000
00000002 # U mode read from pmpaddr13 with illegal instruction
00000000
00000bad
00000000
00000002 # U mode write to pmpaddr14 with illegal instruction
00000000
00000002 # U mode read from pmpaddr14 with illegal instruction
00000000
00000bad
00000000
00000002 # U mode write to pmpaddr15 with illegal instruction
00000000
00000002 # U mode read from pmpaddr15 with illegal instruction
00000000
00000bad
00000000
00000002 # U mode write to mcycle with illegal instruction
00000000
00000002 # U mode read from mcycle with illegal instruction
00000000
00000bad
00000000
00000002 # U mode write to minstret with illegal instruction
00000000
00000002 # U mode read from minstret with illegal instruction
00000000
00000bad
00000000
00000002 # U mode write to mhpmcounter3 with illegal instruction
00000000
00000002 # U mode read from mhpmcounter3 with illegal instruction
00000000
00000bad
00000000
00000002 # U mode write to mhpmcounter4 with illegal instruction
00000000
00000002 # U mode read from mhpmcounter4 with illegal instruction
00000000
00000bad
00000000
00000002 # U mode write to mhpmcounter5 with illegal instruction
00000000
00000002 # U mode read from mhpmcounter5 with illegal instruction
00000000
00000bad
00000000
00000002 # U mode write to mhpmcounter6 with illegal instruction
00000000
00000002 # U mode read from mhpmcounter6 with illegal instruction
00000000
00000bad
00000000
00000002 # U mode write to mhpmcounter7 with illegal instruction
00000000
00000002 # U mode read from mhpmcounter7 with illegal instruction
00000000
00000bad
00000000
00000002 # U mode write to mhpmcounter8 with illegal instruction
00000000
00000002 # U mode read from mhpmcounter8 with illegal instruction
00000000
00000bad
00000000
00000002 # U mode write to mhpmcounter9 with illegal instruction
00000000
00000002 # U mode read from mhpmcounter9 with illegal instruction
00000000
00000bad
00000000
00000002 # U mode write to mhpmcounter10 with illegal instruction
00000000
00000002 # U mode read from mhpmcounter10 with illegal instruction
00000000
00000bad
00000000
00000002 # U mode write to mhpmcounter11 with illegal instruction
00000000
00000002 # U mode read from mhpmcounter11 with illegal instruction
00000000
00000bad
00000000
00000002 # U mode write to mhpmcounter12 with illegal instruction
00000000
00000002 # U mode read from mhpmcounter12 with illegal instruction
00000000
00000bad
00000000
00000002 # U mode write to mhpmcounter13 with illegal instruction
00000000
00000002 # U mode read from mhpmcounter13 with illegal instruction
00000000
00000bad
00000000
00000002 # U mode write to mhpmcounter14 with illegal instruction
00000000
00000002 # U mode read from mhpmcounter14 with illegal instruction
00000000
00000bad
00000000
00000002 # U mode write to mhpmcounter15 with illegal instruction
00000000
00000002 # U mode read from mhpmcounter15 with illegal instruction
00000000
00000bad
00000000
00000002 # U mode write to mhpmcounter16 with illegal instruction
00000000
00000002 # U mode read from mhpmcounter16 with illegal instruction
00000000
00000bad
00000000
00000002 # U mode write to mhpmcounter17 with illegal instruction
00000000
00000002 # U mode read from mhpmcounter17 with illegal instruction
00000000
00000bad
00000000
00000002 # U mode write to mhpmcounter18 with illegal instruction
00000000
00000002 # U mode read from mhpmcounter18 with illegal instruction
00000000
00000bad
00000000
00000002 # U mode write to mhpmcounter19 with illegal instruction
00000000
00000002 # U mode read from mhpmcounter19 with illegal instruction
00000000
00000bad
00000000
00000002 # U mode write to mhpmcounter20 with illegal instruction
00000000
00000002 # U mode read from mhpmcounter20 with illegal instruction
00000000
00000bad
00000000
00000002 # U mode write to mhpmcounter21 with illegal instruction
00000000
00000002 # U mode read from mhpmcounter21 with illegal instruction
00000000
00000bad
00000000
00000002 # U mode write to mhpmcounter22 with illegal instruction
00000000
00000002 # U mode read from mhpmcounter22 with illegal instruction
00000000
00000bad
00000000
00000002 # U mode write to mhpmcounter23 with illegal instruction
00000000
00000002 # U mode read from mhpmcounter23 with illegal instruction
00000000
00000bad
00000000
00000002 # U mode write to mhpmcounter24 with illegal instruction
00000000
00000002 # U mode read from mhpmcounter24 with illegal instruction
00000000
00000bad
00000000
00000002 # U mode write to mhpmcounter25 with illegal instruction
00000000
00000002 # U mode read from mhpmcounter25 with illegal instruction
00000000
00000bad
00000000
00000002 # U mode write to mhpmcounter26 with illegal instruction
00000000
00000002 # U mode read from mhpmcounter26 with illegal instruction
00000000
00000bad
00000000
00000002 # U mode write to mhpmcounter27 with illegal instruction
00000000
00000002 # U mode read from mhpmcounter27 with illegal instruction
00000000
00000bad
00000000
00000002 # U mode write to mhpmcounter28 with illegal instruction
00000000
00000002 # U mode read from mhpmcounter28 with illegal instruction
00000000
00000bad
00000000
00000002 # U mode write to mhpmcounter29 with illegal instruction
00000000
00000002 # U mode read from mhpmcounter29 with illegal instruction
00000000
00000bad
00000000
00000002 # U mode write to mhpmcounter30 with illegal instruction
00000000
00000002 # U mode read from mhpmcounter30 with illegal instruction
00000000
00000bad
00000000
00000002 # U mode write to mhpmcounter31 with illegal instruction
00000000
00000002 # U mode read from mhpmcounter31 with illegal instruction
00000000
00000bad
00000000
00000002 # U mode write to mcountinhibit with illegal instruction
00000000
00000002 # U mode read from mcountinhibit with illegal instruction
00000000
00000bad
00000000
00000002 # U mode write to mhpmevent3 with illegal instruction
00000000
00000002 # U mode read from mhpmevent3 with illegal instruction
00000000
00000bad
00000000
00000002 # U mode write to mhpmevent4 with illegal instruction
00000000
00000002 # U mode read from mhpmevent4 with illegal instruction
00000000
00000bad
00000000
00000002 # U mode write to mhpmevent5 with illegal instruction
00000000
00000002 # U mode read from mhpmevent5 with illegal instruction
00000000
00000bad
00000000
00000002 # U mode write to mhpmevent6 with illegal instruction
00000000
00000002 # U mode read from mhpmevent6 with illegal instruction
00000000
00000bad
00000000
00000002 # U mode write to mhpmevent7 with illegal instruction
00000000
00000002 # U mode read from mhpmevent7 with illegal instruction
00000000
00000bad
00000000
00000002 # U mode write to mhpmevent8 with illegal instruction
00000000
00000002 # U mode read from mhpmevent8 with illegal instruction
00000000
00000bad
00000000
00000002 # U mode write to mhpmevent9 with illegal instruction
00000000
00000002 # U mode read from mhpmevent9 with illegal instruction
00000000
00000bad
00000000
00000002 # U mode write to mhpmevent10 with illegal instruction
00000000
00000002 # U mode read from mhpmevent10 with illegal instruction
00000000
00000bad
00000000
00000002 # U mode write to mhpmevent11 with illegal instruction
00000000
00000002 # U mode read from mhpmevent11 with illegal instruction
00000000
00000bad
00000000
00000002 # U mode write to mhpmevent12 with illegal instruction
00000000
00000002 # U mode read from mhpmevent12 with illegal instruction
00000000
00000bad
00000000
00000002 # U mode write to mhpmevent13 with illegal instruction
00000000
00000002 # U mode read from mhpmevent13 with illegal instruction
00000000
00000bad
00000000
00000002 # U mode write to mhpmevent14 with illegal instruction
00000000
00000002 # U mode read from mhpmevent14 with illegal instruction
00000000
00000bad
00000000
00000002 # U mode write to mhpmevent15 with illegal instruction
00000000
00000002 # U mode read from mhpmevent15 with illegal instruction
00000000
00000bad
00000000
00000002 # U mode write to mhpmevent16 with illegal instruction
00000000
00000002 # U mode read from mhpmevent16 with illegal instruction
00000000
00000bad
00000000
00000002 # U mode write to mhpmevent17 with illegal instruction
00000000
00000002 # U mode read from mhpmevent17 with illegal instruction
00000000
00000bad
00000000
00000002 # U mode write to mhpmevent18 with illegal instruction
00000000
00000002 # U mode read from mhpmevent18 with illegal instruction
00000000
00000bad
00000000
00000002 # U mode write to mhpmevent19 with illegal instruction
00000000
00000002 # U mode read from mhpmevent19 with illegal instruction
00000000
00000bad
00000000
00000002 # U mode write to mhpmevent20 with illegal instruction
00000000
00000002 # U mode read from mhpmevent20 with illegal instruction
00000000
00000bad
00000000
00000002 # U mode write to mhpmevent21 with illegal instruction
00000000
00000002 # U mode read from mhpmevent21 with illegal instruction
00000000
00000bad
00000000
00000002 # U mode write to mhpmevent22 with illegal instruction
00000000
00000002 # U mode read from mhpmevent22 with illegal instruction
00000000
00000bad
00000000
00000002 # U mode write to mhpmevent23 with illegal instruction
00000000
00000002 # U mode read from mhpmevent23 with illegal instruction
00000000
00000bad
00000000
00000002 # U mode write to mhpmevent24 with illegal instruction
00000000
00000002 # U mode read from mhpmevent24 with illegal instruction
00000000
00000bad
00000000
00000002 # U mode write to mhpmevent25 with illegal instruction
00000000
00000002 # U mode read from mhpmevent25 with illegal instruction
00000000
00000bad
00000000
00000002 # U mode write to mhpmevent26 with illegal instruction
00000000
00000002 # U mode read from mhpmevent26 with illegal instruction
00000000
00000bad
00000000
00000002 # U mode write to mhpmevent27 with illegal instruction
00000000
00000002 # U mode read from mhpmevent27 with illegal instruction
00000000
00000bad
00000000
00000002 # U mode write to mhpmevent28 with illegal instruction
00000000
00000002 # U mode read from mhpmevent28 with illegal instruction
00000000
00000bad
00000000
00000002 # U mode write to mhpmevent29 with illegal instruction
00000000
00000002 # U mode read from mhpmevent29 with illegal instruction
00000000
00000bad
00000000
00000002 # U mode write to mhpmevent30 with illegal instruction
00000000
00000002 # U mode read from mhpmevent30 with illegal instruction
00000000
00000bad
00000000
00000002 # U mode write to mhpmevent31 with illegal instruction
00000000
00000002 # U mode read from mhpmevent31 with illegal instruction
00000000
00000bad
00000000
00000008 # ecall from terminating tests in U mode
00000000
