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
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:
/*
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,
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:
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
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
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