[gem5-users] Re: About simulating simple C program in gem5 FS mode

2024-02-01 Thread elio.vinciguerra--- via gem5-users
Is it possible to simulate with only the C program, without linux underneath? I recently saw that you should use the bare-metal option, but I don't really understand how to use it. Elio ___ gem5-users mailing list -- gem5-users@gem5.org To unsubscribe

[gem5-users] Re: Modifying Garnet Routers

2024-02-01 Thread Srikant Bharadwaj via gem5-users
Hi Vladimir, You can print the message pointer in Network Interface. You can use the Garnet DPRINTF to do so. The file to modify would be src/mem/ruby/network/garnet/NetworkInterface.cc in function flitisizeMessage Thanks, Srikant On Thu, Feb 1, 2024 at 7:26 PM Vladimir Milicevic via gem5-user

[gem5-users] Segmentation fault when booting RISCV Linux on Gem5

2024-02-01 Thread zahra butool via gem5-users
Hi everyone, I want to run RISCV Linux on Gem5 FS modethe . I followed the instructions in this link (https://github.com/UCanLinux/riscv64-sample/tree/master) to build the Linux kernel, rootfs, and bbl. When I run this on Gem5, I can see the boot logs, but at the end of the bootloader, I get multi

[gem5-users] Modifying Garnet Routers

2024-02-01 Thread Vladimir Milicevic via gem5-users
I am trying to get the routers in a Garnet network to print when a GetX request is received on the network. This is in preparation to further extend the capabilities of the routers in the network. Can someone help point me to which files I should be modifying to see this message printed using th

[gem5-users] Re: About simulating simple C program in gem5 FS mode

2024-02-01 Thread sun2k23 via gem5-users
Hi, Generally, firstly you need to boot the linux on RISCV model successfully. And then you need to develop your own c application program and compile it with cross-compiler statically, then you copy the test executable to the mounted disk(The riscv OS disk, let's assume you put it on /tmp/te

[gem5-users] Re: Question about running RISC-V program on Gem5

2024-02-01 Thread sun2k23 via gem5-users
Hi, I think you can try to use starttimeofday() function both in SE and FS mode. Inside SE mode, it will trigger syscall/ecall. Demo code like below for your reference: S2K23 At 2024-02-02 05:51:46, "zahra butool via gem5-users" wrote: Hi everyone, I want to run a program buil

[gem5-users] Question about running RISC-V program on Gem5

2024-02-01 Thread zahra butool via gem5-users
Hi everyone, I want to run a program built with RISC-V Linux toolchain (riscv64-unknown-linux-gnu-g++) on Gem5 and get its cycle count and other stats. I have two questions regarding this and would be thankful if you could help with them. 1. Can this program be run on Gem5 in SE mode? Or since

[gem5-users] Re: 'SConsEnvironment' object has no attribute 'M4': when building

2024-02-01 Thread Khan Shaikhul Hadi via gem5-users
Have you checked if you have M4 package installed in your machine ? On Thu, Jan 25, 2024 at 11:41 AM Ioannis Constantinou via gem5-users < gem5-users@gem5.org> wrote: > Hello all, > > So I’m trying to build gem5 on a new machine and I get the following error. > > > scons: Reading SConscript file

[gem5-users] About simulating simple C program in gem5 FS mode

2024-02-01 Thread elio.vinciguerra--- via gem5-users
Hi all, I am looking for a way to emulate with gem5 in FS (Full System) mode simple C executables, compiled in RISC-V, even containing a single infinite while loop. Could someone please point me to how to do this? ___ gem5-users mailing list -- gem5-use