Hi All,
I am on the latest commit on master (9fc9c67b4242c03f165951775be5cd0812f2a705)
and trying to follow along the steps provided in util/TLM/README. However, I am
seeing some compilation errors when executing this command:
scons --with-cxx-config --without-python --without-tcmalloc
build/ARM/libgem5_opt.so
The errors are:
build/ARM/cxx_config/Gem5ToTlmBridge32.cc: In member function 'virtual
SimObject* Gem5ToTlmBridge32CxxConfigParams::simObjectCreate()':
build/ARM/cxx_config/Gem5ToTlmBridge32.cc:136:25: error: cannot convert
'sc_gem5::Gem5ToTlmBridge<32>*' to 'SimObject*' in return
return this->create();
build/ARM/cxx_config/Gem5ToTlmBridge64.cc: In member function 'virtual
SimObject* Gem5ToTlmBridge64CxxConfigParams::simObjectCreate()':
build/ARM/cxx_config/Gem5ToTlmBridge64.cc:136:25: error: cannot convert
'sc_gem5::Gem5ToTlmBridge<64>*' to 'SimObject*' in return
return this->create();
I suspect this is related to how Gem5ToTlmBridge32/64 both inherit from
SimObject in Python, but do not inherit from SimObject in C++, which causes
these return type compilation issues. The non-conventional inheritance
structure is also mentioned in a comment in SystemC.py.
Any advice on resolving this compilation issue would be appreciated.
Regards,
Paul
_______________________________________________
gem5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users