175 lines
6.0 KiB
Plaintext
175 lines
6.0 KiB
Plaintext
|
|
D:/gitee/tmp/tinyriscv/tests/riscv-compliance/build_generated/rv32Zicsr/I-CSRRSI-01.elf: file format elf32-littleriscv
|
|
|
|
|
|
Disassembly of section .text.init:
|
|
|
|
00000000 <_start>:
|
|
0: 04c0006f j 4c <reset_vector>
|
|
|
|
00000004 <trap_vector>:
|
|
4: 34202f73 csrr t5,mcause
|
|
8: 00800f93 li t6,8
|
|
c: 03ff0a63 beq t5,t6,40 <write_tohost>
|
|
10: 00900f93 li t6,9
|
|
14: 03ff0663 beq t5,t6,40 <write_tohost>
|
|
18: 00b00f93 li t6,11
|
|
1c: 03ff0263 beq t5,t6,40 <write_tohost>
|
|
20: 00000f17 auipc t5,0x0
|
|
24: fe0f0f13 addi t5,t5,-32 # 0 <_start>
|
|
28: 000f0463 beqz t5,30 <trap_vector+0x2c>
|
|
2c: 000f0067 jr t5
|
|
30: 34202f73 csrr t5,mcause
|
|
34: 000f5463 bgez t5,3c <handle_exception>
|
|
38: 0040006f j 3c <handle_exception>
|
|
|
|
0000003c <handle_exception>:
|
|
3c: 5391e193 ori gp,gp,1337
|
|
|
|
00000040 <write_tohost>:
|
|
40: 00001f17 auipc t5,0x1
|
|
44: fc3f2023 sw gp,-64(t5) # 1000 <tohost>
|
|
48: ff9ff06f j 40 <write_tohost>
|
|
|
|
0000004c <reset_vector>:
|
|
4c: 00000193 li gp,0
|
|
50: 00000297 auipc t0,0x0
|
|
54: fb428293 addi t0,t0,-76 # 4 <trap_vector>
|
|
58: 30529073 csrw mtvec,t0
|
|
5c: 30005073 csrwi mstatus,0
|
|
60: 00000297 auipc t0,0x0
|
|
64: 02028293 addi t0,t0,32 # 80 <begin_testcode>
|
|
68: 34129073 csrw mepc,t0
|
|
6c: 00000293 li t0,0
|
|
70: 10000337 lui t1,0x10000
|
|
74: 01030313 addi t1,t1,16 # 10000010 <_end+0xfffde0c>
|
|
78: 00532023 sw t0,0(t1)
|
|
7c: 30200073 mret
|
|
|
|
00000080 <begin_testcode>:
|
|
80: 00002797 auipc a5,0x2
|
|
84: f8078793 addi a5,a5,-128 # 2000 <begin_signature>
|
|
88: 34001073 csrw mscratch,zero
|
|
8c: 3400e0f3 csrrsi ra,mscratch,1
|
|
90: 340010f3 csrrw ra,mscratch,zero
|
|
94: 34006173 csrrsi sp,mscratch,0
|
|
98: 34001173 csrrw sp,mscratch,zero
|
|
9c: 340fe1f3 csrrsi gp,mscratch,31
|
|
a0: 340011f3 csrrw gp,mscratch,zero
|
|
a4: 34086273 csrrsi tp,mscratch,16
|
|
a8: 34001273 csrrw tp,mscratch,zero
|
|
ac: 3407e2f3 csrrsi t0,mscratch,15
|
|
b0: 340012f3 csrrw t0,mscratch,zero
|
|
b4: 0007a023 sw zero,0(a5)
|
|
b8: 0017a223 sw ra,4(a5)
|
|
bc: 0027a423 sw sp,8(a5)
|
|
c0: 0037a623 sw gp,12(a5)
|
|
c4: 0047a823 sw tp,16(a5)
|
|
c8: 0057aa23 sw t0,20(a5)
|
|
cc: 00002297 auipc t0,0x2
|
|
d0: f4c28293 addi t0,t0,-180 # 2018 <test_A2_res>
|
|
d4: 34001073 csrw mscratch,zero
|
|
d8: 3400e5f3 csrrsi a1,mscratch,1
|
|
dc: 34006673 csrrsi a2,mscratch,0
|
|
e0: 340fe6f3 csrrsi a3,mscratch,31
|
|
e4: 34086773 csrrsi a4,mscratch,16
|
|
e8: 3407e7f3 csrrsi a5,mscratch,15
|
|
ec: 34006873 csrrsi a6,mscratch,0
|
|
f0: 0002a023 sw zero,0(t0)
|
|
f4: 00b2a223 sw a1,4(t0)
|
|
f8: 00c2a423 sw a2,8(t0)
|
|
fc: 00d2a623 sw a3,12(t0)
|
|
100: 00e2a823 sw a4,16(t0)
|
|
104: 00f2aa23 sw a5,20(t0)
|
|
108: 0102ac23 sw a6,24(t0)
|
|
10c: 00002097 auipc ra,0x2
|
|
110: f2808093 addi ra,ra,-216 # 2034 <test_B_res>
|
|
114: 32165a37 lui s4,0x32165
|
|
118: 498a0a13 addi s4,s4,1176 # 32165498 <_end+0x32163294>
|
|
11c: 340a1073 csrw mscratch,s4
|
|
120: 3407e073 csrsi mscratch,15
|
|
124: 340a1af3 csrrw s5,mscratch,s4
|
|
128: 0000a023 sw zero,0(ra)
|
|
12c: 0150a223 sw s5,4(ra)
|
|
130: 0140a423 sw s4,8(ra)
|
|
134: 00002297 auipc t0,0x2
|
|
138: ecc28293 addi t0,t0,-308 # 2000 <begin_signature>
|
|
13c: 10000337 lui t1,0x10000
|
|
140: 00830313 addi t1,t1,8 # 10000008 <_end+0xfffde04>
|
|
144: 00532023 sw t0,0(t1)
|
|
148: 00002297 auipc t0,0x2
|
|
14c: ef828293 addi t0,t0,-264 # 2040 <end_signature>
|
|
150: 10000337 lui t1,0x10000
|
|
154: 00c30313 addi t1,t1,12 # 1000000c <_end+0xfffde08>
|
|
158: 00532023 sw t0,0(t1)
|
|
15c: 00100293 li t0,1
|
|
160: 10000337 lui t1,0x10000
|
|
164: 01030313 addi t1,t1,16 # 10000010 <_end+0xfffde0c>
|
|
168: 00532023 sw t0,0(t1)
|
|
16c: 00000013 nop
|
|
170: 00100193 li gp,1
|
|
174: 00000073 ecall
|
|
|
|
00000178 <end_testcode>:
|
|
178: c0001073 unimp
|
|
...
|
|
|
|
Disassembly of section .tohost:
|
|
|
|
00001000 <tohost>:
|
|
...
|
|
|
|
00001100 <fromhost>:
|
|
...
|
|
|
|
Disassembly of section .data:
|
|
|
|
00002000 <begin_signature>:
|
|
2000: ffff 0xffff
|
|
2002: ffff 0xffff
|
|
2004: ffff 0xffff
|
|
2006: ffff 0xffff
|
|
2008: ffff 0xffff
|
|
200a: ffff 0xffff
|
|
200c: ffff 0xffff
|
|
200e: ffff 0xffff
|
|
2010: ffff 0xffff
|
|
2012: ffff 0xffff
|
|
2014: ffff 0xffff
|
|
2016: ffff 0xffff
|
|
|
|
00002018 <test_A2_res>:
|
|
2018: ffff 0xffff
|
|
201a: ffff 0xffff
|
|
201c: ffff 0xffff
|
|
201e: ffff 0xffff
|
|
2020: ffff 0xffff
|
|
2022: ffff 0xffff
|
|
2024: ffff 0xffff
|
|
2026: ffff 0xffff
|
|
2028: ffff 0xffff
|
|
202a: ffff 0xffff
|
|
202c: ffff 0xffff
|
|
202e: ffff 0xffff
|
|
2030: ffff 0xffff
|
|
2032: ffff 0xffff
|
|
|
|
00002034 <test_B_res>:
|
|
2034: ffff 0xffff
|
|
2036: ffff 0xffff
|
|
2038: ffff 0xffff
|
|
203a: ffff 0xffff
|
|
203c: ffff 0xffff
|
|
203e: ffff 0xffff
|
|
|
|
00002040 <end_signature>:
|
|
...
|
|
|
|
00002100 <begin_regstate>:
|
|
2100: 0080 addi s0,sp,64
|
|
...
|
|
|
|
00002200 <end_regstate>:
|
|
2200: 0004 0x4
|
|
...
|