Hi Francisco,

Apparently gem5 cannot register your object to object list. With the
information you gave, I can only guess.

- Did you register your object in the SConscript file?
- Did you recompile gem5.opt after you created your SimObject? While you
compiling the gem5 binary with scons build/RISCV/gem5.opt, you should be
able to see your object's name in the list of compiled objects.

Best,
Muhammet

Francisco Carlos <juninho.u...@hotmail.com>, 23 Mar 2020 Pzt, 23:47
tarihinde şunu yazdı:

> I am facing a problem in passing a simObject as Parameter to DerivO3Cpu
> simObject . I create a simObject named DtmObject and it appears when I run
> the command for listing the simObjects:
> ./build/RISCV/gem5.opt --list-sim-objects.
>
> However, when I try to import (from m5.objects.DtmObject import *) to use
> it as a parameter in other SimObject, in the O3CPU.py file to be more
> specific, I get the following error: ImportError: No module named DtmObject.
>
> Am I missing something? I followed the tutorial in the gem5 page (
> http://www.gem5.org/documentation/learning_gem5/part2/parameters/) and
> still, I can't figure out what is going on.
>
> Thanks in advance.
>
>
> ----------------------------------------------------------------------------------------------------------------------------------------------
> Francisco Carlos Silva Junior
> Phd Student at University of Brasilia
> _______________________________________________
> 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