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" <gem5-users@gem5.org> 
wrote:

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.
Can this program be run on Gem5 in SE mode? Or since it is built with RISC-V 
Linux toolchain, do I need to run it in FS mode?
If I need to run this program in FS mode, how can I get the stat for this 
specific program and not Linux+this program?
_______________________________________________
gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-le...@gem5.org

Reply via email to