sim: Move CPU-specific methods from SimObject to the BaseCPU class

This commit is contained in:
Andreas Sandberg
2012-09-25 11:49:40 -05:00
parent 5f32eceeda
commit 6598241f2c
6 changed files with 36 additions and 47 deletions

View File

@@ -602,8 +602,6 @@ class SimObject(object):
unsigned int drain(Event *drain_event);
void resume();
void switchOut();
void takeOverFrom(BaseCPU *cpu);
''')
# Initialize new instance. For objects with SimObject-valued
@@ -1050,9 +1048,6 @@ class SimObject(object):
for portRef in self._port_refs.itervalues():
portRef.ccConnect()
def takeOverFrom(self, old_cpu):
self._ccObject.takeOverFrom(old_cpu._ccObject)
# Function to provide to C++ so it can look up instances based on paths
def resolveSimObject(name):
obj = instanceDict[name]