1# Copyright (c) 2006-2008 The Regents of The University of Michigan 2# Copyright (c) 2010 Advanced Micro Devices, Inc. 3# All rights reserved. 4# 5# Redistribution and use in source and binary forms, with or without 6# modification, are permitted provided that the following conditions are 7# met: redistributions of source code must retain the above copyright 8# notice, this list of conditions and the following disclaimer; --- 115 unchanged lines hidden (view full) --- 124 if options.fast_forward: 125 testsys.cpu[i].max_insts_any_thread = int(options.fast_forward) 126 switch_cpus[i].system = testsys 127 switch_cpus[i].workload = testsys.cpu[i].workload 128 switch_cpus[i].clock = testsys.cpu[0].clock 129 # simulation period 130 if options.maxinsts: 131 switch_cpus[i].max_insts_any_thread = options.maxinsts |
132 # Add checker cpu if selected 133 if options.checker: 134 switch_cpus[i].addCheckerCpu() |
135 136 testsys.switch_cpus = switch_cpus 137 switch_cpu_list = [(testsys.cpu[i], switch_cpus[i]) for i in xrange(np)] 138 139 if options.standard_switch: 140 if not options.caches: 141 # O3 CPU must have a cache to work. 142 print "O3 CPU must be used with caches" --- 31 unchanged lines hidden (view full) --- 174 # warmup period 175 if options.warmup_insts: 176 switch_cpus[i].max_insts_any_thread = options.warmup_insts 177 178 # simulation period 179 if options.maxinsts: 180 switch_cpus_1[i].max_insts_any_thread = options.maxinsts 181 |
182 # attach the checker cpu if selected 183 if options.checker: 184 switch_cpus[i].addCheckerCpu() 185 switch_cpus_1[i].addCheckerCpu() 186 |
187 testsys.switch_cpus = switch_cpus 188 testsys.switch_cpus_1 = switch_cpus_1 189 switch_cpu_list = [(testsys.cpu[i], switch_cpus[i]) for i in xrange(np)] 190 switch_cpu_list1 = [(switch_cpus[i], switch_cpus_1[i]) for i in xrange(np)] 191 192 # set the checkpoint in the cpu before m5.instantiate is called 193 if options.take_checkpoints != None and \ 194 (options.simpoint or options.at_instruction): --- 198 unchanged lines hidden --- |