fs_bigLITTLE.py (12564:2778478ca882) fs_bigLITTLE.py (13357:110926e15f1f)
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

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

177 help="Last level of caches (e.g. 3 for L3)")
178 parser.add_argument("--big-cpu-clock", type=str, default="2GHz",
179 help="Big CPU clock frequency")
180 parser.add_argument("--little-cpu-clock", type=str, default="1GHz",
181 help="Little CPU clock frequency")
182 parser.add_argument("--sim-quantum", type=str, default="1ms",
183 help="Simulation quantum for parallel simulation. " \
184 "Default: %(default)s")
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

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

177 help="Last level of caches (e.g. 3 for L3)")
178 parser.add_argument("--big-cpu-clock", type=str, default="2GHz",
179 help="Big CPU clock frequency")
180 parser.add_argument("--little-cpu-clock", type=str, default="1GHz",
181 help="Little CPU clock frequency")
182 parser.add_argument("--sim-quantum", type=str, default="1ms",
183 help="Simulation quantum for parallel simulation. " \
184 "Default: %(default)s")
185 parser.add_argument("-P", "--param", action="append", default=[],
186 help="Set a SimObject parameter relative to the root node. "
187 "An extended Python multi range slicing syntax can be used "
188 "for arrays. For example: "
189 "'system.cpu[0,1,3:8:2].max_insts_all_threads = 42' "
190 "sets max_insts_all_threads for cpus 0, 1, 3, 5 and 7 "
191 "Direct parameters of the root object are not accessible, "
192 "only parameters of its children.")
185 return parser
186
187def build(options):
188 m5.ticks.fixGlobalFrequency()
189
190 kernel_cmd = [
191 "earlyprintk=pl011,0x1c090000",
192 "console=ttyAMA0",

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

325
326
327def main():
328 parser = argparse.ArgumentParser(
329 description="Generic ARM big.LITTLE configuration")
330 addOptions(parser)
331 options = parser.parse_args()
332 root = build(options)
193 return parser
194
195def build(options):
196 m5.ticks.fixGlobalFrequency()
197
198 kernel_cmd = [
199 "earlyprintk=pl011,0x1c090000",
200 "console=ttyAMA0",

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

333
334
335def main():
336 parser = argparse.ArgumentParser(
337 description="Generic ARM big.LITTLE configuration")
338 addOptions(parser)
339 options = parser.parse_args()
340 root = build(options)
341 root.apply_config(options.param)
333 instantiate(options)
334 run()
335
336
337if __name__ == "__m5_main__":
338 main()
342 instantiate(options)
343 run()
344
345
346if __name__ == "__m5_main__":
347 main()