Git Product home page Git Product logo

Comments (4)

poinu avatar poinu commented on June 19, 2024 1

We are currently on commit e465de145c69c28230b5c73cc58f96fd9bd04419 while using commit cf7369999779bc78bcc5a8a6fe6187363b23247a of the RISCV tools and have tried running thebbl both with and without payload.

When running the bbl without payload, everything works as expected and we get the following output:

This is bbl's dummy_payload.  To boot a real kernel, reconfigure
bbl with the flag --with-payload=PATH, then rebuild bbl.

When running the bbl with a Linux kernel as a payload, spike seems to hang (see attached spike trace file) where it used to segfault in the previous commit 75f2a05df9cdff6f3faba748065b3184b9f01b01. We are actually using commit 9079be6167aec516a4625b7dcf20efbf384277b4 of the riscv-linux repository.

In case it is useful, the configuration line used to generate such bbl is the following:

../configure --prefix=path/to/riscv-tools/installation --host=riscv64-unknown-elf host_alias=riscv64-unknown-elf RISCV=path/to/riscv-tools/installation --with-payload=path/to/linux/vmlinux --disable-logo

If simulating a bbl with payload is working for you, would you mind telling me which precise commits of the repositories are you using?

In file spike_execution_trace.txt you can find a trace where a "full iteration" of spike is shown.

from riscv-isa-sim.

aswaterman avatar aswaterman commented on June 19, 2024

Since the segfault is fixed, I'm not sure what to do here. bbl works correctly for me.

from riscv-isa-sim.

aswaterman avatar aswaterman commented on June 19, 2024

Ah, so, it's not Spike that's hanging; the kernel or BBL is hanging. The question is, what causes the target software to jump to address 0?

FYI, I'm using the HEAD of the riscv-next branch of riscv-linux; HEAD of priv-1.10 of riscv-pk; and HEAD of priv-1.10 of riscv-isa-sim. That combination seems to work.

from riscv-isa-sim.

poinu avatar poinu commented on June 19, 2024

You are absolutely right, coming from an older build I was using the wrong branch of the riscv-linux repository. Thank you for your time. for pointing me to the right branches, and sorry for the confusion!

from riscv-isa-sim.

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.