Deleted Added
sdiff udiff text old ( 12476:a891137813ec ) new ( 12564:2778478ca882 )
full compact
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

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

35#
36# Authors: Gabor Dozsa
37# Andreas Sandberg
38
39# This is an example configuration script for full system simulation of
40# a generic ARM bigLITTLE system.
41
42
43import argparse
44import os
45import sys
46import m5
47import m5.util
48from m5.objects import *
49
50m5.util.addToPath("../../")

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

306
307
308def run(checkpoint_dir=m5.options.outdir):
309 # start simulation (and drop checkpoints when requested)
310 while True:
311 event = m5.simulate()
312 exit_msg = event.getCause()
313 if exit_msg == "checkpoint":
314 print "Dropping checkpoint at tick %d" % m5.curTick()
315 cpt_dir = os.path.join(checkpoint_dir, "cpt.%d" % m5.curTick())
316 m5.checkpoint(cpt_dir)
317 print "Checkpoint done."
318 else:
319 print exit_msg, " @ ", m5.curTick()
320 break
321
322 sys.exit(event.getCode())
323
324
325def main():
326 parser = argparse.ArgumentParser(
327 description="Generic ARM big.LITTLE configuration")
328 addOptions(parser)
329 options = parser.parse_args()
330 root = build(options)
331 instantiate(options)
332 run()
333
334
335if __name__ == "__m5_main__":
336 main()