Hi,
If I remember correctly, SimObjects are never destructed, although they have a
virtual destructor. The memory is reclaimed by the OS at process exit. Thus, I
would also recommend not using the destructor and prefer registerExitCallback().
Gabriel
*Very* superficially looking at this (just at what's in the emails here),
you might want to make sure the BaseCPU destructor is virtual, or at least
the destructor of a base class is. If it isn't currently, the destructor of
SimObject should probably be virtual. I don't know for sure whether that
Hi Scott,
If you want something to execute before gem5 is completed, you can call
`registerExitCallback`. See
http://doxygen.gem5.org/release/current/namespacegem5.html#abcf3056836ee522620e5b14d9392ea87
I *think* that will solve your problem, but let me know if not. I don't
think there's a clean