[gem5-users] Re: Can't define my own create() function

2021-04-10 Thread weiwei Zhao via gem5-users
Yes, I saw your template for dummyxx, and I add a dummy parameter to my constructor ,it doesn;t compile error. Thank you ___ gem5-users mailing list -- gem5-users@gem5.org To unsubscribe send an email to gem5-users-le...@gem5.org

[gem5-users] Re: Can't define my own create() function

2021-04-09 Thread Gabe Black via gem5-users
Hi. The automatically generated create() method will only exist if your SimObject can be constructed with a constant reference to the parameter type. Or in other words, if it has a constructor of the form TraceManager(const TraceManagerParams ). You can disable that by just adding a dummy

[gem5-users] Re: Can't define my own create() function

2021-04-09 Thread weiwei Zhao via gem5-users
The compile error like this: build/ARM/params/TraceManager.do: In function `TraceManagerParams::create() const': /data1/zhaoweiwei/gem5/base_v21.0.0.0/build/ARM/params/TraceManager.cc:53: multiple definition of `TraceManagerParams::create() const'