Hello,

I am trying to use shared_ptr for the Packet class.   I changed  "typedef 
Packet *PacketPtr" to "typedef std::shared_ptr<Packet> PacketPtr" and made all 
the needed associated changes.   My code compiled fine, but I now have this 
linker error:

build/ARM/python/_m5/param_Cache_Controller.cc:77: undefined reference to 
`gem5::Cache_ControllerParams::create() const'
build/ARM/python/_m5/param_Memory_Controller.do: In function 
`gem5::module_init(pybind11::module_&)'

There are also similar errors for Memory_Controller, MiscNode_Controller, and 
TrafficGenerator_Controller.

Does anybody know how to fix this issue?   Per a comment in 
build_tools/sim_object_param_struct_cc.py, 
"gem5::Cache_ControllerParams::create() const" is auto generated via some magic 
template trick that I don't understand.
Also, has anybody done something similar to this before and has pointers to 
share?  

Thank you
_______________________________________________
gem5-users mailing list -- gem5-us...@gem5.org
To unsubscribe send an email to gem5-users-le...@gem5.org

Reply via email to