|
Hi, I'm a beginner with M5 and I have some trouble in adding an object
in the
system configuration python script. Specifically, I created a new class that inheritates from SimObject class and added the DECLARE/INIT and CREATE/REGISTER macros needed for building the object. I also added a new .py file in the python/m5/objects directory and added the .cc file in the compilation list in file m5/SConscript. When I rebuild the simualtor there are no compilation errors. However I added an instantiation of the object in the python system configuration script and when trying to run a simulation I get the following error: Traceback (most recent call last):
File "./ALPHA_SE/output/config.py", line 3930, in ? m5execfile('../../m5-test/test1/run.py', globals()) File "<embed: m5/python/m5/__init__.py>", line 42, in m5execfile File "../../m5-test/test1/run.py", line 3, in ? from DetailedUniConfig import * File "/afs/engin.umich.edu/class/f05/eecs570/students/kypros/m5_1.1/m5-test/DetailedUniConfig.py", line 2, in ? from MemConfig import * File "/afs/engin.umich.edu/class/f05/eecs570/students/kypros/m5_1.1/m5-test/MemConfig.py", line 22, in ? class DC(DirectoryController): NameError: name 'DirectoryController' is not defined Do you have any idea of what I might be doing wrong?
Thanks in advance, - Kypros
|
- [m5sim-users] trouble with creating a new SimObject Kypros Constantinides
