Simulation.py (13774:a1be2a0c55f2) | Simulation.py (13958:1945df12e5b0) |
---|---|
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 --- 469 unchanged lines hidden (view full) --- 478 if options.maxinsts: 479 switch_cpus[i].max_insts_any_thread = options.maxinsts 480 # Add checker cpu if selected 481 if options.checker: 482 switch_cpus[i].addCheckerCpu() 483 if options.bp_type: 484 bpClass = BPConfig.get(options.bp_type) 485 switch_cpus[i].branchPred = bpClass() | 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 --- 469 unchanged lines hidden (view full) --- 478 if options.maxinsts: 479 switch_cpus[i].max_insts_any_thread = options.maxinsts 480 # Add checker cpu if selected 481 if options.checker: 482 switch_cpus[i].addCheckerCpu() 483 if options.bp_type: 484 bpClass = BPConfig.get(options.bp_type) 485 switch_cpus[i].branchPred = bpClass() |
486 if options.indirect_bp_type: 487 IndirectBPClass = \ 488 BPConfig.get_indirect(options.indirect_bp_type) 489 switch_cpus[i].branchPred.branchPred.indirectBranchPred = \ 490 IndirectBPClass() |
|
486 487 # If elastic tracing is enabled attach the elastic trace probe 488 # to the switch CPUs 489 if options.elastic_trace_en: 490 CpuConfig.config_etrace(cpu_class, switch_cpus, options) 491 492 testsys.switch_cpus = switch_cpus 493 switch_cpu_list = [(testsys.cpu[i], switch_cpus[i]) for i in range(np)] --- 237 unchanged lines hidden --- | 491 492 # If elastic tracing is enabled attach the elastic trace probe 493 # to the switch CPUs 494 if options.elastic_trace_en: 495 CpuConfig.config_etrace(cpu_class, switch_cpus, options) 496 497 testsys.switch_cpus = switch_cpus 498 switch_cpu_list = [(testsys.cpu[i], switch_cpus[i]) for i in range(np)] --- 237 unchanged lines hidden --- |