[gem5-users] gcc compilation with m5_dump_stats/reset_stats

2023-01-25 Thread Ayan Ray via gem5-users
Hi , I have used m5_dump_stats and reset_stats in the cpp file. But when i compile with below command still it complains , included the m5ops.h too : #include #include "gem5/m5ops.h" g++ -static -I include -o test test.cpp test.cpp:(.text+0xca): undefined reference to `m5_dump_stats' test.c

[gem5-users] Re: gcc compilation with m5_dump_stats/reset_stats

2023-01-25 Thread Preet Derasari via gem5-users
Hi Ayan, Can you show how you have coded the m5_dump_stats and m5_reset_stats? I would also recommend using multiple m5_dump_reset_stats(0,0) commands if you just want to print the statistics for a specific code regions. Also did you correctly compile the m5utils as described here?: https://www.

[gem5-users] Re: gcc compilation with m5_dump_stats/reset_stats

2023-01-25 Thread Preet Derasari via gem5-users
Hi Ayan, Can you show how you have coded the m5_dump_stats and m5_reset_stats? I would also recommend using multiple m5_dump_reset_stats(0,0) commands if you just want to print the statistics for a specific code regions. Also did you correctly compile the m5utils as described here?: https://www.

[gem5-users] Re: gcc compilation with m5_dump_stats/reset_stats

2023-01-25 Thread Ayan Ray via gem5-users
Please ignore. Resolved with adding the m5ops.S file in gcc command line On Thu, Jan 26, 2023 at 12:52 AM Preet Derasari wrote: > Hi Ayan, > > Can you show how you have coded the m5_dump_stats and m5_reset_stats? > > I would also recommend using multiple m5_dump_reset_stats(0,0) commands if > yo

[gem5-users] Re: Running gem5 RISCV in bare-metal mode

2023-01-25 Thread Priyanka Ankolekar via gem5-users
Thank you, Ayaz. That worked. On Tue, Jan 24, 2023 at 10:14 AM Ayaz Akram wrote: > Hi Priyanka, > > I think adding something like the following line in your script should > solve the problem you are running into: > > system.platform.pci_host.pio = system.iobus.mem_side_ports > > -Ayaz > > On Tue

[gem5-users] running Dhrystone on gem5 RISCV, how to exit?

2023-01-25 Thread Priyanka Ankolekar via gem5-users
Hello, I am trying to run Dhrystone on gem5 RISCV using the fs_linux.py file in the gem5 repo. configs/example/riscv/fs_linux.py Here is the command I am using: ./build/RISCV/gem5.opt --debug-start=0 --debug-flags=Exec --debug-file=trace.out ./configs/example/riscv/fs_linux.py --bare-metal --ker