Welcome to gem5 Q&A, where you can ask questions and receive answers from other members of the community.

Problem while adding L3 cache

0 votes
I am trying to add L3 cache in gem5 by using


Gem5 compiles when i run benchmarks. following problem occurs

/home/avais/gem5_modified/gem5_comp_l3_t/configs/common/CacheConfig.py:48: SyntaxWarning: import * only allowed at module level
  def config_cache(options, system):
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/home/avais/gem5_modified/gem5_comp_l3_t/src/python/m5/main.py", line 437, in main
    exec filecode in scope
  File "/home/avais/gem5_modified/gem5_comp_l3_t/configs/example/se.py", line 287, in <module>
    Simulation.run(options, root, system, FutureClass)
  File "/home/avais/gem5_modified/gem5_comp_l3_t/configs/common/Simulation.py", line 589, in run
  File "/home/avais/gem5_modified/gem5_comp_l3_t/src/python/m5/simulate.py", line 115, in instantiate
    for obj in root.descendants(): obj.createCCObject()
  File "/home/avais/gem5_modified/gem5_comp_l3_t/src/python/m5/SimObject.py", line 1463, in createCCObject
  File "/home/avais/gem5_modified/gem5_comp_l3_t/src/python/m5/SimObject.py", line 1400, in getCCParams
    cc_params = cc_params_struct()
TypeError: _m5.param_BaseCache.BaseCacheParams: No constructor defined!
asked Sep 20 in Coding Guidelines by maq.uetian (700 points)

1 Answer

0 votes
This isn't enough information to diagnose the problem.

One possibility is you forgot to call super(xxx, self).__init__() in the constructor in your python config file.
answered Sep 21 by powerjg (6,280 points)
Thanks for indicating, i found the solution