Hi Gabe thanks for the answer, in SE, this is my command:
./build/ALPHA_SE/m5.opt configs/example/cmp.py -b bzip2
command line: ./build/ALPHA_SE/m5.opt configs/example/cmp.py -b bzip2
Traceback (most recent call last):
File "<string>", line 1, in ?
File "/home/TestM5/m5-work3/m5-9279812da5ee/src/python/m5/main.py",
line 380, in main
exec filecode in scope
File "configs/example/cmp.py", line 17, in ?
import Mybench
File "/home/TestM5/m5-work3/m5-9279812da5ee/configs/common/Mybench.py",
line 4, in ?
perlbench = LiveProcess()
NameError: name 'LiveProcess' is not defined
On Mon, Mar 23, 2009 at 7:44 PM, Gabriel Michael Black
<[email protected]> wrote:
> Are you running in FS mode or SE? The LiveProcess SimObject is only
> defined in SE.
>
> Gabe
>
> Quoting Ryan Markley <[email protected]>:
>
>> Hello Meng-Ju thanks for your answer,
>>
>> Yes I have it. This my cmp.py file
>>
>> #cmp.py
>> # Simple configuration script
>>
>> import m5
>>
>> if m5.build_env['FULL_SYSTEM']:
>> m5.panic("This script requires syscall emulation mode (*_SE).")
>>
>> from m5.objects import *
>> import os, optparse, sys
>> m5.AddToPath('./configs')
>> m5.AddToPath('../common')
>> import Simulation
>> from Caches import *
>> from cpu2000 import *
>>
>> import Mybench
>>
>> # Get paths we might need. It's expected this file is in m5/configs/example.
>> config_path = os.path.dirname(os.path.abspath(__file__))
>> print config_path
>> config_root = os.path.dirname(config_path)
>> print config_root
>> m5_root = os.path.dirname(config_root)
>> print m5_root
>>
>>
>> parser = optparse.OptionParser()
>>
>> #Below this is the same than the one we find in the wiki
>>
>> My Mybench.py file is the same than the one in the wiki and is located
>> in /configs/common . What I did was just create the file Mybench.py in
>> common and after I created the file cmp.py in /configs/example. I did
>> not change any configuration files or anything should I change
>> something else?.
>>
>> Thanks a lot again and sorry for the problems.
>>
>> 2009/3/23 Meng-Ju Wu <[email protected]>:
>>> Hi Ryan,
>>>
>>> Do you have these two lines in the top of your python file?
>>>
>>> from m5.objects import *
>>> import os, optparse, sys
>>>
>>>
>>> Meng-Ju
>>> _______________________________________________
>>> m5-users mailing list
>>> [email protected]
>>> http://m5sim.org/cgi-bin/mailman/listinfo/m5-users
>>>
>> _______________________________________________
>> m5-users mailing list
>> [email protected]
>> http://m5sim.org/cgi-bin/mailman/listinfo/m5-users
>>
>
>
> _______________________________________________
> m5-users mailing list
> [email protected]
> http://m5sim.org/cgi-bin/mailman/listinfo/m5-users
>
_______________________________________________
m5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/m5-users