dist_bigLITTLE.py (11845:afd6aaee268e) dist_bigLITTLE.py (11935:28290ed77b03)
1# Copyright (c) 2016 ARM Limited
1# Copyright (c) 2016-2017 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
9# terms below provided that you ensure that this notice is replicated

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

127
128 if options.is_switch:
129 root = Root(full_system = True,
130 system = sw.build_switch(options))
131 else:
132 root = bL.build(options)
133 addEthernet(root.system, options)
134
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
9# terms below provided that you ensure that this notice is replicated

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

127
128 if options.is_switch:
129 root = Root(full_system = True,
130 system = sw.build_switch(options))
131 else:
132 root = bL.build(options)
133 addEthernet(root.system, options)
134
135 if options.restore_from:
136 checkpoint_path = os.path.join(options.checkpoint_dir,
137 options.restore_from)
138 else:
139 checkpoint_path = None
140 bL.instantiate(checkpoint_path)
135 bL.instantiate(options, checkpoint_dir=options.checkpoint_dir)
141 bL.run(options.checkpoint_dir)
142
143
144if __name__ == "__m5_main__":
145 main()
136 bL.run(options.checkpoint_dir)
137
138
139if __name__ == "__m5_main__":
140 main()