main.py (2890:e9a860453062) main.py (2891:85ce5705650b)
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

--- 269 unchanged lines hidden (view full) ---

278 objects.ExecutionTrace.print_opclass = options.print_opclass
279 objects.ExecutionTrace.print_thread = options.print_thread
280 objects.ExecutionTrace.print_effaddr = options.print_effaddr
281 objects.ExecutionTrace.print_data = options.print_data
282 objects.ExecutionTrace.print_iregs = options.print_iregs
283 objects.ExecutionTrace.print_fetchseq = options.print_fetch_seq
284 objects.ExecutionTrace.print_cpseq = options.print_cpseq
285
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

--- 269 unchanged lines hidden (view full) ---

278 objects.ExecutionTrace.print_opclass = options.print_opclass
279 objects.ExecutionTrace.print_thread = options.print_thread
280 objects.ExecutionTrace.print_effaddr = options.print_effaddr
281 objects.ExecutionTrace.print_data = options.print_data
282 objects.ExecutionTrace.print_iregs = options.print_iregs
283 objects.ExecutionTrace.print_fetchseq = options.print_fetch_seq
284 objects.ExecutionTrace.print_cpseq = options.print_cpseq
285
286 scope = { '__file__' : sys.argv[0] }
287 sys.argv = arguments
288 sys.path = [ os.path.dirname(sys.argv[0]) ] + sys.path
286 sys.argv = arguments
287 sys.path = [ os.path.dirname(sys.argv[0]) ] + sys.path
288
289 scope = { '__file__' : sys.argv[0] }
289 exec("import readline", scope)
290 execfile(sys.argv[0], scope)
291
292 # once the script is done
293 if options.interactive:
294 interact = code.InteractiveConsole(scope)
295 interact.interact("M5 Interactive Console")
296
297if __name__ == '__main__':
298 from pprint import pprint
299
300 parse_args()
301
302 print 'opts:'
303 pprint(options, indent=4)
304 print
305
306 print 'args:'
307 pprint(arguments, indent=4)
290 exec("import readline", scope)
291 execfile(sys.argv[0], scope)
292
293 # once the script is done
294 if options.interactive:
295 interact = code.InteractiveConsole(scope)
296 interact.interact("M5 Interactive Console")
297
298if __name__ == '__main__':
299 from pprint import pprint
300
301 parse_args()
302
303 print 'opts:'
304 pprint(options, indent=4)
305 print
306
307 print 'args:'
308 pprint(arguments, indent=4)