54c54
< if options.checkpoint_restore or options.fast_forward:
---
> if options.checkpoint_restore != None or options.fast_forward:
90c90
< testsys.cpu[i].max_insts_any_thread = options.fast_forward
---
> testsys.cpu[i].max_insts_any_thread = int(options.fast_forward)
94a95,97
> # simulation period
> if options.max_inst:
> switch_cpus[i].max_insts_any_thread = options.max_inst
115c118
< if options.checkpoint_restore:
---
> if options.checkpoint_restore != None:
119c122
< testsys.cpu[i].max_insts_any_thread = options.fast_forward
---
> testsys.cpu[i].max_insts_any_thread = int(options.fast_forward)
150c153
< if options.take_checkpoints and \
---
> if options.take_checkpoints != None and \
158c161
< checkpoint_inst = testsys.cpu[i].workload[0].simpoint + offset
---
> checkpoint_inst = int(testsys.cpu[i].workload[0].simpoint) + offset
169,170d171
< testsys.cpu_switch_list = cpu_switch_list
<
173c174
< if options.checkpoint_restore:
---
> if options.checkpoint_restore != None:
193c194
< if testsys.cpu[i].workload[0].simpoint == None:
---
> if testsys.cpu[0].workload[0].simpoint == None:
197c198
< testsys.cpu[0].workload[0].simpoint
---
> int(testsys.cpu[0].workload[0].simpoint)
278,282c279
< if options.take_checkpoints:
< when, period = options.take_checkpoints.split(",", 1)
< when = int(when)
< period = int(period)
<
---
> if options.take_checkpoints != None :
284c281
< checkpoint_inst = when
---
> checkpoint_inst = int(options.take_checkpoints)
287c284
< if options.checkpoint_restore:
---
> if options.checkpoint_restore != None:
307a305,308
> when, period = options.take_checkpoints.split(",", 1)
> when = int(when)
> period = int(period)
>