Simulation.py (10786:ee82c2c30421) | Simulation.py (11251:a15c86af004a) |
---|---|
1# Copyright (c) 2012-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 --- 445 unchanged lines hidden (view full) --- 454 455 if cpu_class: 456 switch_cpus = [cpu_class(switched_out=True, cpu_id=(i)) 457 for i in xrange(np)] 458 459 for i in xrange(np): 460 if options.fast_forward: 461 testsys.cpu[i].max_insts_any_thread = int(options.fast_forward) | 1# Copyright (c) 2012-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 --- 445 unchanged lines hidden (view full) --- 454 455 if cpu_class: 456 switch_cpus = [cpu_class(switched_out=True, cpu_id=(i)) 457 for i in xrange(np)] 458 459 for i in xrange(np): 460 if options.fast_forward: 461 testsys.cpu[i].max_insts_any_thread = int(options.fast_forward) |
462 switch_cpus[i].system = testsys | 462 switch_cpus[i].system = testsys |
463 switch_cpus[i].workload = testsys.cpu[i].workload 464 switch_cpus[i].clk_domain = testsys.cpu[i].clk_domain | 463 switch_cpus[i].workload = testsys.cpu[i].workload 464 switch_cpus[i].clk_domain = testsys.cpu[i].clk_domain |
465 switch_cpus[i].progress_interval = testsys.cpu[i].progress_interval | 465 switch_cpus[i].progress_interval = \ 466 testsys.cpu[i].progress_interval |
466 # simulation period 467 if options.maxinsts: 468 switch_cpus[i].max_insts_any_thread = options.maxinsts 469 # Add checker cpu if selected 470 if options.checker: 471 switch_cpus[i].addCheckerCpu() 472 | 467 # simulation period 468 if options.maxinsts: 469 switch_cpus[i].max_insts_any_thread = options.maxinsts 470 # Add checker cpu if selected 471 if options.checker: 472 switch_cpus[i].addCheckerCpu() 473 |
474 # If elastic tracing is enabled attach the elastic trace probe 475 # to the switch CPUs 476 if options.elastic_trace_en: 477 CpuConfig.config_etrace(cpu_class, switch_cpus, options) 478 |
|
473 testsys.switch_cpus = switch_cpus 474 switch_cpu_list = [(testsys.cpu[i], switch_cpus[i]) for i in xrange(np)] 475 476 if options.repeat_switch: 477 switch_class = getCPUClass(options.cpu_type)[0] 478 if switch_class.require_caches() and \ 479 not options.caches: 480 print "%s: Must be used with caches" % str(switch_class) --- 222 unchanged lines hidden --- | 479 testsys.switch_cpus = switch_cpus 480 switch_cpu_list = [(testsys.cpu[i], switch_cpus[i]) for i in xrange(np)] 481 482 if options.repeat_switch: 483 switch_class = getCPUClass(options.cpu_type)[0] 484 if switch_class.require_caches() and \ 485 not options.caches: 486 print "%s: Must be used with caches" % str(switch_class) --- 222 unchanged lines hidden --- |