feat: implement privileged mode support
This commit is contained in:
93
sim/results/privileged_test_results.txt
Normal file
93
sim/results/privileged_test_results.txt
Normal file
@@ -0,0 +1,93 @@
|
||||
Running privileged RISC-V tests...
|
||||
=================================
|
||||
rv64mi-p-breakpoint: exit=0 PASS
|
||||
rv64mi-p-csr: exit=0 PASS
|
||||
rv64mi-p-illegal: exit=0 PASS
|
||||
rv64mi-p-instret_overflow: exit=1 FAIL
|
||||
[5] FLUSH exception=0 mtvec=0x0 mepc=0x0 mcause=0x0 frontend_pc=0x80000008
|
||||
[65] CSR commit slot0=1 slot1=0 addr=0x305 cmd=1 next=0x0 mtvec=0x0
|
||||
[66] CSR commit slot0=1 slot1=0 addr=0x744 cmd=5 next=0x800000e8 mtvec=0x800000e8
|
||||
[71] CSR commit slot0=1 slot1=0 addr=0x305 cmd=1 next=0x0 mtvec=0x800000e8
|
||||
[72] CSR commit slot0=1 slot1=0 addr=0x180 cmd=5 next=0x800000f8 mtvec=0x800000f8
|
||||
[77] CSR commit slot0=1 slot1=0 addr=0x305 cmd=1 next=0x0 mtvec=0x800000f8
|
||||
[83] CSR commit slot0=1 slot1=0 addr=0x3b0 cmd=1 next=0x0 mtvec=0x8000011c
|
||||
[86] CSR commit slot0=1 slot1=0 addr=0x3a0 cmd=1 next=0x0 mtvec=0x8000011c
|
||||
[87] CSR commit slot0=1 slot1=0 addr=0x304 cmd=5 next=0x1f mtvec=0x8000011c
|
||||
[92] CSR commit slot0=1 slot1=0 addr=0x305 cmd=1 next=0x0 mtvec=0x8000011c
|
||||
[93] CSR commit slot0=1 slot1=0 addr=0x302 cmd=5 next=0x80000134 mtvec=0x80000134
|
||||
[95] CSR commit slot0=1 slot1=0 addr=0x303 cmd=5 next=0x0 mtvec=0x80000134
|
||||
[101] CSR commit slot0=1 slot1=0 addr=0x305 cmd=1 next=0x0 mtvec=0x80000134
|
||||
[105] FLUSH exception=0 mtvec=0x80000004 mepc=0x0 mcause=0x0 frontend_pc=0x80000158
|
||||
[114] FLUSH exception=0 mtvec=0x80000004 mepc=0x0 mcause=0x0 frontend_pc=0x80000170
|
||||
[120] CSR commit slot0=1 slot1=0 addr=0x300 cmd=5 next=0x0 mtvec=0x80000004
|
||||
[126] CSR commit slot0=1 slot1=0 addr=0x300 cmd=2 next=0x0 mtvec=0x80000004
|
||||
[130] CSR commit slot0=1 slot1=0 addr=0x341 cmd=1 next=0x0 mtvec=0x80000004
|
||||
[133] FLUSH exception=0 mtvec=0x80000004 mepc=0x800001a0 mcause=0x0 frontend_pc=0x800001a8
|
||||
[141] CSR commit slot0=1 slot1=0 addr=0x305 cmd=1 next=0x0 mtvec=0x80000004
|
||||
[142] FLUSH exception=1 mtvec=0x800001b0 mepc=0x800001a0 mcause=0x0 frontend_pc=0x800001b8
|
||||
[147] CSR commit slot0=1 slot1=0 addr=0x305 cmd=1 next=0x0 mtvec=0x800001b0
|
||||
[150] FLUSH exception=1 mtvec=0x80000004 mepc=0x800001ac mcause=0x2 frontend_pc=0x800001c0
|
||||
[171] FLUSH exception=0 mtvec=0x80000004 mepc=0x800001b8 mcause=0x2 frontend_pc=0x80000038
|
||||
[177] FLUSH exception=0 mtvec=0x80000004 mepc=0x800001b8 mcause=0x2 frontend_pc=0x80000200
|
||||
[193] FLUSH exception=1 mtvec=0x80000004 mepc=0x800001b8 mcause=0x2 frontend_pc=0x800001f0
|
||||
[205] FLUSH exception=0 mtvec=0x80000004 mepc=0x800001e4 mcause=0xb frontend_pc=0x80000028
|
||||
[213] STORE addr=0x80001000 data=0x5 size=2
|
||||
Loaded segment: paddr=0x80000000 size=576
|
||||
Loaded segment: paddr=0x80001000 size=72
|
||||
ELF loaded: entry=0x80000000
|
||||
[213] TEST FAILED: error code 2
|
||||
rv64mi-p-ld-misaligned: exit=0 PASS
|
||||
rv64mi-p-lh-misaligned: exit=0 PASS
|
||||
rv64mi-p-lw-misaligned: exit=0 PASS
|
||||
rv64mi-p-ma_addr: exit=0 PASS
|
||||
rv64mi-p-ma_fetch: exit=0 PASS
|
||||
rv64mi-p-mcsr: exit=1 FAIL
|
||||
[5] FLUSH exception=0 mtvec=0x0 mepc=0x0 mcause=0x0 frontend_pc=0x80000008
|
||||
[63] CSR commit slot0=1 slot1=0 addr=0x305 cmd=1 next=0x0 mtvec=0x0
|
||||
[65] CSR commit slot0=1 slot1=0 addr=0x744 cmd=5 next=0x0 mtvec=0x800000e4
|
||||
[69] CSR commit slot0=1 slot1=0 addr=0x305 cmd=1 next=0x0 mtvec=0x800000e4
|
||||
[71] CSR commit slot0=1 slot1=0 addr=0x180 cmd=5 next=0x0 mtvec=0x800000f4
|
||||
[75] CSR commit slot0=1 slot1=0 addr=0x305 cmd=1 next=0x0 mtvec=0x800000f4
|
||||
[81] CSR commit slot0=1 slot1=0 addr=0x3b0 cmd=1 next=0x0 mtvec=0x80000118
|
||||
[84] CSR commit slot0=1 slot1=0 addr=0x3a0 cmd=1 next=0x0 mtvec=0x80000118
|
||||
[86] CSR commit slot0=1 slot1=0 addr=0x304 cmd=5 next=0x0 mtvec=0x80000118
|
||||
[90] CSR commit slot0=1 slot1=0 addr=0x305 cmd=1 next=0x0 mtvec=0x80000118
|
||||
[92] CSR commit slot0=1 slot1=0 addr=0x302 cmd=5 next=0x0 mtvec=0x80000130
|
||||
[93] CSR commit slot0=1 slot1=0 addr=0x303 cmd=5 next=0x0 mtvec=0x80000130
|
||||
[99] CSR commit slot0=1 slot1=0 addr=0x305 cmd=1 next=0x0 mtvec=0x80000130
|
||||
[104] FLUSH exception=0 mtvec=0x80000004 mepc=0x0 mcause=0x0 frontend_pc=0x80000150
|
||||
[111] FLUSH exception=0 mtvec=0x80000004 mepc=0x0 mcause=0x0 frontend_pc=0x80000170
|
||||
[117] CSR commit slot0=1 slot1=0 addr=0x300 cmd=5 next=0x0 mtvec=0x80000004
|
||||
[121] CSR commit slot0=1 slot1=0 addr=0x300 cmd=2 next=0x0 mtvec=0x80000004
|
||||
[126] CSR commit slot0=1 slot1=0 addr=0x341 cmd=1 next=0x0 mtvec=0x80000004
|
||||
[129] FLUSH exception=0 mtvec=0x80000004 mepc=0x8000019c mcause=0x0 frontend_pc=0x800001a0
|
||||
[149] FLUSH exception=1 mtvec=0x80000004 mepc=0x8000019c mcause=0x0 frontend_pc=0x800001c8
|
||||
[167] FLUSH exception=0 mtvec=0x80000004 mepc=0x800001c0 mcause=0x2 frontend_pc=0x80000030
|
||||
[175] FLUSH exception=0 mtvec=0x80000004 mepc=0x800001c0 mcause=0x2 frontend_pc=0x80000038
|
||||
[185] STORE addr=0x80001000 data=0x53b size=2
|
||||
Loaded segment: paddr=0x80000000 size=572
|
||||
Loaded segment: paddr=0x80001000 size=72
|
||||
ELF loaded: entry=0x80000000
|
||||
[185] TEST FAILED: error code 669
|
||||
rv64mi-p-pmpaddr: exit=0 PASS
|
||||
rv64mi-p-sbreak: exit=0 PASS
|
||||
rv64mi-p-scall: exit=0 PASS
|
||||
rv64mi-p-sd-misaligned: exit=0 PASS
|
||||
rv64mi-p-sh-misaligned: exit=0 PASS
|
||||
rv64mi-p-sw-misaligned: exit=0 PASS
|
||||
rv64mi-p-zicntr: exit=0 PASS
|
||||
rv64si-p-csr: exit=0 PASS
|
||||
rv64si-p-dirty: exit=124 TIMEOUT
|
||||
rv64si-p-icache-alias: exit=124 TIMEOUT
|
||||
rv64si-p-ma_fetch: exit=0 PASS
|
||||
rv64si-p-sbreak: exit=0 PASS
|
||||
rv64si-p-scall: exit=0 PASS
|
||||
rv64si-p-wfi: exit=0 PASS
|
||||
rv64ui-p-fence_i: exit=0 PASS
|
||||
|
||||
=================================
|
||||
Summary:
|
||||
PASS: 21
|
||||
FAIL: 2
|
||||
TIMEOUT: 2
|
||||
TOTAL: 25
|
||||
Reference in New Issue
Block a user