On Fri, 4 Jan 2013, mehmet basaran wrote:
Hi all,
This is probably a dumn question but what should I do before instantiating
m5? I was going over tutorials, and tried to create a simple simulation
script. The error message I have is;
--------------------------------------------------------------------------------------------------
command line: ./build/X86/gem5.opt --debug-flags=Cache
--trace-file=my_trace.out configs/example/hardcoded.py -c
tests/test-progs/queens/bin/x86/linux/queens -o -c 8 --caches --l2cache
--cpu-type=timing
Global frequency set at 1000000000000 ticks per second
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/home/matara/Apps/gem5-e71f71ce233a/src/python/m5/main.py", line
359, in main
exec filecode in scope
File "configs/example/hardcoded.py", line 46, in <module>
m5.instantiate()
File "/home/matara/Apps/gem5-e71f71ce233a/src/python/m5/simulate.py",
line 106, in instantiate
for obj in root.descendants(): obj.createCCObject()
File "/home/matara/Apps/gem5-e71f71ce233a/src/python/m5/SimObject.py",
line 1040, in createCCObject
self.getCCObject() # force creation
File "/home/matara/Apps/gem5-e71f71ce233a/src/python/m5/SimObject.py",
line 1025, in getCCObject
self._ccObject = params.create()
AttributeError: 'MemObjectParams' object has no attribute 'create'
--------------------------------------------------------------------------------------------------
I copied my script mostly from Hipeac conference slides in tutorials;
You might want to try out gem5 with scripts from configs/examples/
directory. In particular, check whether se.py works for you or not. You
can read the documentation on gem5.org on how to use these scripts.
--
Nilay
_______________________________________________
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users