At this part, you will create a simObject that focuses on “Malloc and Free” and add some functionalities for it.
Note that Malloc and Free LAB is a challenge part
When to rebuild gem5 ?
gem5 has config files like
SConscript. Some config files will influence gem5 binary(ELF file). Some config files just influence gem5 runtime behavior. You need to distinguish that by yourself. For example, if you add some new features to gem5, rebuilding gem5 is obivous.
You can find template code at here