109c109
< arg = options.maxtick
---
> maxtick = options.maxtick
113c113
< arg = simtime
---
> maxtick = simtime
115c115
< arg = -1
---
> maxtick = -1
117c117
< exit_event = m5.simulate(arg)
---
> exit_event = m5.simulate(maxtick)
120,121c120,121
< m5.checkpoint(root, "cpt.%d")
< exit_event = m5.simulate(arg)
---
> m5.checkpoint(root, "cpt.%d")
> exit_event = m5.simulate(maxtick - m5.curTick())