Re: [gem5-users] RISC-V ISA + Gathering stats for ROI only

2019-07-27 Thread Alec Roelke
Hi Marcelo, You're right that RISC-V doesn't have m5_ops implemented yet, but one way you could get an instruction count is by reading the INSTRET CSR in your program just before your ROI, since that directly reads the CPU model's instruction counter. Hope this helps, Alec Roelke On Thu, Jul 25,

[gem5-users] RISC-V ISA + Gathering stats for ROI only

2019-07-25 Thread Marcelo Brandalero
Hi all, I have an application compiled for the RISC-V ISA running in gem5 SE mode. I want to profile, i.e. get the execution stats, only for a specific kernel / Region of Interest (ROI) inside the code. I understand the standard way to approach this would be to insert m5_ops that call m5_reset_st