
/home/ubuntu/Desktop/riscv-compliance-master/work/rv32ui/lw.elf：     文件格式 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:	f1402573          	csrr	a0,mhartid
  50:	00051063          	bnez	a0,50 <reset_vector+0x4>
  54:	00000297          	auipc	t0,0x0
  58:	01028293          	addi	t0,t0,16 # 64 <reset_vector+0x18>
  5c:	30529073          	csrw	mtvec,t0
  60:	18005073          	csrwi	satp,0
  64:	00000297          	auipc	t0,0x0
  68:	01c28293          	addi	t0,t0,28 # 80 <reset_vector+0x34>
  6c:	30529073          	csrw	mtvec,t0
  70:	fff00293          	li	t0,-1
  74:	3b029073          	csrw	pmpaddr0,t0
  78:	01f00293          	li	t0,31
  7c:	3a029073          	csrw	pmpcfg0,t0
  80:	00000297          	auipc	t0,0x0
  84:	01828293          	addi	t0,t0,24 # 98 <reset_vector+0x4c>
  88:	30529073          	csrw	mtvec,t0
  8c:	30205073          	csrwi	medeleg,0
  90:	30305073          	csrwi	mideleg,0
  94:	30405073          	csrwi	mie,0
  98:	00000193          	li	gp,0
  9c:	00000297          	auipc	t0,0x0
  a0:	f6828293          	addi	t0,t0,-152 # 4 <trap_vector>
  a4:	30529073          	csrw	mtvec,t0
  a8:	00100513          	li	a0,1
  ac:	01f51513          	slli	a0,a0,0x1f
  b0:	00054e63          	bltz	a0,cc <reset_vector+0x80>
  b4:	0ff0000f          	fence
  b8:	00100193          	li	gp,1
  bc:	00002e17          	auipc	t3,0x2
  c0:	f54e0e13          	addi	t3,t3,-172 # 2010 <begin_signature>
  c4:	003e2023          	sw	gp,0(t3)
  c8:	00000073          	ecall
  cc:	00000297          	auipc	t0,0x0
  d0:	f3428293          	addi	t0,t0,-204 # 0 <_start>
  d4:	00028e63          	beqz	t0,f0 <reset_vector+0xa4>
  d8:	10529073          	csrw	stvec,t0
  dc:	0000b2b7          	lui	t0,0xb
  e0:	10928293          	addi	t0,t0,265 # b109 <_end+0x8f05>
  e4:	30229073          	csrw	medeleg,t0
  e8:	30202373          	csrr	t1,medeleg
  ec:	f46298e3          	bne	t0,t1,3c <handle_exception>
  f0:	30005073          	csrwi	mstatus,0
  f4:	00000297          	auipc	t0,0x0
  f8:	01428293          	addi	t0,t0,20 # 108 <begin_testcode>
  fc:	34129073          	csrw	mepc,t0
 100:	f1402573          	csrr	a0,mhartid
 104:	30200073          	mret

00000108 <begin_testcode>:
 108:	00002097          	auipc	ra,0x2
 10c:	ef808093          	addi	ra,ra,-264 # 2000 <tdat>
 110:	0000af03          	lw	t5,0(ra)
 114:	00ff0eb7          	lui	t4,0xff0
 118:	0ffe8e93          	addi	t4,t4,255 # ff00ff <_end+0xfedefb>
 11c:	00200193          	li	gp,2
 120:	00002e17          	auipc	t3,0x2
 124:	ef0e0e13          	addi	t3,t3,-272 # 2010 <begin_signature>
 128:	01ee2423          	sw	t5,8(t3)
 12c:	35df1063          	bne	t5,t4,46c <fail>

00000130 <test_3>:
 130:	00002097          	auipc	ra,0x2
 134:	ed008093          	addi	ra,ra,-304 # 2000 <tdat>
 138:	0040af03          	lw	t5,4(ra)
 13c:	ff010eb7          	lui	t4,0xff010
 140:	f00e8e93          	addi	t4,t4,-256 # ff00ff00 <_end+0xff00dcfc>
 144:	00300193          	li	gp,3
 148:	00002e17          	auipc	t3,0x2
 14c:	ec8e0e13          	addi	t3,t3,-312 # 2010 <begin_signature>
 150:	01ee2623          	sw	t5,12(t3)
 154:	31df1c63          	bne	t5,t4,46c <fail>

