Looks like the O3 CPU wasn't compiled into the simulator. Try removing the 
build directory and re-compiling.

Ali

On Aug 21, 2011, at 3:50 AM, Mahmood Naderan wrote:

> Hi
> With the latest revision, I don't know why I cannot resume from the 
> checkpoint.
> 
> command line: build/X86_FS/m5.opt configs/example/fs.py --detail --caches -r 1
> Traceback (most recent call last):
>   File "<string>", line 1, in <module>
>   File "/home/mahmood/gem5/src/python/m5/main.py", line 356, in main
>     exec filecode in scope
>   File "configs/example/fs.py", line 107, in <module>
>     (TestCPUClass, test_mem_mode, FutureClass) = 
> Simulation.setCPUClass(options)
>   File "/home/mahmood/gem5/configs/common/Simulation.py", line 52, in 
> setCPUClass
>     class TmpClass(DerivO3CPU): pass
> NameError: global name 'DerivO3CPU' is not defined
> 
> simulation.py look like:
> import m5
> from m5.defines import buildEnv
> from m5.objects import *
> from m5.util import *
> ...
>     elif options.detailed:
>         if not options.caches:
>             print "O3 CPU must be used with caches"
>             sys.exit(1)
>         class TmpClass(DerivO3CPU): pass
> 
> fs.py look like:
> import m5
> from m5.defines import buildEnv
> from m5.objects import *
> from m5.util import addToPath, fatal
> ...
> (TestCPUClass, test_mem_mode, FutureClass) = Simulation.setCPUClass(options)
> 
> 
> Any idea to fix that?
> // Naderan *Mahmood;
> 
> _______________________________________________
> gem5-users mailing list
> gem5-users@gem5.org
> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

_______________________________________________
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to