main.py (4087:ad2f343e3d45) | main.py (4123:9c80390ea1bb) |
---|---|
1# Copyright (c) 2005 The Regents of The University of Michigan 2# All rights reserved. 3# 4# Redistribution and use in source and binary forms, with or without 5# modification, are permitted provided that the following conditions are 6# met: redistributions of source code must retain the above copyright 7# notice, this list of conditions and the following disclaimer; 8# redistributions in binary form must reproduce the above copyright --- 226 unchanged lines hidden (view full) --- 235 236 if done: 237 sys.exit(0) 238 239 if options.verbose >= 0: 240 print "M5 Simulator System" 241 print brief_copyright 242 print | 1# Copyright (c) 2005 The Regents of The University of Michigan 2# All rights reserved. 3# 4# Redistribution and use in source and binary forms, with or without 5# modification, are permitted provided that the following conditions are 6# met: redistributions of source code must retain the above copyright 7# notice, this list of conditions and the following disclaimer; 8# redistributions in binary form must reproduce the above copyright --- 226 unchanged lines hidden (view full) --- 235 236 if done: 237 sys.exit(0) 238 239 if options.verbose >= 0: 240 print "M5 Simulator System" 241 print brief_copyright 242 print |
243 print "M5 compiled %s" % internal.main.cvar.compileDate; | 243 print "M5 compiled %s" % internal.core.cvar.compileDate; |
244 print "M5 started %s" % datetime.now().ctime() 245 print "M5 executing on %s" % socket.gethostname() 246 print "command line:", 247 for argv in sys.argv: 248 print argv, 249 print 250 251 # check to make sure we can find the listed script 252 if not arguments or not os.path.isfile(arguments[0]): 253 if arguments and not os.path.isfile(arguments[0]): 254 print "Script %s not found" % arguments[0] 255 256 usage(2) 257 258 # tell C++ about output directory | 244 print "M5 started %s" % datetime.now().ctime() 245 print "M5 executing on %s" % socket.gethostname() 246 print "command line:", 247 for argv in sys.argv: 248 print argv, 249 print 250 251 # check to make sure we can find the listed script 252 if not arguments or not os.path.isfile(arguments[0]): 253 if arguments and not os.path.isfile(arguments[0]): 254 print "Script %s not found" % arguments[0] 255 256 usage(2) 257 258 # tell C++ about output directory |
259 internal.main.setOutputDir(options.outdir) | 259 internal.core.setOutputDir(options.outdir) |
260 261 # update the system path with elements from the -p option 262 sys.path[0:0] = options.path 263 264 import objects 265 266 # set stats options 267 internal.stats.initText(options.stats_file) --- 74 unchanged lines hidden --- | 260 261 # update the system path with elements from the -p option 262 sys.path[0:0] = options.path 263 264 import objects 265 266 # set stats options 267 internal.stats.initText(options.stats_file) --- 74 unchanged lines hidden --- |