Simulation.py (8919:c1366a30d5eb) | Simulation.py (9129:b57966a6c512) |
---|---|
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; --- 126 unchanged lines hidden (view full) --- 135 switch_cpus = [cpu_class(defer_registration=True, cpu_id=(np+i)) 136 for i in xrange(np)] 137 138 for i in xrange(np): 139 if options.fast_forward: 140 testsys.cpu[i].max_insts_any_thread = int(options.fast_forward) 141 switch_cpus[i].system = testsys 142 switch_cpus[i].workload = testsys.cpu[i].workload | 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; --- 126 unchanged lines hidden (view full) --- 135 switch_cpus = [cpu_class(defer_registration=True, cpu_id=(np+i)) 136 for i in xrange(np)] 137 138 for i in xrange(np): 139 if options.fast_forward: 140 testsys.cpu[i].max_insts_any_thread = int(options.fast_forward) 141 switch_cpus[i].system = testsys 142 switch_cpus[i].workload = testsys.cpu[i].workload |
143 switch_cpus[i].clock = testsys.cpu[0].clock | 143 switch_cpus[i].clock = testsys.cpu[i].clock |
144 # simulation period 145 if options.maxinsts: 146 switch_cpus[i].max_insts_any_thread = options.maxinsts 147 # Add checker cpu if selected 148 if options.checker: 149 switch_cpus[i].addCheckerCpu() 150 151 testsys.switch_cpus = switch_cpus --- 10 unchanged lines hidden (view full) --- 162 switch_cpus_1 = [DerivO3CPU(defer_registration=True, cpu_id=(2*np+i)) 163 for i in xrange(np)] 164 165 for i in xrange(np): 166 switch_cpus[i].system = testsys 167 switch_cpus_1[i].system = testsys 168 switch_cpus[i].workload = testsys.cpu[i].workload 169 switch_cpus_1[i].workload = testsys.cpu[i].workload | 144 # simulation period 145 if options.maxinsts: 146 switch_cpus[i].max_insts_any_thread = options.maxinsts 147 # Add checker cpu if selected 148 if options.checker: 149 switch_cpus[i].addCheckerCpu() 150 151 testsys.switch_cpus = switch_cpus --- 10 unchanged lines hidden (view full) --- 162 switch_cpus_1 = [DerivO3CPU(defer_registration=True, cpu_id=(2*np+i)) 163 for i in xrange(np)] 164 165 for i in xrange(np): 166 switch_cpus[i].system = testsys 167 switch_cpus_1[i].system = testsys 168 switch_cpus[i].workload = testsys.cpu[i].workload 169 switch_cpus_1[i].workload = testsys.cpu[i].workload |
170 switch_cpus[i].clock = testsys.cpu[0].clock 171 switch_cpus_1[i].clock = testsys.cpu[0].clock | 170 switch_cpus[i].clock = testsys.cpu[i].clock 171 switch_cpus_1[i].clock = testsys.cpu[i].clock |
172 173 # if restoring, make atomic cpu simulate only a few instructions 174 if options.checkpoint_restore != None: 175 testsys.cpu[i].max_insts_any_thread = 1 176 # Fast forward to specified location if we are not restoring 177 elif options.fast_forward: 178 testsys.cpu[i].max_insts_any_thread = int(options.fast_forward) 179 # Fast forward to a simpoint (warning: time consuming) --- 228 unchanged lines hidden --- | 172 173 # if restoring, make atomic cpu simulate only a few instructions 174 if options.checkpoint_restore != None: 175 testsys.cpu[i].max_insts_any_thread = 1 176 # Fast forward to specified location if we are not restoring 177 elif options.fast_forward: 178 testsys.cpu[i].max_insts_any_thread = int(options.fast_forward) 179 # Fast forward to a simpoint (warning: time consuming) --- 228 unchanged lines hidden --- |