hmctest.py (12340:a52f6d327259) | hmctest.py (12564:2778478ca882) |
---|---|
1from __future__ import print_function 2 |
|
1import sys 2import argparse 3import subprocess 4from pprint import pprint 5 6import m5 7from m5.objects import * 8from m5.util import * --- 86 unchanged lines hidden (view full) --- 95 main memory") 96 HMC.add_options(parser) 97 add_options(parser) 98 options = parser.parse_args() 99 # build the system 100 root = build_system(options) 101 # instantiate all of the objects we've created so far 102 m5.instantiate() | 3import sys 4import argparse 5import subprocess 6from pprint import pprint 7 8import m5 9from m5.objects import * 10from m5.util import * --- 86 unchanged lines hidden (view full) --- 97 main memory") 98 HMC.add_options(parser) 99 add_options(parser) 100 options = parser.parse_args() 101 # build the system 102 root = build_system(options) 103 # instantiate all of the objects we've created so far 104 m5.instantiate() |
103 print "Beginning simulation!" | 105 print("Beginning simulation!") |
104 event = m5.simulate(10000000000) 105 m5.stats.dump() | 106 event = m5.simulate(10000000000) 107 m5.stats.dump() |
106 print 'Exiting @ tick %i because %s (exit code is %i)' % (m5.curTick(), | 108 print('Exiting @ tick %i because %s (exit code is %i)' % (m5.curTick(), |
107 event.getCause(), | 109 event.getCause(), |
108 event.getCode()) 109 print "Done" | 110 event.getCode())) 111 print("Done") |
110 111 112if __name__ == "__m5_main__": 113 main() | 112 113 114if __name__ == "__m5_main__": 115 main() |