41a42,43
> from __future__ import print_function
>
173c175
< print "Resuming from", checkpoint_dir
---
> print("Resuming from", checkpoint_dir)
181,183c183,185
< print "Resuming from SimPoint",
< print "#%d, start_inst:%d, weight:%f, interval:%d, warmup:%d" % \
< (index, start_inst, weight_inst, interval_length, warmup_length)
---
> print("Resuming from SimPoint", end=' ')
> print("#%d, start_inst:%d, weight:%f, interval:%d, warmup:%d" %
> (index, start_inst, weight_inst, interval_length, warmup_length))
213c215
< print "Creating checkpoint at inst:%d" % (checkpoint_inst)
---
> print("Creating checkpoint at inst:%d" % (checkpoint_inst))
216c218
< print "exit cause = %s" % exit_cause
---
> print("exit cause = %s" % exit_cause)
226c228
< print "Checkpoint written."
---
> print("Checkpoint written.")
291,294c293,296
< print "simpoint analysis file:", simpoint_filename
< print "simpoint weight file:", weight_filename
< print "interval length:", interval_length
< print "warmup length:", warmup_length
---
> print("simpoint analysis file:", simpoint_filename)
> print("simpoint weight file:", weight_filename)
> print("interval length:", interval_length)
> print("warmup length:", warmup_length)
342,343c344,345
< print str(interval), str(weight), starting_inst_count, \
< actual_warmup_length
---
> print(str(interval), str(weight), starting_inst_count,
> actual_warmup_length)
346c348
< print "Total # of simpoints:", len(simpoints)
---
> print("Total # of simpoints:", len(simpoints))
367c369
< print "Found 'checkpoint' exit event...ignoring..."
---
> print("Found 'checkpoint' exit event...ignoring...")
378,379c380,381
< print "Checkpoint #%d written. start inst:%d weight:%f" % \
< (num_checkpoints, starting_inst_count, weight)
---
> print("Checkpoint #%d written. start inst:%d weight:%f" %
> (num_checkpoints, starting_inst_count, weight))
386,387c388,389
< print 'Exiting @ tick %i because %s' % (m5.curTick(), exit_cause)
< print "%d checkpoints taken" % num_checkpoints
---
> print('Exiting @ tick %i because %s' % (m5.curTick(), exit_cause))
> print("%d checkpoints taken" % num_checkpoints)
395c397
< print "Warmed up! Dumping and resetting stats!"
---
> print("Warmed up! Dumping and resetting stats!")
403c405
< print "Done running SimPoint!"
---
> print("Done running SimPoint!")
406c408
< print 'Exiting @ tick %i because %s' % (m5.curTick(), exit_cause)
---
> print('Exiting @ tick %i because %s' % (m5.curTick(), exit_cause))
410c412
< print "starting switch loop"
---
> print("starting switch loop")
492c494
< print "%s: Must be used with caches" % str(switch_class)
---
> print("%s: Must be used with caches" % str(switch_class))
495c497
< print "%s: CPU switching not supported" % str(switch_class)
---
> print("%s: CPU switching not supported" % str(switch_class))
644,645c646,647
< print "Switch at instruction count:%s" % \
< str(testsys.cpu[0].max_insts_any_thread)
---
> print("Switch at instruction count:%s" %
> str(testsys.cpu[0].max_insts_any_thread))
648,649c650,651
< print "Switch at instruction count:%s" % \
< str(testsys.cpu[0].max_insts_any_thread)
---
> print("Switch at instruction count:%s" %
> str(testsys.cpu[0].max_insts_any_thread))
652c654
< print "Switch at curTick count:%s" % str(10000)
---
> print("Switch at curTick count:%s" % str(10000))
654c656
< print "Switched CPUS @ tick %s" % (m5.curTick())
---
> print("Switched CPUS @ tick %s" % (m5.curTick()))
659,660c661,662
< print "Switch at instruction count:%d" % \
< (testsys.switch_cpus[0].max_insts_any_thread)
---
> print("Switch at instruction count:%d" %
> (testsys.switch_cpus[0].max_insts_any_thread))
667,669c669,671
< print "Switching CPUS @ tick %s" % (m5.curTick())
< print "Simulation ends instruction count:%d" % \
< (testsys.switch_cpus_1[0].max_insts_any_thread)
---
> print("Switching CPUS @ tick %s" % (m5.curTick()))
> print("Simulation ends instruction count:%d" %
> (testsys.switch_cpus_1[0].max_insts_any_thread))
702c704
< print "**** REAL SIMULATION ****"
---
> print("**** REAL SIMULATION ****")
712c714,715
< print 'Exiting @ tick %i because %s' % (m5.curTick(), exit_event.getCause())
---
> print('Exiting @ tick %i because %s' %
> (m5.curTick(), exit_event.getCause()))