328 lines
15 KiB
Plaintext
328 lines
15 KiB
Plaintext
|
|
rv64ud-p-structural: file format elf64-littleriscv
|
|
|
|
|
|
Disassembly of section .text.init:
|
|
|
|
0000000080000000 <_start>:
|
|
80000000: 04c0006f j 8000004c <reset_vector>
|
|
|
|
0000000080000004 <trap_vector>:
|
|
80000004: 34202f73 csrr t5,mcause
|
|
80000008: 00800f93 li t6,8
|
|
8000000c: 03ff0a63 beq t5,t6,80000040 <write_tohost>
|
|
80000010: 00900f93 li t6,9
|
|
80000014: 03ff0663 beq t5,t6,80000040 <write_tohost>
|
|
80000018: 00b00f93 li t6,11
|
|
8000001c: 03ff0263 beq t5,t6,80000040 <write_tohost>
|
|
80000020: 80000f17 auipc t5,0x80000
|
|
80000024: fe0f0f13 addi t5,t5,-32 # 0 <_start-0x80000000>
|
|
80000028: 000f0463 beqz t5,80000030 <trap_vector+0x2c>
|
|
8000002c: 000f0067 jr t5
|
|
80000030: 34202f73 csrr t5,mcause
|
|
80000034: 000f5463 bgez t5,8000003c <handle_exception>
|
|
80000038: 0040006f j 8000003c <handle_exception>
|
|
|
|
000000008000003c <handle_exception>:
|
|
8000003c: 5391e193 ori gp,gp,1337
|
|
|
|
0000000080000040 <write_tohost>:
|
|
80000040: 00001f17 auipc t5,0x1
|
|
80000044: fc3f2023 sw gp,-64(t5) # 80001000 <tohost>
|
|
80000048: ff9ff06f j 80000040 <write_tohost>
|
|
|
|
000000008000004c <reset_vector>:
|
|
8000004c: f1402573 csrr a0,mhartid
|
|
80000050: 00051063 bnez a0,80000050 <reset_vector+0x4>
|
|
80000054: 00000297 auipc t0,0x0
|
|
80000058: 01028293 addi t0,t0,16 # 80000064 <reset_vector+0x18>
|
|
8000005c: 30529073 csrw mtvec,t0
|
|
80000060: 18005073 csrwi satp,0
|
|
80000064: 00000297 auipc t0,0x0
|
|
80000068: 02428293 addi t0,t0,36 # 80000088 <reset_vector+0x3c>
|
|
8000006c: 30529073 csrw mtvec,t0
|
|
80000070: 0010029b addiw t0,zero,1
|
|
80000074: 03529293 slli t0,t0,0x35
|
|
80000078: fff28293 addi t0,t0,-1
|
|
8000007c: 3b029073 csrw pmpaddr0,t0
|
|
80000080: 01f00293 li t0,31
|
|
80000084: 3a029073 csrw pmpcfg0,t0
|
|
80000088: 00000297 auipc t0,0x0
|
|
8000008c: 01828293 addi t0,t0,24 # 800000a0 <reset_vector+0x54>
|
|
80000090: 30529073 csrw mtvec,t0
|
|
80000094: 30205073 csrwi medeleg,0
|
|
80000098: 30305073 csrwi mideleg,0
|
|
8000009c: 30405073 csrwi mie,0
|
|
800000a0: 00000193 li gp,0
|
|
800000a4: 00000297 auipc t0,0x0
|
|
800000a8: f6028293 addi t0,t0,-160 # 80000004 <trap_vector>
|
|
800000ac: 30529073 csrw mtvec,t0
|
|
800000b0: 00100513 li a0,1
|
|
800000b4: 01f51513 slli a0,a0,0x1f
|
|
800000b8: 00055863 bgez a0,800000c8 <reset_vector+0x7c>
|
|
800000bc: 0ff0000f fence
|
|
800000c0: 00100193 li gp,1
|
|
800000c4: 00000073 ecall
|
|
800000c8: 80000297 auipc t0,0x80000
|
|
800000cc: f3828293 addi t0,t0,-200 # 0 <_start-0x80000000>
|
|
800000d0: 00028e63 beqz t0,800000ec <reset_vector+0xa0>
|
|
800000d4: 10529073 csrw stvec,t0
|
|
800000d8: 0000b2b7 lui t0,0xb
|
|
800000dc: 1092829b addiw t0,t0,265
|
|
800000e0: 30229073 csrw medeleg,t0
|
|
800000e4: 30202373 csrr t1,medeleg
|
|
800000e8: f4629ae3 bne t0,t1,8000003c <handle_exception>
|
|
800000ec: 30005073 csrwi mstatus,0
|
|
800000f0: 00002537 lui a0,0x2
|
|
800000f4: 30052073 csrs mstatus,a0
|
|
800000f8: 00305073 csrwi fcsr,0
|
|
800000fc: 00000297 auipc t0,0x0
|
|
80000100: 01428293 addi t0,t0,20 # 80000110 <reset_vector+0xc4>
|
|
80000104: 34129073 csrw mepc,t0
|
|
80000108: f1402573 csrr a0,mhartid
|
|
8000010c: 30200073 mret
|
|
80000110: 00100c93 li s9,1
|
|
80000114: 3ff0011b addiw sp,zero,1023
|
|
80000118: 03411113 slli sp,sp,0x34
|
|
8000011c: 3f8000b7 lui ra,0x3f800
|
|
80000120: f2000253 fmv.d.x ft4,zero
|
|
80000124: f00001d3 fmv.w.x ft3,zero
|
|
80000128: f2010153 fmv.d.x ft2,sp
|
|
8000012c: f00080d3 fmv.w.x ft1,ra
|
|
80000130: 0100006f j 80000140 <reset_vector+0xf4>
|
|
80000134: 00000013 nop
|
|
80000138: 00000013 nop
|
|
8000013c: 00000013 nop
|
|
80000140: 12217253 fmul.d ft4,ft2,ft2
|
|
80000144: 201081d3 fmv.s ft3,ft1
|
|
80000148: e2020253 fmv.x.d tp,ft4
|
|
8000014c: e00182d3 fmv.x.w t0,ft3
|
|
80000150: 00508c63 beq ra,t0,80000168 <reset_vector+0x11c>
|
|
80000154: 0ff0000f fence
|
|
80000158: 00018063 beqz gp,80000158 <reset_vector+0x10c>
|
|
8000015c: 00119193 slli gp,gp,0x1
|
|
80000160: 0011e193 ori gp,gp,1
|
|
80000164: 00000073 ecall
|
|
80000168: 00410c63 beq sp,tp,80000180 <reset_vector+0x134>
|
|
8000016c: 0ff0000f fence
|
|
80000170: 00018063 beqz gp,80000170 <reset_vector+0x124>
|
|
80000174: 00119193 slli gp,gp,0x1
|
|
80000178: 0011e193 ori gp,gp,1
|
|
8000017c: 00000073 ecall
|
|
80000180: f2000153 fmv.d.x ft2,zero
|
|
80000184: f00000d3 fmv.w.x ft1,zero
|
|
80000188: f2000253 fmv.d.x ft4,zero
|
|
8000018c: f00001d3 fmv.w.x ft3,zero
|
|
80000190: f2010153 fmv.d.x ft2,sp
|
|
80000194: f00080d3 fmv.w.x ft1,ra
|
|
80000198: 0080006f j 800001a0 <reset_vector+0x154>
|
|
8000019c: 00000013 nop
|
|
800001a0: 12217253 fmul.d ft4,ft2,ft2
|
|
800001a4: 00000013 nop
|
|
800001a8: 201081d3 fmv.s ft3,ft1
|
|
800001ac: e2020253 fmv.x.d tp,ft4
|
|
800001b0: e00182d3 fmv.x.w t0,ft3
|
|
800001b4: 00508c63 beq ra,t0,800001cc <reset_vector+0x180>
|
|
800001b8: 0ff0000f fence
|
|
800001bc: 00018063 beqz gp,800001bc <reset_vector+0x170>
|
|
800001c0: 00119193 slli gp,gp,0x1
|
|
800001c4: 0011e193 ori gp,gp,1
|
|
800001c8: 00000073 ecall
|
|
800001cc: 00410c63 beq sp,tp,800001e4 <reset_vector+0x198>
|
|
800001d0: 0ff0000f fence
|
|
800001d4: 00018063 beqz gp,800001d4 <reset_vector+0x188>
|
|
800001d8: 00119193 slli gp,gp,0x1
|
|
800001dc: 0011e193 ori gp,gp,1
|
|
800001e0: 00000073 ecall
|
|
800001e4: f2000153 fmv.d.x ft2,zero
|
|
800001e8: f00000d3 fmv.w.x ft1,zero
|
|
800001ec: f2000253 fmv.d.x ft4,zero
|
|
800001f0: f00001d3 fmv.w.x ft3,zero
|
|
800001f4: f2010153 fmv.d.x ft2,sp
|
|
800001f8: f00080d3 fmv.w.x ft1,ra
|
|
800001fc: 0040006f j 80000200 <reset_vector+0x1b4>
|
|
80000200: 12217253 fmul.d ft4,ft2,ft2
|
|
80000204: 00000013 nop
|
|
80000208: 00000013 nop
|
|
8000020c: 201081d3 fmv.s ft3,ft1
|
|
80000210: e2020253 fmv.x.d tp,ft4
|
|
80000214: e00182d3 fmv.x.w t0,ft3
|
|
80000218: 00508c63 beq ra,t0,80000230 <reset_vector+0x1e4>
|
|
8000021c: 0ff0000f fence
|
|
80000220: 00018063 beqz gp,80000220 <reset_vector+0x1d4>
|
|
80000224: 00119193 slli gp,gp,0x1
|
|
80000228: 0011e193 ori gp,gp,1
|
|
8000022c: 00000073 ecall
|
|
80000230: 00410c63 beq sp,tp,80000248 <reset_vector+0x1fc>
|
|
80000234: 0ff0000f fence
|
|
80000238: 00018063 beqz gp,80000238 <reset_vector+0x1ec>
|
|
8000023c: 00119193 slli gp,gp,0x1
|
|
80000240: 0011e193 ori gp,gp,1
|
|
80000244: 00000073 ecall
|
|
80000248: f2000153 fmv.d.x ft2,zero
|
|
8000024c: f00000d3 fmv.w.x ft1,zero
|
|
80000250: f2000253 fmv.d.x ft4,zero
|
|
80000254: f00001d3 fmv.w.x ft3,zero
|
|
80000258: f2010153 fmv.d.x ft2,sp
|
|
8000025c: f00080d3 fmv.w.x ft1,ra
|
|
80000260: 0200006f j 80000280 <reset_vector+0x234>
|
|
80000264: 00000013 nop
|
|
80000268: 00000013 nop
|
|
8000026c: 00000013 nop
|
|
80000270: 00000013 nop
|
|
80000274: 00000013 nop
|
|
80000278: 00000013 nop
|
|
8000027c: 00000013 nop
|
|
80000280: 12217253 fmul.d ft4,ft2,ft2
|
|
80000284: 00000013 nop
|
|
80000288: 00000013 nop
|
|
8000028c: 00000013 nop
|
|
80000290: 201081d3 fmv.s ft3,ft1
|
|
80000294: e2020253 fmv.x.d tp,ft4
|
|
80000298: e00182d3 fmv.x.w t0,ft3
|
|
8000029c: 00508c63 beq ra,t0,800002b4 <reset_vector+0x268>
|
|
800002a0: 0ff0000f fence
|
|
800002a4: 00018063 beqz gp,800002a4 <reset_vector+0x258>
|
|
800002a8: 00119193 slli gp,gp,0x1
|
|
800002ac: 0011e193 ori gp,gp,1
|
|
800002b0: 00000073 ecall
|
|
800002b4: 00410c63 beq sp,tp,800002cc <reset_vector+0x280>
|
|
800002b8: 0ff0000f fence
|
|
800002bc: 00018063 beqz gp,800002bc <reset_vector+0x270>
|
|
800002c0: 00119193 slli gp,gp,0x1
|
|
800002c4: 0011e193 ori gp,gp,1
|
|
800002c8: 00000073 ecall
|
|
800002cc: f2000153 fmv.d.x ft2,zero
|
|
800002d0: f00000d3 fmv.w.x ft1,zero
|
|
800002d4: f2000253 fmv.d.x ft4,zero
|
|
800002d8: f00001d3 fmv.w.x ft3,zero
|
|
800002dc: f2010153 fmv.d.x ft2,sp
|
|
800002e0: f00080d3 fmv.w.x ft1,ra
|
|
800002e4: 01c0006f j 80000300 <reset_vector+0x2b4>
|
|
800002e8: 00000013 nop
|
|
800002ec: 00000013 nop
|
|
800002f0: 00000013 nop
|
|
800002f4: 00000013 nop
|
|
800002f8: 00000013 nop
|
|
800002fc: 00000013 nop
|
|
80000300: 12217253 fmul.d ft4,ft2,ft2
|
|
80000304: 00000013 nop
|
|
80000308: 00000013 nop
|
|
8000030c: 00000013 nop
|
|
80000310: 00000013 nop
|
|
80000314: 201081d3 fmv.s ft3,ft1
|
|
80000318: e2020253 fmv.x.d tp,ft4
|
|
8000031c: e00182d3 fmv.x.w t0,ft3
|
|
80000320: 00508c63 beq ra,t0,80000338 <reset_vector+0x2ec>
|
|
80000324: 0ff0000f fence
|
|
80000328: 00018063 beqz gp,80000328 <reset_vector+0x2dc>
|
|
8000032c: 00119193 slli gp,gp,0x1
|
|
80000330: 0011e193 ori gp,gp,1
|
|
80000334: 00000073 ecall
|
|
80000338: 00410c63 beq sp,tp,80000350 <reset_vector+0x304>
|
|
8000033c: 0ff0000f fence
|
|
80000340: 00018063 beqz gp,80000340 <reset_vector+0x2f4>
|
|
80000344: 00119193 slli gp,gp,0x1
|
|
80000348: 0011e193 ori gp,gp,1
|
|
8000034c: 00000073 ecall
|
|
80000350: f2000153 fmv.d.x ft2,zero
|
|
80000354: f00000d3 fmv.w.x ft1,zero
|
|
80000358: f2000253 fmv.d.x ft4,zero
|
|
8000035c: f00001d3 fmv.w.x ft3,zero
|
|
80000360: f2010153 fmv.d.x ft2,sp
|
|
80000364: f00080d3 fmv.w.x ft1,ra
|
|
80000368: 0180006f j 80000380 <reset_vector+0x334>
|
|
8000036c: 00000013 nop
|
|
80000370: 00000013 nop
|
|
80000374: 00000013 nop
|
|
80000378: 00000013 nop
|
|
8000037c: 00000013 nop
|
|
80000380: 12217253 fmul.d ft4,ft2,ft2
|
|
80000384: 00000013 nop
|
|
80000388: 00000013 nop
|
|
8000038c: 00000013 nop
|
|
80000390: 00000013 nop
|
|
80000394: 00000013 nop
|
|
80000398: 201081d3 fmv.s ft3,ft1
|
|
8000039c: e2020253 fmv.x.d tp,ft4
|
|
800003a0: e00182d3 fmv.x.w t0,ft3
|
|
800003a4: 00508c63 beq ra,t0,800003bc <reset_vector+0x370>
|
|
800003a8: 0ff0000f fence
|
|
800003ac: 00018063 beqz gp,800003ac <reset_vector+0x360>
|
|
800003b0: 00119193 slli gp,gp,0x1
|
|
800003b4: 0011e193 ori gp,gp,1
|
|
800003b8: 00000073 ecall
|
|
800003bc: 00410c63 beq sp,tp,800003d4 <reset_vector+0x388>
|
|
800003c0: 0ff0000f fence
|
|
800003c4: 00018063 beqz gp,800003c4 <reset_vector+0x378>
|
|
800003c8: 00119193 slli gp,gp,0x1
|
|
800003cc: 0011e193 ori gp,gp,1
|
|
800003d0: 00000073 ecall
|
|
800003d4: f2000153 fmv.d.x ft2,zero
|
|
800003d8: f00000d3 fmv.w.x ft1,zero
|
|
800003dc: f2000253 fmv.d.x ft4,zero
|
|
800003e0: f00001d3 fmv.w.x ft3,zero
|
|
800003e4: f2010153 fmv.d.x ft2,sp
|
|
800003e8: f00080d3 fmv.w.x ft1,ra
|
|
800003ec: 0140006f j 80000400 <reset_vector+0x3b4>
|
|
800003f0: 00000013 nop
|
|
800003f4: 00000013 nop
|
|
800003f8: 00000013 nop
|
|
800003fc: 00000013 nop
|
|
80000400: 12217253 fmul.d ft4,ft2,ft2
|
|
80000404: 00000013 nop
|
|
80000408: 00000013 nop
|
|
8000040c: 00000013 nop
|
|
80000410: 00000013 nop
|
|
80000414: 00000013 nop
|
|
80000418: 00000013 nop
|
|
8000041c: 201081d3 fmv.s ft3,ft1
|
|
80000420: e2020253 fmv.x.d tp,ft4
|
|
80000424: e00182d3 fmv.x.w t0,ft3
|
|
80000428: 00508c63 beq ra,t0,80000440 <reset_vector+0x3f4>
|
|
8000042c: 0ff0000f fence
|
|
80000430: 00018063 beqz gp,80000430 <reset_vector+0x3e4>
|
|
80000434: 00119193 slli gp,gp,0x1
|
|
80000438: 0011e193 ori gp,gp,1
|
|
8000043c: 00000073 ecall
|
|
80000440: 00410c63 beq sp,tp,80000458 <reset_vector+0x40c>
|
|
80000444: 0ff0000f fence
|
|
80000448: 00018063 beqz gp,80000448 <reset_vector+0x3fc>
|
|
8000044c: 00119193 slli gp,gp,0x1
|
|
80000450: 0011e193 ori gp,gp,1
|
|
80000454: 00000073 ecall
|
|
80000458: f2000153 fmv.d.x ft2,zero
|
|
8000045c: f00000d3 fmv.w.x ft1,zero
|
|
80000460: 0ff0000f fence
|
|
80000464: 00100193 li gp,1
|
|
80000468: 00000073 ecall
|
|
8000046c: c0001073 unimp
|
|
80000470: 0000 unimp
|
|
80000472: 0000 unimp
|
|
80000474: 0000 unimp
|
|
80000476: 0000 unimp
|
|
80000478: 0000 unimp
|
|
8000047a: 0000 unimp
|
|
8000047c: 0000 unimp
|
|
8000047e: 0000 unimp
|
|
80000480: 0000 unimp
|
|
80000482: 0000 unimp
|
|
80000484: 0000 unimp
|
|
80000486: 0000 unimp
|
|
80000488: 0000 unimp
|
|
8000048a: 0000 unimp
|
|
8000048c: 0000 unimp
|
|
8000048e: 0000 unimp
|
|
80000490: 0000 unimp
|
|
80000492: 0000 unimp
|
|
80000494: 0000 unimp
|
|
80000496: 0000 unimp
|
|
80000498: 0000 unimp
|
|
8000049a: 0000 unimp
|
|
8000049c: 0000 unimp
|
|
8000049e: 0000 unimp
|
|
800004a0: 0000 unimp
|
|
800004a2: 0000 unimp
|
|
800004a4: 0000 unimp
|
|
800004a6: 0000 unimp
|