From 6598241f2c188ba6f4ce035d9e1fbdd4619c7e00 Mon Sep 17 00:00:00 2001 From: Andreas Sandberg Date: Tue, 25 Sep 2012 11:49:40 -0500 Subject: sim: Move CPU-specific methods from SimObject to the BaseCPU class --- src/sim/sim_object.hh | 23 ----------------------- 1 file changed, 23 deletions(-) (limited to 'src/sim/sim_object.hh') 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; -- cgit v1.2.3