Git Product home page Git Product logo

Comments (12)

shinezyy avatar shinezyy commented on July 30, 2024

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.

YudeFang avatar YudeFang commented on July 30, 2024

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:

  1. The instruction at PC = 0x0000000080162020 is not implemented.
  2. 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.

shinezyy avatar shinezyy commented on July 30, 2024

please provide full log

from nemu.

YudeFang avatar YudeFang commented on July 30, 2024

[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.

shinezyy avatar shinezyy commented on July 30, 2024

Which config is used

from nemu.

YudeFang avatar YudeFang commented on July 30, 2024

./build/riscv64-nemu-interpreter --log=nemu.log ../..
/../bbl.bin
this one

from nemu.

xyyy1420 avatar xyyy1420 commented on July 30, 2024

image

If you're using this paragraph of the document as a reference, pay attention to where I've marked in red

from nemu.

xyyy1420 avatar xyyy1420 commented on July 30, 2024

by the way, if SimPoint profiling has been failed, please provide full log( include stderr and stdout )

from nemu.

YudeFang avatar YudeFang commented on July 30, 2024

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.

xyyy1420 avatar xyyy1420 commented on July 30, 2024

86cbf73d-e908-4b72-8d89-dcaf8a819a14

from nemu.

xyyy1420 avatar xyyy1420 commented on July 30, 2024

If there are no other questions, I'll close this issue?

from nemu.

YudeFang avatar YudeFang commented on July 30, 2024

thank you very much ,it's ok

from nemu.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.