sim: Move CPU-specific methods from SimObject to the BaseCPU class
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user