00000158 <test_4>:
 158:	00002097          	auipc	ra,0x2
 15c:	ea808093          	addi	ra,ra,-344 # 2000 <tdat>
 160:	0080af03          	lw	t5,8(ra)
 164:	0ff01eb7          	lui	t4,0xff01
 168:	ff0e8e93          	addi	t4,t4,-16 # ff00ff0 <_end+0xfefedec>
 16c:	00400193          	li	gp,4
 170:	00002e17          	auipc	t3,0x2
 174:	ea0e0e13          	addi	t3,t3,-352 # 2010 <begin_signature>
 178:	01ee2823          	sw	t5,16(t3)
 17c:	2fdf1863          	bne	t5,t4,46c <fail>

00000180 <test_5>:
 180:	00002097          	auipc	ra,0x2
 184:	e8008093          	addi	ra,ra,-384 # 2000 <tdat>
 188:	00c0af03          	lw	t5,12(ra)
 18c:	f00ffeb7          	lui	t4,0xf00ff
 190:	00fe8e93          	addi	t4,t4,15 # f00ff00f <_end+0xf00fce0b>
 194:	00500193          	li	gp,5
 198:	00002e17          	auipc	t3,0x2
 19c:	e78e0e13          	addi	t3,t3,-392 # 2010 <begin_signature>
 1a0:	01ee2a23          	sw	t5,20(t3)
 1a4:	2ddf1463          	bne	t5,t4,46c <fail>

000001a8 <test_6>:
 1a8:	00002097          	auipc	ra,0x2
 1ac:	e6408093          	addi	ra,ra,-412 # 200c <tdat4>
 1b0:	ff40af03          	lw	t5,-12(ra)
 1b4:	00ff0eb7          	lui	t4,0xff0
 1b8:	0ffe8e93          	addi	t4,t4,255 # ff00ff <_end+0xfedefb>
 1bc:	00600193          	li	gp,6
 1c0:	00002e17          	auipc	t3,0x2
 1c4:	e50e0e13          	addi	t3,t3,-432 # 2010 <begin_signature>
 1c8:	01ee2c23          	sw	t5,24(t3)
 1cc:	2bdf1063          	bne	t5,t4,46c <fail>

000001d0 <test_7>:
 1d0:	00002097          	auipc	ra,0x2
 1d4:	e3c08093          	addi	ra,ra,-452 # 200c <tdat4>
 1d8:	ff80af03          	lw	t5,-8(ra)
 1dc:	ff010eb7          	lui	t4,0xff010
 1e0:	f00e8e93          	addi	t4,t4,-256 # ff00ff00 <_end+0xff00dcfc>
 1e4:	00700193          	li	gp,7
 1e8:	00002e17          	auipc	t3,0x2
 1ec:	e28e0e13          	addi	t3,t3,-472 # 2010 <begin_signature>
 1f0:	01ee2e23          	sw	t5,28(t3)
 1f4:	27df1c63          	bne	t5,t4,46c <fail>

000001f8 <test_8>:
 1f8:	00002097          	auipc	ra,0x2
 1fc:	e1408093          	addi	ra,ra,-492 # 200c <tdat4>
 200:	ffc0af03          	lw	t5,-4(ra)
 204:	0ff01eb7          	lui	t4,0xff01
 208:	ff0e8e93          	addi	t4,t4,-16 # ff00ff0 <_end+0xfefedec>
 20c:	00800193          	li	gp,8
 210:	00002e17          	auipc	t3,0x2
 214:	e00e0e13          	addi	t3,t3,-512 # 2010 <begin_signature>
 218:	03ee2023          	sw	t5,32(t3)
 21c:	25df1863          	bne	t5,t4,46c <fail>

00000220 <test_9>:
 220:	00002097          	auipc	ra,0x2
 224:	dec08093          	addi	ra,ra,-532 # 200c <tdat4>
 228:	0000af03          	lw	t5,0(ra)
 22c:	f00ffeb7          	lui	t4,0xf00ff
 230:	00fe8e93          	addi	t4,t4,15 # f00ff00f <_end+0xf00fce0b>
 234:	00900193          	li	gp,9
 238:	00002e17          	auipc	t3,0x2
 23c:	dd8e0e13          	addi	t3,t3,-552 # 2010 <begin_signature>
 240:	03ee2223          	sw	t5,36(t3)
 244:	23df1463          	bne	t5,t4,46c <fail>

