Hi,

I'm the one who originally wrote that config file.  If you don't need
anything else from those scripts, I'd just use the mainline run scripts
like Andreas said and copy the appropriate config values like O3_ARM_v7a.

Since those scripts were written the branch predictor structure was
re-organized and gem5 added clock domains.  It's a bit dated now.


On Tue, May 20, 2014 at 11:59 AM, Andreas Hansson via gem5-users <
gem5-users@gem5.org> wrote:

>  Hi Alberto,
>
>  The CPU no longer has a clock. Rather, it belongs to a clock domain,
> that in turn has a clock.
>
>  In any case, you probably want to keep the clock speed separate. Have a
> look at configs/common/O3_ARM_v7a.py for a custom CPU config.
>
>  Andreas
>
>   From: Alberto Martinez via gem5-users <gem5-users@gem5.org>
> Reply-To: Alberto Martinez <alber...@gmail.com>, gem5 users mailing list <
> gem5-users@gem5.org>
> Date: Tuesday, 20 May 2014 17:55
> To: "gem5-users@gem5.org" <gem5-users@gem5.org>
> Subject: [gem5-users] Nehalem on gem5
>
>  Hello,
> I am trying to use a Nehalem configuration that I found in this email list
> right here:
>
>  http://comments.gmane.org/gmane.comp.emulators.m5.users/14015
>
>  But I am having some erros.
> I moved to config/alberto the files included in the .tar that you can see
> in the link I wrote (Nehalem.py, Nahalem.cfg y se2.py). And I run:
>
>  ./build/X86_FS/gem5.opt configs/alberto/se2.py
> --cfg=configs/alberto/nehalem.cfg
> --cmd=./tests/test-progs/hello/bin/alpha/linux/hello
>
>  I found 2 errors complaining about 2 attributes in the BranchPredictor,
> and I deleted them (cause there were not important for what I need to do),
> but I still have some erros I cannot solve.
>
>  First I have:
>
>  Traceback (most recent call last):
>   File "<string>", line 1, in <module>
>   File "/home/amartinez/gem5/src/python/m5/main.py", line 387, in main
>     exec filecode in scope
>   File "configs/alberto/se2.py", line 96, in <module>
>     detailed_cpu = Nehalem(cpu_id = 0, switched_out=detailed_switched_out,
> **cpu_options)
>   File "/home/amartinez/gem5/src/python/m5/SimObject.py", line 672, in
> __init__
>     setattr(self, key, val)
>   File "/home/amartinez/gem5/src/python/m5/SimObject.py", line 767, in
> __setattr__
>     % (self.__class__.__name__, attr)
> AttributeError: Class Nehalem has no parameter clock
>
>
>  But "clock" attribute is defined in Nehalem.cfg like that:
>
>  [cpu]
> type = nehalem
> clock = 2GHz
>
>  I tried deleting it from there, and adding it in Nehalem.py like:
>
>  class Nehalem(DerivO3CPU):
>     clock = 2
>     LQEntries = 48
>     SQEntries = 32
>     LSQDepCheckShift = 0
>     LFSTSize = 1024
>     SSITSize = 1024
>     decodeToFetchDelay = 1
>     renameToFetchDelay = 1
>  ....
>
>  But then I got this error:
>
>
>    File "<string>", line 1, in <module>
>   File "/home/amartinez/gem5/src/python/m5/main.py", line 387, in main
>     exec filecode in scope
>   File "configs/alberto/se2.py", line 7, in <module>
>     from Nehalem import *
>   File "configs/alberto/Nehalem.py", line 78, in <module>
>     class Nehalem(DerivO3CPU):
>   File "/home/amartinez/gem5/src/python/m5/SimObject.py", line 254, in
> __init__
>     setattr(cls, key, val)
>   File "/home/amartinez/gem5/src/python/m5/SimObject.py", line 348, in
> __setattr__
>     "Class %s has no parameter \'%s\'" % (cls.__name__, attr)
> AttributeError: Class Nehalem has no parameter 'clock'
>
>
>  Actually complaining because I added that parameter. What am I doing
> wrong? Am I using this script and configuration wrong? How should I use it
> then?
>
>  Thanks a lot for your attention,
> Alberto
>
>
> -- IMPORTANT NOTICE: The contents of this email and any attachments are
> confidential and may also be privileged. If you are not the intended
> recipient, please notify the sender immediately and do not disclose the
> contents to any other person, use it for any purpose, or store or copy the
> information in any medium. Thank you.
>
> ARM Limited, Registered office 110 Fulbourn Road, Cambridge CB1 9NJ,
> Registered in England & Wales, Company No: 2557590
> ARM Holdings plc, Registered office 110 Fulbourn Road, Cambridge CB1 9NJ,
> Registered in England & Wales, Company No: 2548782
>
> _______________________________________________
> 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