Hi Xin,
You need to add these 3 lines to your code :
import Options
Options.addCommonOptions(parser)
Options.addSEOptions(parser)

before the line
execfile(os.path.join(config_root, "common", "Options.py"))

--cpu-type is an option which is specified in configs/common/Options.py,
and addCommonOptions is a function which adds the
commonly used options to the cmp.py script.


Thanks,
Umesh


On Fri, Mar 1, 2013 at 8:19 AM, Xin He <[email protected]> wrote:

> Dear ALL,****
>
> ** **
>
> I’ve built gem5 and compiled spec2006 successfully.****
>
> I follow the guide provided in the wiki, download Mybench.py and cmp.py***
> *
>
> ** **
>
> Then I run ****
>
> ** **
>
> ./build/ALPHA/gem5.opt config/example/cmp.py –b gcc****
>
> ** **
>
> I’ve corrected some error with the help from the mailing list.****
>
> ** **
>
> After that, an error occurs as below,****
>
> ** **
>
> File
> "/home/XXXXXX/workspace/gem5-stable-f75ee4849c40/configs/common/Simulation.py",
> line 50, in setCPUClass****
>
>     if options.cpu_type == "timing":****
>
> AttributeError: Values instance has no attribute 'cpu_type'****
>
> ** **
>
> Can anyone lend me a hand to solve it?****
>
> ** **
>
> Thank you very much!****
>
> ** **
>
> *XIN HE*
>
> ** **
>
> _______________________________________________
> gem5-users mailing list
> [email protected]
> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
>
_______________________________________________
gem5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to