[gem5-users] How to collect stats from my benchmark on FS mode

2019-10-22 Thread Iago .
I have been trying to use gem5 to analyze the performance of different control algorithms of an UAV. Using the full system mode simulation for that with an ARM image I would like to know if theres a way to write a script where I run my cross-compiled binary already moved to the system image and

Re: [gem5-users] Problem with DerivO3CPU and Ruby in FS

2019-10-22 Thread Shehab Elsayed
I think I might have found the commit that causes this problem. This is it https://github.com/gem5/gem5/commit/46da8fb805407cdc224abe788e8c666f3b0dadd1 Specifically, the modification that is causing the problems is the one in src/cpu/o3/lsq_impl.hh. In pushRequest(...) there is is this check: /*

Re: [gem5-users] How are registers modelled in gem5?

2019-10-22 Thread Ciro Santilli
The entry point is a bit clunky due to the Python interface, the best thing is to find the C++ simulate() function which gets called in Python as m5.simulate(). This explains roughly how that point is reached: https://cirosantilli.com/linux-kernel-module-cheat/#gem5-entry-point On Tue, Oct 22,

Re: [gem5-users] How are registers modelled in gem5?

2019-10-22 Thread Ciro Santilli
The main Atomic CPU function is: AtomicSimpleCPU::tick try to break there and see the backtrace to find the event loop. Another possible approach to locate stuff is to print a backtrace from --debug-flags messages with this yet unmerged patch:

Re: [gem5-users] How are registers modelled in gem5?

2019-10-22 Thread Libo Zhou
Hi Ciro, Thanks for your reply. I would like to get a sense of how gem5 is run in general, so single stepping with gdb is a good idea. I used gdb to single-step x86's 'gem5.debug simple.py', but I wasn't able to get in the execution loop. I started from main, and after getting in m5Main I

Re: [gem5-users] Fw: stats seem to be wrong in multicore simulation using SE mode

2019-10-22 Thread Francisco Carlos
It is missing information in your problem. What do you want to do with parameters "a" and "b". If you would like to pass 256 and a file path as a parameter I would suggest use the already implemented option -o, this way the command line would be: build/X86/gem5.opt configs/example/se.py -c

[gem5-users] Fw: stats seem to be wrong in multicore simulation using SE mode

2019-10-22 Thread ABD ALRHMAN ABO ALKHEEL
Hello, I wanna run sha3 algorithm (hashing function) on gem5 for million instructions. The algorithm runs as follow: sha3sum 256 file path. I added these parsers on se.py parser.add_option("-a", type="int") parser.add_option("-b", type="string") I run this command build/X86/gem5.opt