1 |
11 |
rafaelcalc |
|
2 |
|
|
rv32ui-p-sltiu: formato do arquivo elf32-littleriscv
|
3 |
|
|
|
4 |
|
|
|
5 |
|
|
Desmontagem da seção .text.init:
|
6 |
|
|
|
7 |
|
|
80000000 <_start>:
|
8 |
|
|
80000000: 0480006f j 80000048
|
9 |
|
|
|
10 |
|
|
80000004 :
|
11 |
|
|
80000004: 34202f73 csrr t5,mcause
|
12 |
|
|
80000008: 00800f93 li t6,8
|
13 |
|
|
8000000c: 03ff0863 beq t5,t6,8000003c
|
14 |
|
|
80000010: 00900f93 li t6,9
|
15 |
|
|
80000014: 03ff0463 beq t5,t6,8000003c
|
16 |
|
|
80000018: 00b00f93 li t6,11
|
17 |
|
|
8000001c: 03ff0063 beq t5,t6,8000003c
|
18 |
|
|
80000020: 00000f13 li t5,0
|
19 |
|
|
80000024: 000f0463 beqz t5,8000002c
|
20 |
|
|
80000028: 000f0067 jr t5
|
21 |
|
|
8000002c: 34202f73 csrr t5,mcause
|
22 |
|
|
80000030: 000f5463 bgez t5,80000038
|
23 |
|
|
80000034: 0040006f j 80000038
|
24 |
|
|
|
25 |
|
|
80000038 :
|
26 |
|
|
80000038: 5391e193 ori gp,gp,1337
|
27 |
|
|
|
28 |
|
|
8000003c :
|
29 |
|
|
8000003c: 00001f17 auipc t5,0x1
|
30 |
|
|
80000040: fc3f2223 sw gp,-60(t5) # 80001000
|
31 |
|
|
80000044: ff9ff06f j 8000003c
|
32 |
|
|
|
33 |
|
|
80000048 :
|
34 |
|
|
80000048: 00000093 li ra,0
|
35 |
|
|
8000004c: 00000113 li sp,0
|
36 |
|
|
80000050: 00000193 li gp,0
|
37 |
|
|
80000054: 00000213 li tp,0
|
38 |
|
|
80000058: 00000293 li t0,0
|
39 |
|
|
8000005c: 00000313 li t1,0
|
40 |
|
|
80000060: 00000393 li t2,0
|
41 |
|
|
80000064: 00000413 li s0,0
|
42 |
|
|
80000068: 00000493 li s1,0
|
43 |
|
|
8000006c: 00000513 li a0,0
|
44 |
|
|
80000070: 00000593 li a1,0
|
45 |
|
|
80000074: 00000613 li a2,0
|
46 |
|
|
80000078: 00000693 li a3,0
|
47 |
|
|
8000007c: 00000713 li a4,0
|
48 |
|
|
80000080: 00000793 li a5,0
|
49 |
|
|
80000084: 00000813 li a6,0
|
50 |
|
|
80000088: 00000893 li a7,0
|
51 |
|
|
8000008c: 00000913 li s2,0
|
52 |
|
|
80000090: 00000993 li s3,0
|
53 |
|
|
80000094: 00000a13 li s4,0
|
54 |
|
|
80000098: 00000a93 li s5,0
|
55 |
|
|
8000009c: 00000b13 li s6,0
|
56 |
|
|
800000a0: 00000b93 li s7,0
|
57 |
|
|
800000a4: 00000c13 li s8,0
|
58 |
|
|
800000a8: 00000c93 li s9,0
|
59 |
|
|
800000ac: 00000d13 li s10,0
|
60 |
|
|
800000b0: 00000d93 li s11,0
|
61 |
|
|
800000b4: 00000e13 li t3,0
|
62 |
|
|
800000b8: 00000e93 li t4,0
|
63 |
|
|
800000bc: 00000f13 li t5,0
|
64 |
|
|
800000c0: 00000f93 li t6,0
|
65 |
|
|
800000c4: f1402573 csrr a0,mhartid
|
66 |
|
|
800000c8: 00051063 bnez a0,800000c8
|
67 |
|
|
800000cc: 00000297 auipc t0,0x0
|
68 |
|
|
800000d0: 01028293 addi t0,t0,16 # 800000dc
|
69 |
|
|
800000d4: 30529073 csrw mtvec,t0
|
70 |
|
|
800000d8: 18005073 csrwi satp,0
|
71 |
|
|
800000dc: 00000297 auipc t0,0x0
|
72 |
|
|
800000e0: 02028293 addi t0,t0,32 # 800000fc
|
73 |
|
|
800000e4: 30529073 csrw mtvec,t0
|
74 |
|
|
800000e8: 800002b7 lui t0,0x80000
|
75 |
|
|
800000ec: fff28293 addi t0,t0,-1 # 7fffffff <_end+0xffffdfff>
|
76 |
|
|
800000f0: 3b029073 csrw pmpaddr0,t0
|
77 |
|
|
800000f4: 01f00293 li t0,31
|
78 |
|
|
800000f8: 3a029073 csrw pmpcfg0,t0
|
79 |
|
|
800000fc: 00000297 auipc t0,0x0
|
80 |
|
|
80000100: 01828293 addi t0,t0,24 # 80000114
|
81 |
|
|
80000104: 30529073 csrw mtvec,t0
|
82 |
|
|
80000108: 30205073 csrwi medeleg,0
|
83 |
|
|
8000010c: 30305073 csrwi mideleg,0
|
84 |
|
|
80000110: 30405073 csrwi mie,0
|
85 |
|
|
80000114: 00000193 li gp,0
|
86 |
|
|
80000118: 00000297 auipc t0,0x0
|
87 |
|
|
8000011c: eec28293 addi t0,t0,-276 # 80000004
|
88 |
|
|
80000120: 30529073 csrw mtvec,t0
|
89 |
|
|
80000124: 00100513 li a0,1
|
90 |
|
|
80000128: 01f51513 slli a0,a0,0x1f
|
91 |
|
|
8000012c: 00054c63 bltz a0,80000144
|
92 |
|
|
80000130: 0ff0000f fence
|
93 |
|
|
80000134: 00100193 li gp,1
|
94 |
|
|
80000138: 05d00893 li a7,93
|
95 |
|
|
8000013c: 00000513 li a0,0
|
96 |
|
|
80000140: 00000073 ecall
|
97 |
|
|
80000144: 00000293 li t0,0
|
98 |
|
|
80000148: 00028a63 beqz t0,8000015c
|
99 |
|
|
8000014c: 10529073 csrw stvec,t0
|
100 |
|
|
80000150: 0000b2b7 lui t0,0xb
|
101 |
|
|
80000154: 10928293 addi t0,t0,265 # b109 <_start-0x7fff4ef7>
|
102 |
|
|
80000158: 30229073 csrw medeleg,t0
|
103 |
|
|
8000015c: 30005073 csrwi mstatus,0
|
104 |
|
|
80000160: 00000297 auipc t0,0x0
|
105 |
|
|
80000164: 01428293 addi t0,t0,20 # 80000174
|
106 |
|
|
80000168: 34129073 csrw mepc,t0
|
107 |
|
|
8000016c: f1402573 csrr a0,mhartid
|
108 |
|
|
80000170: 30200073 mret
|
109 |
|
|
|
110 |
|
|
80000174 :
|
111 |
|
|
80000174: 00000093 li ra,0
|
112 |
|
|
80000178: 0000b713 sltiu a4,ra,0
|
113 |
|
|
8000017c: 00000393 li t2,0
|
114 |
|
|
80000180: 00200193 li gp,2
|
115 |
|
|
80000184: 26771263 bne a4,t2,800003e8
|
116 |
|
|
|
117 |
|
|
80000188 :
|
118 |
|
|
80000188: 00100093 li ra,1
|
119 |
|
|
8000018c: 0010b713 seqz a4,ra
|
120 |
|
|
80000190: 00000393 li t2,0
|
121 |
|
|
80000194: 00300193 li gp,3
|
122 |
|
|
80000198: 24771863 bne a4,t2,800003e8
|
123 |
|
|
|
124 |
|
|
8000019c :
|
125 |
|
|
8000019c: 00300093 li ra,3
|
126 |
|
|
800001a0: 0070b713 sltiu a4,ra,7
|
127 |
|
|
800001a4: 00100393 li t2,1
|
128 |
|
|
800001a8: 00400193 li gp,4
|
129 |
|
|
800001ac: 22771e63 bne a4,t2,800003e8
|
130 |
|
|
|
131 |
|
|
800001b0 :
|
132 |
|
|
800001b0: 00700093 li ra,7
|
133 |
|
|
800001b4: 0030b713 sltiu a4,ra,3
|
134 |
|
|
800001b8: 00000393 li t2,0
|
135 |
|
|
800001bc: 00500193 li gp,5
|
136 |
|
|
800001c0: 22771463 bne a4,t2,800003e8
|
137 |
|
|
|
138 |
|
|
800001c4 :
|
139 |
|
|
800001c4: 00000093 li ra,0
|
140 |
|
|
800001c8: 8000b713 sltiu a4,ra,-2048
|
141 |
|
|
800001cc: 00100393 li t2,1
|
142 |
|
|
800001d0: 00600193 li gp,6
|
143 |
|
|
800001d4: 20771a63 bne a4,t2,800003e8
|
144 |
|
|
|
145 |
|
|
800001d8 :
|
146 |
|
|
800001d8: 800000b7 lui ra,0x80000
|
147 |
|
|
800001dc: 0000b713 sltiu a4,ra,0
|
148 |
|
|
800001e0: 00000393 li t2,0
|
149 |
|
|
800001e4: 00700193 li gp,7
|
150 |
|
|
800001e8: 20771063 bne a4,t2,800003e8
|
151 |
|
|
|
152 |
|
|
800001ec :
|
153 |
|
|
800001ec: 800000b7 lui ra,0x80000
|
154 |
|
|
800001f0: 8000b713 sltiu a4,ra,-2048
|
155 |
|
|
800001f4: 00100393 li t2,1
|
156 |
|
|
800001f8: 00800193 li gp,8
|
157 |
|
|
800001fc: 1e771663 bne a4,t2,800003e8
|
158 |
|
|
|
159 |
|
|
80000200 :
|
160 |
|
|
80000200: 00000093 li ra,0
|
161 |
|
|
80000204: 7ff0b713 sltiu a4,ra,2047
|
162 |
|
|
80000208: 00100393 li t2,1
|
163 |
|
|
8000020c: 00900193 li gp,9
|
164 |
|
|
80000210: 1c771c63 bne a4,t2,800003e8
|
165 |
|
|
|
166 |
|
|
80000214 :
|
167 |
|
|
80000214: 800000b7 lui ra,0x80000
|
168 |
|
|
80000218: fff08093 addi ra,ra,-1 # 7fffffff <_end+0xffffdfff>
|
169 |
|
|
8000021c: 0000b713 sltiu a4,ra,0
|
170 |
|
|
80000220: 00000393 li t2,0
|
171 |
|
|
80000224: 00a00193 li gp,10
|
172 |
|
|
80000228: 1c771063 bne a4,t2,800003e8
|
173 |
|
|
|
174 |
|
|
8000022c :
|
175 |
|
|
8000022c: 800000b7 lui ra,0x80000
|
176 |
|
|
80000230: fff08093 addi ra,ra,-1 # 7fffffff <_end+0xffffdfff>
|
177 |
|
|
80000234: 7ff0b713 sltiu a4,ra,2047
|
178 |
|
|
80000238: 00000393 li t2,0
|
179 |
|
|
8000023c: 00b00193 li gp,11
|
180 |
|
|
80000240: 1a771463 bne a4,t2,800003e8
|
181 |
|
|
|
182 |
|
|
80000244 :
|
183 |
|
|
80000244: 800000b7 lui ra,0x80000
|
184 |
|
|
80000248: 7ff0b713 sltiu a4,ra,2047
|
185 |
|
|
8000024c: 00000393 li t2,0
|
186 |
|
|
80000250: 00c00193 li gp,12
|
187 |
|
|
80000254: 18771a63 bne a4,t2,800003e8
|
188 |
|
|
|
189 |
|
|
80000258 :
|
190 |
|
|
80000258: 800000b7 lui ra,0x80000
|
191 |
|
|
8000025c: fff08093 addi ra,ra,-1 # 7fffffff <_end+0xffffdfff>
|
192 |
|
|
80000260: 8000b713 sltiu a4,ra,-2048
|
193 |
|
|
80000264: 00100393 li t2,1
|
194 |
|
|
80000268: 00d00193 li gp,13
|
195 |
|
|
8000026c: 16771e63 bne a4,t2,800003e8
|
196 |
|
|
|
197 |
|
|
80000270 :
|
198 |
|
|
80000270: 00000093 li ra,0
|
199 |
|
|
80000274: fff0b713 sltiu a4,ra,-1
|
200 |
|
|
80000278: 00100393 li t2,1
|
201 |
|
|
8000027c: 00e00193 li gp,14
|
202 |
|
|
80000280: 16771463 bne a4,t2,800003e8
|
203 |
|
|
|
204 |
|
|
80000284 :
|
205 |
|
|
80000284: fff00093 li ra,-1
|
206 |
|
|
80000288: 0010b713 seqz a4,ra
|
207 |
|
|
8000028c: 00000393 li t2,0
|
208 |
|
|
80000290: 00f00193 li gp,15
|
209 |
|
|
80000294: 14771a63 bne a4,t2,800003e8
|
210 |
|
|
|
211 |
|
|
80000298 :
|
212 |
|
|
80000298: fff00093 li ra,-1
|
213 |
|
|
8000029c: fff0b713 sltiu a4,ra,-1
|
214 |
|
|
800002a0: 00000393 li t2,0
|
215 |
|
|
800002a4: 01000193 li gp,16
|
216 |
|
|
800002a8: 14771063 bne a4,t2,800003e8
|
217 |
|
|
|
218 |
|
|
800002ac :
|
219 |
|
|
800002ac: 00b00093 li ra,11
|
220 |
|
|
800002b0: 00d0b093 sltiu ra,ra,13
|
221 |
|
|
800002b4: 00100393 li t2,1
|
222 |
|
|
800002b8: 01100193 li gp,17
|
223 |
|
|
800002bc: 12709663 bne ra,t2,800003e8
|
224 |
|
|
|
225 |
|
|
800002c0 :
|
226 |
|
|
800002c0: 00000213 li tp,0
|
227 |
|
|
800002c4: 00f00093 li ra,15
|
228 |
|
|
800002c8: 00a0b713 sltiu a4,ra,10
|
229 |
|
|
800002cc: 00070313 mv t1,a4
|
230 |
|
|
800002d0: 00120213 addi tp,tp,1 # 1 <_start-0x7fffffff>
|
231 |
|
|
800002d4: 00200293 li t0,2
|
232 |
|
|
800002d8: fe5216e3 bne tp,t0,800002c4
|
233 |
|
|
800002dc: 00000393 li t2,0
|
234 |
|
|
800002e0: 01200193 li gp,18
|
235 |
|
|
800002e4: 10731263 bne t1,t2,800003e8
|
236 |
|
|
|
237 |
|
|
800002e8 :
|
238 |
|
|
800002e8: 00000213 li tp,0
|
239 |
|
|
800002ec: 00a00093 li ra,10
|
240 |
|
|
800002f0: 0100b713 sltiu a4,ra,16
|
241 |
|
|
800002f4: 00000013 nop
|
242 |
|
|
800002f8: 00070313 mv t1,a4
|
243 |
|
|
800002fc: 00120213 addi tp,tp,1 # 1 <_start-0x7fffffff>
|
244 |
|
|
80000300: 00200293 li t0,2
|
245 |
|
|
80000304: fe5214e3 bne tp,t0,800002ec
|
246 |
|
|
80000308: 00100393 li t2,1
|
247 |
|
|
8000030c: 01300193 li gp,19
|
248 |
|
|
80000310: 0c731c63 bne t1,t2,800003e8
|
249 |
|
|
|
250 |
|
|
80000314 :
|
251 |
|
|
80000314: 00000213 li tp,0
|
252 |
|
|
80000318: 01000093 li ra,16
|
253 |
|
|
8000031c: 0090b713 sltiu a4,ra,9
|
254 |
|
|
80000320: 00000013 nop
|
255 |
|
|
80000324: 00000013 nop
|
256 |
|
|
80000328: 00070313 mv t1,a4
|
257 |
|
|
8000032c: 00120213 addi tp,tp,1 # 1 <_start-0x7fffffff>
|
258 |
|
|
80000330: 00200293 li t0,2
|
259 |
|
|
80000334: fe5212e3 bne tp,t0,80000318
|
260 |
|
|
80000338: 00000393 li t2,0
|
261 |
|
|
8000033c: 01400193 li gp,20
|
262 |
|
|
80000340: 0a731463 bne t1,t2,800003e8
|
263 |
|
|
|
264 |
|
|
80000344 :
|
265 |
|
|
80000344: 00000213 li tp,0
|
266 |
|
|
80000348: 00b00093 li ra,11
|
267 |
|
|
8000034c: 00f0b713 sltiu a4,ra,15
|
268 |
|
|
80000350: 00120213 addi tp,tp,1 # 1 <_start-0x7fffffff>
|
269 |
|
|
80000354: 00200293 li t0,2
|
270 |
|
|
80000358: fe5218e3 bne tp,t0,80000348
|
271 |
|
|
8000035c: 00100393 li t2,1
|
272 |
|
|
80000360: 01500193 li gp,21
|
273 |
|
|
80000364: 08771263 bne a4,t2,800003e8
|
274 |
|
|
|
275 |
|
|
80000368 :
|
276 |
|
|
80000368: 00000213 li tp,0
|
277 |
|
|
8000036c: 01100093 li ra,17
|
278 |
|
|
80000370: 00000013 nop
|
279 |
|
|
80000374: 0080b713 sltiu a4,ra,8
|
280 |
|
|
80000378: 00120213 addi tp,tp,1 # 1 <_start-0x7fffffff>
|
281 |
|
|
8000037c: 00200293 li t0,2
|
282 |
|
|
80000380: fe5216e3 bne tp,t0,8000036c
|
283 |
|
|
80000384: 00000393 li t2,0
|
284 |
|
|
80000388: 01600193 li gp,22
|
285 |
|
|
8000038c: 04771e63 bne a4,t2,800003e8
|
286 |
|
|
|
287 |
|
|
80000390 :
|
288 |
|
|
80000390: 00000213 li tp,0
|
289 |
|
|
80000394: 00c00093 li ra,12
|
290 |
|
|
80000398: 00000013 nop
|
291 |
|
|
8000039c: 00000013 nop
|
292 |
|
|
800003a0: 00e0b713 sltiu a4,ra,14
|
293 |
|
|
800003a4: 00120213 addi tp,tp,1 # 1 <_start-0x7fffffff>
|
294 |
|
|
800003a8: 00200293 li t0,2
|
295 |
|
|
800003ac: fe5214e3 bne tp,t0,80000394
|
296 |
|
|
800003b0: 00100393 li t2,1
|
297 |
|
|
800003b4: 01700193 li gp,23
|
298 |
|
|
800003b8: 02771863 bne a4,t2,800003e8
|
299 |
|
|
|
300 |
|
|
800003bc :
|
301 |
|
|
800003bc: fff03093 sltiu ra,zero,-1
|
302 |
|
|
800003c0: 00100393 li t2,1
|
303 |
|
|
800003c4: 01800193 li gp,24
|
304 |
|
|
800003c8: 02709063 bne ra,t2,800003e8
|
305 |
|
|
|
306 |
|
|
800003cc :
|
307 |
|
|
800003cc: 00ff00b7 lui ra,0xff0
|
308 |
|
|
800003d0: 0ff08093 addi ra,ra,255 # ff00ff <_start-0x7f00ff01>
|
309 |
|
|
800003d4: fff0b013 sltiu zero,ra,-1
|
310 |
|
|
800003d8: 00000393 li t2,0
|
311 |
|
|
800003dc: 01900193 li gp,25
|
312 |
|
|
800003e0: 00701463 bne zero,t2,800003e8
|
313 |
|
|
800003e4: 02301063 bne zero,gp,80000404
|
314 |
|
|
|
315 |
|
|
800003e8 :
|
316 |
|
|
800003e8: 0ff0000f fence
|
317 |
|
|
800003ec: 00018063 beqz gp,800003ec
|
318 |
|
|
800003f0: 00119193 slli gp,gp,0x1
|
319 |
|
|
800003f4: 0011e193 ori gp,gp,1
|
320 |
|
|
800003f8: 05d00893 li a7,93
|
321 |
|
|
800003fc: 00018513 mv a0,gp
|
322 |
|
|
80000400: 00000073 ecall
|
323 |
|
|
|
324 |
|
|
80000404 :
|
325 |
|
|
80000404: 0ff0000f fence
|
326 |
|
|
80000408: 00100193 li gp,1
|
327 |
|
|
8000040c: 05d00893 li a7,93
|
328 |
|
|
80000410: 00000513 li a0,0
|
329 |
|
|
80000414: 00000073 ecall
|
330 |
|
|
80000418: c0001073 unimp
|
331 |
|
|
8000041c: 0000 unimp
|
332 |
|
|
8000041e: 0000 unimp
|
333 |
|
|
80000420: 0000 unimp
|
334 |
|
|
80000422: 0000 unimp
|
335 |
|
|
80000424: 0000 unimp
|
336 |
|
|
80000426: 0000 unimp
|
337 |
|
|
80000428: 0000 unimp
|
338 |
|
|
8000042a: 0000 unimp
|
339 |
|
|
8000042c: 0000 unimp
|
340 |
|
|
8000042e: 0000 unimp
|
341 |
|
|
80000430: 0000 unimp
|
342 |
|
|
80000432: 0000 unimp
|
343 |
|
|
80000434: 0000 unimp
|
344 |
|
|
80000436: 0000 unimp
|
345 |
|
|
80000438: 0000 unimp
|
346 |
|
|
8000043a: 0000 unimp
|