00000248 <test_10>:
 248:	00002097          	auipc	ra,0x2
 24c:	db808093          	addi	ra,ra,-584 # 2000 <tdat>
 250:	fe008093          	addi	ra,ra,-32
 254:	0200a283          	lw	t0,32(ra)
 258:	00ff0eb7          	lui	t4,0xff0
 25c:	0ffe8e93          	addi	t4,t4,255 # ff00ff <_end+0xfedefb>
 260:	00a00193          	li	gp,10
 264:	00002e17          	auipc	t3,0x2
 268:	dace0e13          	addi	t3,t3,-596 # 2010 <begin_signature>
 26c:	025e2423          	sw	t0,40(t3)
 270:	1fd29e63          	bne	t0,t4,46c <fail>

00000274 <test_11>:
 274:	00002097          	auipc	ra,0x2
 278:	d8c08093          	addi	ra,ra,-628 # 2000 <tdat>
 27c:	ffd08093          	addi	ra,ra,-3
 280:	0070a283          	lw	t0,7(ra)
 284:	ff010eb7          	lui	t4,0xff010
 288:	f00e8e93          	addi	t4,t4,-256 # ff00ff00 <_end+0xff00dcfc>
 28c:	00b00193          	li	gp,11
 290:	00002e17          	auipc	t3,0x2
 294:	d80e0e13          	addi	t3,t3,-640 # 2010 <begin_signature>
 298:	025e2623          	sw	t0,44(t3)
 29c:	1dd29863          	bne	t0,t4,46c <fail>

000002a0 <test_12>:
 2a0:	00c00193          	li	gp,12
 2a4:	00002e17          	auipc	t3,0x2
 2a8:	d6ce0e13          	addi	t3,t3,-660 # 2010 <begin_signature>
 2ac:	023e2823          	sw	gp,48(t3)
 2b0:	00000213          	li	tp,0
 2b4:	00002097          	auipc	ra,0x2
 2b8:	d5008093          	addi	ra,ra,-688 # 2004 <tdat2>
 2bc:	0040af03          	lw	t5,4(ra)
 2c0:	000f0313          	mv	t1,t5
 2c4:	0ff01eb7          	lui	t4,0xff01
 2c8:	ff0e8e93          	addi	t4,t4,-16 # ff00ff0 <_end+0xfefedec>
 2cc:	1bd31063          	bne	t1,t4,46c <fail>
 2d0:	00120213          	addi	tp,tp,1 # 1 <_start+0x1>
 2d4:	00200293          	li	t0,2
 2d8:	fc521ee3          	bne	tp,t0,2b4 <test_12+0x14>

000002dc <test_13>:
 2dc:	00d00193          	li	gp,13
 2e0:	00002e17          	auipc	t3,0x2
 2e4:	d30e0e13          	addi	t3,t3,-720 # 2010 <begin_signature>
 2e8:	023e2a23          	sw	gp,52(t3)
 2ec:	00000213          	li	tp,0
 2f0:	00002097          	auipc	ra,0x2
 2f4:	d1808093          	addi	ra,ra,-744 # 2008 <tdat3>
 2f8:	0040af03          	lw	t5,4(ra)
 2fc:	00000013          	nop
 300:	000f0313          	mv	t1,t5
 304:	f00ffeb7          	lui	t4,0xf00ff
 308:	00fe8e93          	addi	t4,t4,15 # f00ff00f <_end+0xf00fce0b>
 30c:	17d31063          	bne	t1,t4,46c <fail>
 310:	00120213          	addi	tp,tp,1 # 1 <_start+0x1>
 314:	00200293          	li	t0,2
 318:	fc521ce3          	bne	tp,t0,2f0 <test_13+0x14>

0000031c <test_14>:
 31c:	00e00193          	li	gp,14
 320:	00002e17          	auipc	t3,0x2
 324:	cf0e0e13          	addi	t3,t3,-784 # 2010 <begin_signature>
 328:	023e2c23          	sw	gp,56(t3)
 32c:	00000213          	li	tp,0
 330:	00002097          	auipc	ra,0x2
 334:	cd008093          	addi	ra,ra,-816 # 2000 <tdat>
 338:	0040af03          	lw	t5,4(ra)
 33c:	00000013          	nop
 340:	00000013          	nop
 344:	000f0313          	mv	t1,t5
 348:	ff010eb7          	lui	t4,0xff010
 34c:	f00e8e93          	addi	t4,t4,-256 # ff00ff00 <_end+0xff00dcfc>
 350:	11d31e63          	bne	t1,t4,46c <fail>
 354:	00120213          	addi	tp,tp,1 # 1 <_start+0x1>
 358:	00200293          	li	t0,2
 35c:	fc521ae3          	bne	tp,t0,330 <test_14+0x14>

