Simulation.py (6174:7e5c7412ac89) | Simulation.py (6641:59f08019c39a) |
---|---|
1# Copyright (c) 2006-2008 The Regents of The University of Michigan 2# All rights reserved. 3# 4# Redistribution and use in source and binary forms, with or without 5# modification, are permitted provided that the following conditions are 6# met: redistributions of source code must retain the above copyright 7# notice, this list of conditions and the following disclaimer; 8# redistributions in binary form must reproduce the above copyright --- 81 unchanged lines hidden (view full) --- 90 np = options.num_cpus 91 max_checkpoints = options.max_checkpoints 92 switch_cpus = None 93 94 if options.prog_intvl: 95 for i in xrange(np): 96 testsys.cpu[i].progress_interval = options.prog_intvl 97 | 1# Copyright (c) 2006-2008 The Regents of The University of Michigan 2# All rights reserved. 3# 4# Redistribution and use in source and binary forms, with or without 5# modification, are permitted provided that the following conditions are 6# met: redistributions of source code must retain the above copyright 7# notice, this list of conditions and the following disclaimer; 8# redistributions in binary form must reproduce the above copyright --- 81 unchanged lines hidden (view full) --- 90 np = options.num_cpus 91 max_checkpoints = options.max_checkpoints 92 switch_cpus = None 93 94 if options.prog_intvl: 95 for i in xrange(np): 96 testsys.cpu[i].progress_interval = options.prog_intvl 97 |
98 if options.maxinsts: 99 for i in xrange(np): 100 testsys.cpu[i].max_insts_any_thread = options.maxinsts 101 |
|
98 if cpu_class: 99 switch_cpus = [cpu_class(defer_registration=True, cpu_id=(np+i)) 100 for i in xrange(np)] 101 102 for i in xrange(np): 103 if options.fast_forward: 104 testsys.cpu[i].max_insts_any_thread = int(options.fast_forward) 105 switch_cpus[i].system = testsys --- 264 unchanged lines hidden --- | 102 if cpu_class: 103 switch_cpus = [cpu_class(defer_registration=True, cpu_id=(np+i)) 104 for i in xrange(np)] 105 106 for i in xrange(np): 107 if options.fast_forward: 108 testsys.cpu[i].max_insts_any_thread = int(options.fast_forward) 109 switch_cpus[i].system = testsys --- 264 unchanged lines hidden --- |