read_config.py (12411:394fa4ecc018) read_config.py (12564:2778478ca882)
1# Copyright (c) 2014 ARM Limited
2# All rights reserved.
3#
4# The license below extends only to copyright in the software and shall
5# not be construed as granting a license to any other intellectual
6# property including but not limited to intellectual property relating
7# to a hardware implementation of the functionality of the software
8# licensed hereunder. You may use the software subject to the license

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

40#
41# This may be useful as a way of allowing variant run scripts (say,
42# with more complicated than usual checkpointing/stats dumping/
43# simulation control) to read pre-described systems from config scripts
44# with better system-description capabilities. Splitting scripts
45# between system construction and run control may allow better
46# debugging.
47
1# Copyright (c) 2014 ARM Limited
2# All rights reserved.
3#
4# The license below extends only to copyright in the software and shall
5# not be construed as granting a license to any other intellectual
6# property including but not limited to intellectual property relating
7# to a hardware implementation of the functionality of the software
8# licensed hereunder. You may use the software subject to the license

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

40#
41# This may be useful as a way of allowing variant run scripts (say,
42# with more complicated than usual checkpointing/stats dumping/
43# simulation control) to read pre-described systems from config scripts
44# with better system-description capabilities. Splitting scripts
45# between system construction and run control may allow better
46# debugging.
47
48from __future__ import print_function
49
48import argparse
49import ConfigParser
50import inspect
51import json
52import re
53import sys
54
55import m5

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

535
536mgr = ConfigManager(config)
537
538mgr.find_all_objects()
539
540m5.instantiate(args.checkpoint_dir)
541
542exit_event = m5.simulate()
50import argparse
51import ConfigParser
52import inspect
53import json
54import re
55import sys
56
57import m5

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

537
538mgr = ConfigManager(config)
539
540mgr.find_all_objects()
541
542m5.instantiate(args.checkpoint_dir)
543
544exit_event = m5.simulate()
543print 'Exiting @ tick %i because %s' % (
544 m5.curTick(), exit_event.getCause())
545print('Exiting @ tick %i because %s' % (m5.curTick(), exit_event.getCause()))