avrsim: Catch simulation errors

Request that simulavr throw an exception on a fatal emulation error
instead of exiting the process.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor 2017-03-26 20:45:19 -04:00
parent d4f09bc20d
commit efbfc2b1ab
1 changed files with 1 additions and 0 deletions

View File

@ -192,6 +192,7 @@ def main():
dev.Load(elffile)
dev.SetClockFreq(SIMULAVR_FREQ / speed)
sc.Add(dev)
pysimulavr.cvar.sysConHandler.SetUseExit(False)
trace.load_options()
# Do optional real-time pacing