Git Product home page Git Product logo

Comments (2)

aswaterman avatar aswaterman commented on June 20, 2024

The -m flag sets how much memory the target machine has. Beyond that, there is no practical limit--probably something in the terabyte range--beyond the host machine running out of memory, which of course would not manifest in this manner.

from riscv-isa-sim.

NazerkeT avatar NazerkeT commented on June 20, 2024

I see, nevertheless, can using initrd somehow overwrite spike's memory limits? Because interestingly, if I remove initrd flag, I can dump dts that sets memory to the asked amount, unless otherwise I get following error message:

Error: :9.27-38 Value out of range for 32-bit array element
Error: :10.25-36 Value out of range for 32-bit array element
FATAL ERROR: Syntax error parsing input tree
Child dtb process failed

And command and script that I am running for spike are the following:

./board/spike/riscv64/start.sh -m8192

#! /bin/sh

SCRIPT_DIR="$(dirname "$0")"
BR_BASEDIR="$(readlink -e "${SCRIPT_DIR}/../../..")"

export PATH="${BR_BASEDIR}/output/host/usr/bin:$PATH"
: "${SPIKE:=spike}"

exec "${SPIKE}"
--initrd "${BR_BASEDIR}"/output/images/rootfs.cpio
"${@}"
"${BR_BASEDIR}"/output/images/fw_payload.elf

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.