Comments (12)
But it seems that it can not be executed by NEMU correctly ,so where is wrong?
You should provide your error log of NEMU
from nemu.
But it seems that it can not be executed by NEMU correctly ,so where is wrong?
You should provide your error log of NEMU
INSTRUCTION SETS WANT TO BE FREE
invalid opcode(PC = 0x0000000080162020):
02 90 97 88 01 00 93 88 ...
88979002 88930001...
There are two cases which will trigger this unexpected exception:
- The instruction at PC = 0x0000000080162020 is not implemented.
- Something is implemented incorrectly.
Find this PC(0x0000000080162020) in the disassembling result to distinguish which case it is.
If it is the first case, see
_ __ __ _
() | / | | |
_ __ _ ___ ___ ________ __ | \ / | __ _ _ __ _ _ __ | |
| '| / |/ |\ \ / / | |/| |/ | '_ \| | | |/ _
| |
| | | _ \ (__ \ V / | | | | (| | | | | || | (| | |
|| ||/_| _/ || ||_,|| ||_,|_,|_|
for more details.
If it is the second case, remember:
- The machine is always right!
- Every line of untested code is always wrong!
[src/cpu/cpu-exec.c:708,cpu_exec] nemu: ABORT at pc = 0x0000000080162020
[src/cpu/cpu-exec.c:714,cpu_exec] trap code:-1
[src/cpu/cpu-exec.c:93,monitor_statistic] host time spent = 5215 us
[src/cpu/cpu-exec.c:95,monitor_statistic] total guest instructions = 193237
[src/cpu/cpu-exec.c:97,monitor_statistic] simulation frequency = 37054074 instr/s
[src/utils/state.c:28,is_exit_status_bad] NEMU exit with bad state: 3, halt ret: -1
from nemu.
please provide full log
from nemu.
[src/isa/riscv64/init.c:135,init_isa] NEMU will start from pc 0x80000000
[src/monitor/image_loader.c:203,load_img] Loading image (bbl/bare metal app) from cmdline: ../../../bbl.bin
[src/monitor/image_loader.c:257,load_img] Read 1017 bytes from file ../../../bbl.bin to 0x80000000
[src/device/io/port-io.c:30,add_pio_map] Add port-io map 'uartlite' at [0x00000000000003f8, 0x0000000000000404]
[src/device/io/port-io.c:30,add_pio_map] Add port-io map 'rtc' at [0x0000000000000048, 0x000000000000004f]
[src/device/io/port-io.c:30,add_pio_map] Add port-io map 'screen' at [0x0000000000000100, 0x0000000000000107]
[src/device/io/port-io.c:30,add_pio_map] Add port-io map 'keyboard' at [0x0000000000000060, 0x0000000000000063]
[src/device/sdcard.c:137,init_sdcard] Can not find sdcard image:
[src/monitor/monitor.c:54,welcome] Debug: OFF
[src/monitor/monitor.c:59,welcome] Build time: 00:40:45, Feb 25 2024
[src/cpu/cpu-exec.c:708,cpu_exec] nemu: ABORT at pc = 0x0000000080000000
[src/cpu/cpu-exec.c:714,cpu_exec] trap code:-1
[src/cpu/cpu-exec.c:93,monitor_statistic] host time spent = 434 us
[src/cpu/cpu-exec.c:95,monitor_statistic] total guest instructions = 65536
[src/cpu/cpu-exec.c:97,monitor_statistic] simulation frequency = 151004608 instr/s
[src/utils/state.c:28,is_exit_status_bad] NEMU exit with bad state: 3, halt ret: -1
it seems went wrong when NEMU just boot
from nemu.
Which config is used
from nemu.
./build/riscv64-nemu-interpreter --log=nemu.log ../..
/../bbl.bin
this one
from nemu.
If you're using this paragraph of the document as a reference, pay attention to where I've marked in red
from nemu.
by the way, if SimPoint profiling has been failed, please provide full log( include stderr and stdout )
from nemu.
by the way, if SimPoint profiling has been failed, please provide full log( include stderr and stdout )
err log
riscv64-nemu-interpreter: src/utils/filename.c:34: is_gz_file: Assertion `0' failed.
&&out log is blank
from nemu.
from nemu.
If there are no other questions, I'll close this issue?
from nemu.
thank you very much ,it's ok
from nemu.
Related Issues (20)
- Compile error when turn on CONFIG_DEBUG
- 修改对于PA位宽的支持 HOT 2
- Issue about NEMU config (stand-alone mode) HOT 6
- CI job failed HOT 3
- NEMU支持debug模式吗?
- 关于“nemu_trap”指令的一些疑惑。 HOT 1
- 关于NEMU的断点问题 HOT 1
- 通过NEMU恢复cpt时出现错误 HOT 1
- NEMU做profiling时出现错误,Failed to execute /init (error -2) HOT 16
- profiling运行ready-to-run目录下的coremark负载,制作不出bbv文件 HOT 2
- Debian Config:no entry for main/binary-riscv64/Packages HOT 1
- Compilation failed when using ref_defconfig after other arch HOT 2
- 请问有riscv-test测试集移植到香山环境并批量测试的教程吗?
- checkpoint版本的bbl构建出现错误,initramfs-spec.txt这个脚本中的spec06-rv64gcb-gcc12.2.0-o3/astar_base.rv64gcb-gcc12.2.0-o3这个文件找不到找不到 HOT 2
- SPEC2006 profiling is failed HOT 12
- 计算speccpu2006 分数时每个case的总指令数 HOT 1
- NEMU master分支编译找不到zstd.h和SDL2/SDL.h HOT 2
- spec2006在ubuntu20.04交叉编译生成的可执行文件无法进行simpoint HOT 7
- 编译riscv64-nemu-interpreter支持pie问题 HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nemu.