Hello everyone, I should use gem5 to emulate the execution of programs written 
in C language on RISCV architecture.

I use a docker container, inside of which I have created a "hello.c" file that 
prints "Hello World!" on the screen, and then generate the executable with 
"riscv64-linux-gnu-gcc".

Next I should use gem5, how can I do this?

I saw that se.py and fs.py have been deprecated, I don't know how to generate 
my RISCV configuration.

Trying with "./gem5/build/RISCV/gem5.opt 
./gem5/configs/example/riscv/fs_linux.py --script ./hello"

It returns the following error: 

"gem5 Simulator System. https://www.gem5.org

gem5 is copyrighted software; use the --copyright option for details.

gem5 version 23.0.1

gem5 compiled Oct 15 2023 12:49:03

gem5 started Oct 16 2023 09:01:02

gem5 executing on 84727e90922b, pid 1761

command line: ./gem5/build/RISCV/gem5.opt 
./gem5/configs/example/riscv/fs_linux.py --script ./hello

warn: The \`get_runtime_isa\` function is deprecated. Please migrate away from 
using this function.

warn: The \`get_runtime_isa\` function is deprecated. Please migrate away from 
using this function.

Global frequency set at 1000000000000 ticks per second

warn: No dot file generated. Please install pydot to generate the dot file and 
pdf.

src/mem/dram_interface.cc:690: warn: DRAM device capacity (8192 Mbytes) does 
not match the address range assigned (512 Mbytes)

src/base/loader/image_file_data.cc:110: fatal: fatal condition fd < 0 occurred: 
Failed to open file None.

This error typically occurs when the file path specified is incorrect.

Memory Usage: 99768 KBytes”

What can I do?
_______________________________________________
gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-le...@gem5.org

Reply via email to