~SimulatorController: do not free ConcreteCPU object ptr in the base class
In fact, delete should be called in the destructor of each derived class (BochsController and Gem5Controller at the moment). Additionally, this is the reason why ~SimulatorController is declared as virtual. git-svn-id: https://www4.informatik.uni-erlangen.de/i4svn/danceos/trunk/devel/fail@2064 8c4709b5-6ec9-48aa-a5cd-a96041d1645a
Showing
- src/core/sal/SimulatorController.hpp 1 addition, 10 deletionssrc/core/sal/SimulatorController.hpp
- src/core/sal/bochs/BochsController.cc 5 additions, 0 deletionssrc/core/sal/bochs/BochsController.cc
- src/core/sal/gem5/Gem5Controller.cc 9 additions, 0 deletionssrc/core/sal/gem5/Gem5Controller.cc
- src/core/sal/gem5/Gem5Controller.hpp 1 addition, 0 deletionssrc/core/sal/gem5/Gem5Controller.hpp
Please register or sign in to comment