diff options
author | Andreas Sandberg <Andreas.Sandberg@arm.com> | 2012-09-25 11:49:40 -0500 |
---|---|---|
committer | Andreas Sandberg <Andreas.Sandberg@arm.com> | 2012-09-25 11:49:40 -0500 |
commit | 6598241f2c188ba6f4ce035d9e1fbdd4619c7e00 (patch) | |
tree | a9785f2f7fd62f92916eb8f3900ad0427b96396d /src/sim | |
parent | 5f32eceeda92f45d253a0835c6643e786a91ba49 (diff) | |
download | gem5-6598241f2c188ba6f4ce035d9e1fbdd4619c7e00.tar.xz |
sim: Move CPU-specific methods from SimObject to the BaseCPU class
Diffstat (limited to 'src/sim')
-rw-r--r-- | src/sim/sim_object.cc | 13 | ||||
-rw-r--r-- | src/sim/sim_object.hh | 23 |
2 files changed, 0 insertions, 36 deletions
diff --git a/src/sim/sim_object.cc b/src/sim/sim_object.cc index 866ce0ce2..32e936ff2 100644 --- a/src/sim/sim_object.cc +++ b/src/sim/sim_object.cc @@ -163,19 +163,6 @@ SimObject::resume() state = Running; } -void -SimObject::switchOut() -{ - panic("Unimplemented!"); -} - -void -SimObject::takeOverFrom(BaseCPU *cpu) -{ - panic("Unimplemented!"); -} - - SimObject * SimObject::find(const char *name) { diff --git a/src/sim/sim_object.hh b/src/sim/sim_object.hh index 4fa2b7f05..c1238e23f 100644 --- a/src/sim/sim_object.hh +++ b/src/sim/sim_object.hh @@ -255,29 +255,6 @@ class SimObject : public EventManager, public Serializable */ virtual void resume(); - /** - * Prepare a CPU model to be switched out, invoked on active CPUs - * that are about to be replaced. - * - * @note This should only be implemented in CPU models. - */ - virtual void switchOut(); - - /** - * Load the state of a CPU from the previous CPU object, invoked - * on all new CPUs that are about to be switched in. - * - * A CPU model implementing this method is expected to initialize - * its state from the old CPU and connect its memory (unless they - * are already connected) to the memories connected to the old - * CPU. - * - * @note This should only be implemented in CPU models. - * - * @param cpu CPU to initialize read state from. - */ - virtual void takeOverFrom(BaseCPU *cpu); - #ifdef DEBUG public: bool doDebugBreak; |