system.cc (10913:38dbdeea7f1f) system.cc (11005:e7f403b6b76f)
1/*
2 * Copyright (c) 2011-2014 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

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

204
205/**
206 * Setting rgdb_wait to a positive integer waits for a remote debugger to
207 * connect to that context ID before continuing. This should really
208 be a parameter on the CPU object or something...
209 */
210int rgdb_wait = -1;
211
1/*
2 * Copyright (c) 2011-2014 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

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

204
205/**
206 * Setting rgdb_wait to a positive integer waits for a remote debugger to
207 * connect to that context ID before continuing. This should really
208 be a parameter on the CPU object or something...
209 */
210int rgdb_wait = -1;
211
212int
213System::registerThreadContext(ThreadContext *tc, int assigned)
212ContextID
213System::registerThreadContext(ThreadContext *tc, ContextID assigned)
214{
215 int id;
214{
215 int id;
216 if (assigned == -1) {
216 if (assigned == InvalidContextID) {
217 for (id = 0; id < threadContexts.size(); id++) {
218 if (!threadContexts[id])
219 break;
220 }
221
222 if (threadContexts.size() <= id)
223 threadContexts.resize(id + 1);
224 } else {

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

300 DPRINTF(Loader, "Kernel end = %#x\n", kernelEnd);
301 DPRINTF(Loader, "Kernel entry = %#x\n", kernelEntry);
302 DPRINTF(Loader, "Kernel loaded...\n");
303 }
304 }
305}
306
307void
217 for (id = 0; id < threadContexts.size(); id++) {
218 if (!threadContexts[id])
219 break;
220 }
221
222 if (threadContexts.size() <= id)
223 threadContexts.resize(id + 1);
224 } else {

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

300 DPRINTF(Loader, "Kernel end = %#x\n", kernelEnd);
301 DPRINTF(Loader, "Kernel entry = %#x\n", kernelEntry);
302 DPRINTF(Loader, "Kernel loaded...\n");
303 }
304 }
305}
306
307void
308System::replaceThreadContext(ThreadContext *tc, int context_id)
308System::replaceThreadContext(ThreadContext *tc, ContextID context_id)
309{
310 if (context_id >= threadContexts.size()) {
311 panic("replaceThreadContext: bad id, %d >= %d\n",
312 context_id, threadContexts.size());
313 }
314
315 threadContexts[context_id] = tc;
316 if (context_id < remoteGDB.size())

--- 168 unchanged lines hidden ---
309{
310 if (context_id >= threadContexts.size()) {
311 panic("replaceThreadContext: bad id, %d >= %d\n",
312 context_id, threadContexts.size());
313 }
314
315 threadContexts[context_id] = tc;
316 if (context_id < remoteGDB.size())

--- 168 unchanged lines hidden ---