192 lines
6.6 KiB
Plaintext
192 lines
6.6 KiB
Plaintext
|
|
/home/ubuntu/tinyriscv/tests/riscv-compliance/build_generated/rv32Zicsr/I-CSRRCI-01.elf: file format elf32-littleriscv
|
|
|
|
|
|
Disassembly of section .text.init:
|
|
|
|
00000000 <_start>:
|
|
0: 0480006f j 48 <reset_vector>
|
|
|
|
00000004 <trap_vector>:
|
|
4: 34202f73 csrr t5,mcause
|
|
8: 00800f93 li t6,8
|
|
c: 03ff0863 beq t5,t6,3c <write_tohost>
|
|
10: 00900f93 li t6,9
|
|
14: 03ff0463 beq t5,t6,3c <write_tohost>
|
|
18: 00b00f93 li t6,11
|
|
1c: 03ff0063 beq t5,t6,3c <write_tohost>
|
|
20: 00000f13 li t5,0
|
|
24: 000f0463 beqz t5,2c <trap_vector+0x28>
|
|
28: 000f0067 jr t5
|
|
2c: 34202f73 csrr t5,mcause
|
|
30: 000f5463 bgez t5,38 <handle_exception>
|
|
34: 0040006f j 38 <handle_exception>
|
|
|
|
00000038 <handle_exception>:
|
|
38: 5391e193 ori gp,gp,1337
|
|
|
|
0000003c <write_tohost>:
|
|
3c: 00001f17 auipc t5,0x1
|
|
40: fc3f2223 sw gp,-60(t5) # 1000 <tohost>
|
|
44: ff9ff06f j 3c <write_tohost>
|
|
|
|
00000048 <reset_vector>:
|
|
48: 00000193 li gp,0
|
|
4c: 00000297 auipc t0,0x0
|
|
50: fb828293 addi t0,t0,-72 # 4 <trap_vector>
|
|
54: 30529073 csrw mtvec,t0
|
|
58: 30005073 csrwi mstatus,0
|
|
5c: 00000297 auipc t0,0x0
|
|
60: 02028293 addi t0,t0,32 # 7c <begin_testcode>
|
|
64: 34129073 csrw mepc,t0
|
|
68: 00000293 li t0,0
|
|
6c: 20000337 lui t1,0x20000
|
|
70: 01030313 addi t1,t1,16 # 20000010 <_end+0x1fffde0c>
|
|
74: 00532023 sw t0,0(t1)
|
|
78: 30200073 mret
|
|
|
|
0000007c <begin_testcode>:
|
|
7c: 00002797 auipc a5,0x2
|
|
80: f8478793 addi a5,a5,-124 # 2000 <begin_signature>
|
|
84: fff00413 li s0,-1
|
|
88: 34041073 csrw mscratch,s0
|
|
8c: 3400f0f3 csrrci ra,mscratch,1
|
|
90: 340410f3 csrrw ra,mscratch,s0
|
|
94: 34007173 csrrci sp,mscratch,0
|
|
98: 34041173 csrrw sp,mscratch,s0
|
|
9c: 340ff1f3 csrrci gp,mscratch,31
|
|
a0: 340411f3 csrrw gp,mscratch,s0
|
|
a4: 34087273 csrrci tp,mscratch,16
|
|
a8: 34041273 csrrw tp,mscratch,s0
|
|
ac: 3407f2f3 csrrci t0,mscratch,15
|
|
b0: 340412f3 csrrw t0,mscratch,s0
|
|
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: 0087ac23 sw s0,24(a5)
|
|
d0: 00002297 auipc t0,0x2
|
|
d4: f4c28293 addi t0,t0,-180 # 201c <test_A2_res>
|
|
d8: fff00413 li s0,-1
|
|
dc: 34041073 csrw mscratch,s0
|
|
e0: 3400f5f3 csrrci a1,mscratch,1
|
|
e4: 34007673 csrrci a2,mscratch,0
|
|
e8: 340ff6f3 csrrci a3,mscratch,31
|
|
ec: 34087773 csrrci a4,mscratch,16
|
|
f0: 3407f7f3 csrrci a5,mscratch,15
|
|
f4: 34007873 csrrci a6,mscratch,0
|
|
f8: 00b2a023 sw a1,0(t0)
|
|
fc: 00c2a223 sw a2,4(t0)
|
|
100: 00d2a423 sw a3,8(t0)
|
|
104: 00e2a623 sw a4,12(t0)
|
|
108: 00f2a823 sw a5,16(t0)
|
|
10c: 0102aa23 sw a6,20(t0)
|
|
110: 0082ac23 sw s0,24(t0)
|
|
114: 00002097 auipc ra,0x2
|
|
118: f2408093 addi ra,ra,-220 # 2038 <test_B_res>
|
|
11c: 32165a37 lui s4,0x32165
|
|
120: 498a0a13 addi s4,s4,1176 # 32165498 <_end+0x32163294>
|
|
124: 340a1073 csrw mscratch,s4
|
|
128: 3407f073 csrci mscratch,15
|
|
12c: 340a1a73 csrrw s4,mscratch,s4
|
|
130: 0000a023 sw zero,0(ra)
|
|
134: 0140a223 sw s4,4(ra)
|
|
138: 00002297 auipc t0,0x2
|
|
13c: ec828293 addi t0,t0,-312 # 2000 <begin_signature>
|
|
140: 20000337 lui t1,0x20000
|
|
144: 00830313 addi t1,t1,8 # 20000008 <_end+0x1fffde04>
|
|
148: 00532023 sw t0,0(t1)
|
|
14c: 00002297 auipc t0,0x2
|
|
150: ef428293 addi t0,t0,-268 # 2040 <end_signature>
|
|
154: 20000337 lui t1,0x20000
|
|
158: 00c30313 addi t1,t1,12 # 2000000c <_end+0x1fffde08>
|
|
15c: 00532023 sw t0,0(t1)
|
|
160: 00100293 li t0,1
|
|
164: 20000337 lui t1,0x20000
|
|
168: 01030313 addi t1,t1,16 # 20000010 <_end+0x1fffde0c>
|
|
16c: 00532023 sw t0,0(t1)
|
|
170: 00000013 nop
|
|
174: 00100193 li gp,1
|
|
178: 00000073 ecall
|
|
|
|
0000017c <end_testcode>:
|
|
17c: 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
|
|
2018: ffff 0xffff
|
|
201a: ffff 0xffff
|
|
|
|
0000201c <test_A2_res>:
|
|
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
|
|
2034: ffff 0xffff
|
|
2036: ffff 0xffff
|
|
|
|
00002038 <test_B_res>:
|
|
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
|
|
...
|
|
|
|
Disassembly of section .riscv.attributes:
|
|
|
|
00000000 <.riscv.attributes>:
|
|
0: 1d41 addi s10,s10,-16
|
|
2: 0000 unimp
|
|
4: 7200 flw fs0,32(a2)
|
|
6: 7369 lui t1,0xffffa
|
|
8: 01007663 bgeu zero,a6,14 <trap_vector+0x10>
|
|
c: 00000013 nop
|
|
10: 7205 lui tp,0xfffe1
|
|
12: 3376 fld ft6,376(sp)
|
|
14: 6932 flw fs2,12(sp)
|
|
16: 7032 flw ft0,44(sp)
|
|
18: 0030 addi a2,sp,8
|
|
1a: 0108 addi a0,sp,128
|
|
1c: 0b0a slli s6,s6,0x2
|