00000360 <test_15>:
 360:	00f00193          	li	gp,15
 364:	00002e17          	auipc	t3,0x2
 368:	cace0e13          	addi	t3,t3,-852 # 2010 <begin_signature>
 36c:	023e2e23          	sw	gp,60(t3)
 370:	00000213          	li	tp,0
 374:	00002097          	auipc	ra,0x2
 378:	c9008093          	addi	ra,ra,-880 # 2004 <tdat2>
 37c:	0040af03          	lw	t5,4(ra)
 380:	0ff01eb7          	lui	t4,0xff01
 384:	ff0e8e93          	addi	t4,t4,-16 # ff00ff0 <_end+0xfefedec>
 388:	0fdf1263          	bne	t5,t4,46c <fail>
 38c:	00120213          	addi	tp,tp,1 # 1 <_start+0x1>
 390:	00200293          	li	t0,2
 394:	fe5210e3          	bne	tp,t0,374 <test_15+0x14>

00000398 <test_16>:
 398:	01000193          	li	gp,16
 39c:	00002e17          	auipc	t3,0x2
 3a0:	c74e0e13          	addi	t3,t3,-908 # 2010 <begin_signature>
 3a4:	043e2023          	sw	gp,64(t3)
 3a8:	00000213          	li	tp,0
 3ac:	00002097          	auipc	ra,0x2
 3b0:	c5c08093          	addi	ra,ra,-932 # 2008 <tdat3>
 3b4:	00000013          	nop
 3b8:	0040af03          	lw	t5,4(ra)
 3bc:	f00ffeb7          	lui	t4,0xf00ff
 3c0:	00fe8e93          	addi	t4,t4,15 # f00ff00f <_end+0xf00fce0b>
 3c4:	0bdf1463          	bne	t5,t4,46c <fail>
 3c8:	00120213          	addi	tp,tp,1 # 1 <_start+0x1>
 3cc:	00200293          	li	t0,2
 3d0:	fc521ee3          	bne	tp,t0,3ac <test_16+0x14>

000003d4 <test_17>:
 3d4:	01100193          	li	gp,17
 3d8:	00002e17          	auipc	t3,0x2
 3dc:	c38e0e13          	addi	t3,t3,-968 # 2010 <begin_signature>
 3e0:	043e2223          	sw	gp,68(t3)
 3e4:	00000213          	li	tp,0
 3e8:	00002097          	auipc	ra,0x2
 3ec:	c1808093          	addi	ra,ra,-1000 # 2000 <tdat>
 3f0:	00000013          	nop
 3f4:	00000013          	nop
 3f8:	0040af03          	lw	t5,4(ra)
 3fc:	ff010eb7          	lui	t4,0xff010
 400:	f00e8e93          	addi	t4,t4,-256 # ff00ff00 <_end+0xff00dcfc>
 404:	07df1463          	bne	t5,t4,46c <fail>
 408:	00120213          	addi	tp,tp,1 # 1 <_start+0x1>
 40c:	00200293          	li	t0,2
 410:	fc521ce3          	bne	tp,t0,3e8 <test_17+0x14>

00000414 <test_18>:
 414:	00002297          	auipc	t0,0x2
 418:	bec28293          	addi	t0,t0,-1044 # 2000 <tdat>
 41c:	0002a103          	lw	sp,0(t0)
 420:	00200113          	li	sp,2
 424:	00200e93          	li	t4,2
 428:	01200193          	li	gp,18
 42c:	00002e17          	auipc	t3,0x2
 430:	be4e0e13          	addi	t3,t3,-1052 # 2010 <begin_signature>
 434:	042e2423          	sw	sp,72(t3)
 438:	03d11a63          	bne	sp,t4,46c <fail>

0000043c <test_19>:
 43c:	00002297          	auipc	t0,0x2
 440:	bc428293          	addi	t0,t0,-1084 # 2000 <tdat>
 444:	0002a103          	lw	sp,0(t0)
 448:	00000013          	nop
 44c:	00200113          	li	sp,2
 450:	00200e93          	li	t4,2
 454:	01300193          	li	gp,19
 458:	00002e17          	auipc	t3,0x2
 45c:	bb8e0e13          	addi	t3,t3,-1096 # 2010 <begin_signature>
 460:	042e2623          	sw	sp,76(t3)
 464:	01d11463          	bne	sp,t4,46c <fail>
 468:	00301e63          	bne	zero,gp,484 <pass>

