Giter Site home page Giter Site logo

Renode Error about cfu-playground HOT 4 CLOSED

Halteproblem avatar Halteproblem commented on June 14, 2024
Renode Error

from cfu-playground.

Comments (4)

Halteproblem avatar Halteproblem commented on June 14, 2024

If I change the generate_renode_scripts.py to use the antmicro libVtop.so it seems to work.

result = """
using sysbus
mach create \"""" + target + """\"
machine LoadPlatformDescription $ORIGIN/""" + target + """.repl
$cfuLinux?=@https://dl.antmicro.com/projects/renode/verilated-ibex--libVtop-s_527064-bf919fbb21bc3242cbc09f05a8a8cac4037daaff
machine StartGdbServer 10001
showAnalyzer sysbus.uart
showAnalyzer sysbus.uart Antmicro.Renode.Analyzers.LoggingUartAnalyzer
"""
    if cfu_lib_filepath:
        result += """
cpu.cfu0 SimulationFilePathLinux $cfuLinux
"""``

from cfu-playground.

tcal-x avatar tcal-x commented on June 14, 2024

@Halteproblem , thanks for the report; I reproduced the issue. And also replicated the workaround that you provide -- thanks!

The background is that we haven't been able to bump the Renode version for many months due to an unknown issue (#794 (comment)). The issue here might be that we're mixing the old pinned Renode (which should still work) somehow with more recent Renode (I haven't had a chance to look where that might be happening).

from cfu-playground.

tcal-x avatar tcal-x commented on June 14, 2024

This was caused by a recent change to renode-infrastructure that added a dependence on tlib in renode_imports.h:
renode/renode-infrastructure@1858ed0

scripts/setup grabs files from renode/renode at a particular commit. But for files from renode/renode-infrastructure it just grabs from current master, which is why we were affected and Renode sim broke even though we made no changes in CFU Playground.

I have a PR in progress to pin our reference to renode/renode-infrastructure to before the commit that caused the issue. (Other options that we might consider in the future would be to add a patch for renode_imports.h, or, request that upstream they make the 'tlib' dependency conditional using #ifdef.)

FYI @PiotrZierhoffer

from cfu-playground.

PiotrZierhoffer avatar PiotrZierhoffer commented on June 14, 2024

@tcal-x I think pinning is a good way forward. Right now we are in progress of a serious overhaul of the native calls layer, so this might repeat in future

from cfu-playground.

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.