system.cc (8799:dac1e33e07b0) system.cc (8806:669e93d79ed9)
1/*
2 * Copyright (c) 2011-2012 ARM Limited
3 * All rights reserved
4 *
5 * The license below extends only to copyright in the software and shall
6 * not be construed as granting a license to any other intellectual
7 * property including but not limited to intellectual property relating
8 * to a hardware implementation of the functionality of the software

--- 204 unchanged lines hidden (view full) ---

213 ++running;
214 }
215 return running;
216}
217
218void
219System::initState()
220{
1/*
2 * Copyright (c) 2011-2012 ARM Limited
3 * All rights reserved
4 *
5 * The license below extends only to copyright in the software and shall
6 * not be construed as granting a license to any other intellectual
7 * property including but not limited to intellectual property relating
8 * to a hardware implementation of the functionality of the software

--- 204 unchanged lines hidden (view full) ---

213 ++running;
214 }
215 return running;
216}
217
218void
219System::initState()
220{
221 int i;
221 if (FullSystem) {
222 if (FullSystem) {
222 int i;
223 for (i = 0; i < threadContexts.size(); i++)
224 TheISA::startupCPU(threadContexts[i], i);
225 // Moved from the constructor to here since it relies on the
226 // address map being resolved in the interconnect
227 /**
228 * Load the kernel code into memory
229 */
230 if (params()->kernel == "") {

--- 35 unchanged lines hidden (view full) ---

266 }
267 }
268
269 // increment the number of running systms
270 numSystemsRunning++;
271
272 activeCpus.clear();
273
223 for (i = 0; i < threadContexts.size(); i++)
224 TheISA::startupCPU(threadContexts[i], i);
225 // Moved from the constructor to here since it relies on the
226 // address map being resolved in the interconnect
227 /**
228 * Load the kernel code into memory
229 */
230 if (params()->kernel == "") {

--- 35 unchanged lines hidden (view full) ---

266 }
267 }
268
269 // increment the number of running systms
270 numSystemsRunning++;
271
272 activeCpus.clear();
273
274 if (FullSystem) {
275 int i;
276 for (i = 0; i < threadContexts.size(); i++)
277 TheISA::startupCPU(threadContexts[i], i);
278 }
274 if (!FullSystem)
275 return;
276
277 for (i = 0; i < threadContexts.size(); i++)
278 TheISA::startupCPU(threadContexts[i], i);
279}
280
281void
282System::replaceThreadContext(ThreadContext *tc, int context_id)
283{
284 if (context_id >= threadContexts.size()) {
285 panic("replaceThreadContext: bad id, %d >= %d\n",
286 context_id, threadContexts.size());

--- 122 unchanged lines hidden ---
279}
280
281void
282System::replaceThreadContext(ThreadContext *tc, int context_id)
283{
284 if (context_id >= threadContexts.size()) {
285 panic("replaceThreadContext: bad id, %d >= %d\n",
286 context_id, threadContexts.size());

--- 122 unchanged lines hidden ---