0000046c <fail>:
 46c:	0ff0000f          	fence
 470:	00100193          	li	gp,1
 474:	00002e17          	auipc	t3,0x2
 478:	b9ce0e13          	addi	t3,t3,-1124 # 2010 <begin_signature>
 47c:	003e2023          	sw	gp,0(t3)
 480:	00000073          	ecall

00000484 <pass>:
 484:	0ff0000f          	fence
 488:	00100193          	li	gp,1
 48c:	00002e17          	auipc	t3,0x2
 490:	b84e0e13          	addi	t3,t3,-1148 # 2010 <begin_signature>
 494:	003e2023          	sw	gp,0(t3)
 498:	00000073          	ecall

0000049c <end_testcode>:
 49c:	c0001073          	unimp
	...

Disassembly of section .tohost:

00001000 <tohost>:
	...

00001100 <fromhost>:
	...

Disassembly of section .data:

00002000 <tdat>:
    2000:	00ff                	0xff
    2002:	00ff                	0xff

00002004 <tdat2>:
    2004:	ff00                	fsw	fs0,56(a4)
    2006:	ff00                	fsw	fs0,56(a4)

00002008 <tdat3>:
    2008:	0ff0                	addi	a2,sp,988
    200a:	0ff0                	addi	a2,sp,988

0000200c <tdat4>:
    200c:	f00ff00f          	0xf00ff00f

00002010 <begin_signature>:
    2010:	ffff                	0xffff
    2012:	ffff                	0xffff
    2014:	ffff                	0xffff
    2016:	ffff                	0xffff
    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
    2034:	ffff                	0xffff
    2036:	ffff                	0xffff
    2038:	ffff                	0xffff
    203a:	ffff                	0xffff
    203c:	ffff                	0xffff
    203e:	ffff                	0xffff
    2040:	ffff                	0xffff
    2042:	ffff                	0xffff
    2044:	ffff                	0xffff
    2046:	ffff                	0xffff
    2048:	ffff                	0xffff
    204a:	ffff                	0xffff
    204c:	ffff                	0xffff
    204e:	ffff                	0xffff
    2050:	ffff                	0xffff
    2052:	ffff                	0xffff
    2054:	ffff                	0xffff
    2056:	ffff                	0xffff
    2058:	ffff                	0xffff
    205a:	ffff                	0xffff
    205c:	ffff                	0xffff
    205e:	ffff                	0xffff
    2060:	ffff                	0xffff
    2062:	ffff                	0xffff
    2064:	ffff                	0xffff
    2066:	ffff                	0xffff
    2068:	ffff                	0xffff
    206a:	ffff                	0xffff
    206c:	ffff                	0xffff
    206e:	ffff                	0xffff
    2070:	ffff                	0xffff
    2072:	ffff                	0xffff
    2074:	ffff                	0xffff
    2076:	ffff                	0xffff
    2078:	ffff                	0xffff
    207a:	ffff                	0xffff
    207c:	ffff                	0xffff
    207e:	ffff                	0xffff
    2080:	ffff                	0xffff
    2082:	ffff                	0xffff
    2084:	ffff                	0xffff
    2086:	ffff                	0xffff
    2088:	ffff                	0xffff
    208a:	ffff                	0xffff
    208c:	ffff                	0xffff
    208e:	ffff                	0xffff
    2090:	ffff                	0xffff
    2092:	ffff                	0xffff
    2094:	ffff                	0xffff
    2096:	ffff                	0xffff
    2098:	ffff                	0xffff
    209a:	ffff                	0xffff
    209c:	ffff                	0xffff
    209e:	ffff                	0xffff
    20a0:	ffff                	0xffff
    20a2:	ffff                	0xffff
    20a4:	ffff                	0xffff
    20a6:	ffff                	0xffff
    20a8:	ffff                	0xffff
    20aa:	ffff                	0xffff
    20ac:	ffff                	0xffff
    20ae:	ffff                	0xffff

000020b0 <end_signature>:
	...

00002100 <begin_regstate>:
    2100:	0080                	addi	s0,sp,64
	...

00002200 <end_regstate>:
    2200:	0004                	0x4
	...
