0%

Gem5 Util

m5ops

build

in $GEM5_ROOT/util/m5

1
scons riscv.CROSS_COMPILE=riscv64-linux-gnu- build/riscv/out/libm5.a

usage in workload sources

  • header file: $GEM5_ROOT/include/gem5/m5ops.h
  • C static lib: $GEM5_ROOT/util/m5/build/$ISA/out/libm5.a

m5_dump_reset_stats():

sim out file : under m5out/

  1. config.ini
    Contains a list of every SimObject created for the simulation and the values for its parameters.
  2. config.json
    The same as config.ini, but in json format.
  3. stats.txt
    A text representation of all of the gem5 statistics registered for the simulation.

add the annotation in code