cpu.cc (4392:271b73b42e34) | cpu.cc (4598:56adf2e778a8) |
---|---|
1/* 2 * Copyright (c) 2004-2006 The Regents of The University of Michigan 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; --- 190 unchanged lines hidden (view full) --- 199 numThreads(number_of_threads) 200{ 201 if (!deferRegistration) { 202 _status = Running; 203 } else { 204 _status = Idle; 205 } 206 | 1/* 2 * Copyright (c) 2004-2006 The Regents of The University of Michigan 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; --- 190 unchanged lines hidden (view full) --- 199 numThreads(number_of_threads) 200{ 201 if (!deferRegistration) { 202 _status = Running; 203 } else { 204 _status = Idle; 205 } 206 |
207 checker = NULL; 208 209 if (params->checker) { | |
210#if USE_CHECKER | 207#if USE_CHECKER |
208 if (params->checker) { |
|
211 BaseCPU *temp_checker = params->checker; 212 checker = dynamic_cast<Checker<DynInstPtr> *>(temp_checker); 213#if FULL_SYSTEM 214 checker->setSystem(params->system); 215#endif | 209 BaseCPU *temp_checker = params->checker; 210 checker = dynamic_cast<Checker<DynInstPtr> *>(temp_checker); 211#if FULL_SYSTEM 212 checker->setSystem(params->system); 213#endif |
216#else 217 panic("Checker enabled but not compiled in!"); 218#endif // USE_CHECKER | 214 } else { 215 checker = NULL; |
219 } | 216 } |
217#endif // USE_CHECKER |
|
220 221#if !FULL_SYSTEM 222 thread.resize(number_of_threads); 223 tids.resize(number_of_threads); 224#endif 225 226 // The stages also need their CPU pointer setup. However this 227 // must be done at the upper level CPU because they have pointers --- 1225 unchanged lines hidden --- | 218 219#if !FULL_SYSTEM 220 thread.resize(number_of_threads); 221 tids.resize(number_of_threads); 222#endif 223 224 // The stages also need their CPU pointer setup. However this 225 // must be done at the upper level CPU because they have pointers --- 1225 unchanged lines hidden --- |