Commit 0afb2a7b authored by Michael Büsch's avatar Michael Büsch

core: Fix cycle exit callback

Signed-off-by: Michael Büsch's avatarMichael Buesch <m@bues.ch>
parent 64828f9a
......@@ -557,8 +557,6 @@ class S7CPU(object): #+cdef
if self.callStack:
cse = self.callStackTop = self.callStack[-1]
prevCse.handleBlockExit()
if self.cbCycleExit:
self.cbCycleExit(self.cbCycleExitData)
# Run startup code
def startup(self):
......@@ -632,6 +630,10 @@ class S7CPU(object): #+cdef
self.__speedMeasureStartInsnCount = self.__insnCount
self.__speedMeasureStartCycleCount = self.__cycleCount
# Call the cycle exit callback, if any.
if self.cbCycleExit:
self.cbCycleExit(self.cbCycleExitData)
__getTime = getattr(time, "perf_counter", time.time)
# updateTimestamp() updates self.now, which is a
......
......@@ -110,9 +110,6 @@ class AwlSim(object):
except AwlSimError as e:
self.__handleSimException(e)
def shutdown(self):
self.unregisterAllHardware()
def reset(self):
try:
self.cpu.reset()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment