fs.py (11251:a15c86af004a) fs.py (11291:9d2364203316)
1# Copyright (c) 2010-2013 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

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

335 mem=options.mem_size, os_type=options.os_type)]
336
337np = options.num_cpus
338
339test_sys = build_test_system(np)
340if len(bm) == 2:
341 drive_sys = build_drive_system(np)
342 root = makeDualRoot(True, test_sys, drive_sys, options.etherdump)
1# Copyright (c) 2010-2013 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

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

335 mem=options.mem_size, os_type=options.os_type)]
336
337np = options.num_cpus
338
339test_sys = build_test_system(np)
340if len(bm) == 2:
341 drive_sys = build_drive_system(np)
342 root = makeDualRoot(True, test_sys, drive_sys, options.etherdump)
343elif len(bm) == 1 and options.dist:
344 # This system is part of a dist-gem5 simulation
345 root = makeDistRoot(test_sys,
346 options.dist_rank,
347 options.dist_size,
348 options.dist_server_name,
349 options.dist_server_port,
350 options.dist_sync_repeat,
351 options.dist_sync_start,
352 options.ethernet_linkspeed,
353 options.ethernet_linkdelay,
354 options.etherdump);
343elif len(bm) == 1:
344 root = Root(full_system=True, system=test_sys)
345else:
346 print "Error I don't know how to create more than 2 systems."
347 sys.exit(1)
348
349if options.timesync:
350 root.time_sync_enable = True
351
352if options.frame_capture:
353 VncServer.frame_capture = True
354
355Simulation.setWorkCountOptions(test_sys, options)
356Simulation.run(options, root, test_sys, FutureClass)
355elif len(bm) == 1:
356 root = Root(full_system=True, system=test_sys)
357else:
358 print "Error I don't know how to create more than 2 systems."
359 sys.exit(1)
360
361if options.timesync:
362 root.time_sync_enable = True
363
364if options.frame_capture:
365 VncServer.frame_capture = True
366
367Simulation.setWorkCountOptions(test_sys, options)
368Simulation.run(options, root, test_sys, FutureClass)