system.cc (12443:0479f5e6f8bd) system.cc (12449:2260f4a68210)
1/*
2 * Copyright (c) 2011-2014,2017 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

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

256 "Cannot have two CPUs with the same id (%d)\n", id);
257
258 threadContexts[id] = tc;
259 _numContexts++;
260
261#if THE_ISA != NULL_ISA
262 int port = getRemoteGDBPort();
263 if (port) {
1/*
2 * Copyright (c) 2011-2014,2017 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

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

256 "Cannot have two CPUs with the same id (%d)\n", id);
257
258 threadContexts[id] = tc;
259 _numContexts++;
260
261#if THE_ISA != NULL_ISA
262 int port = getRemoteGDBPort();
263 if (port) {
264 RemoteGDB *rgdb = new RemoteGDB(this, tc);
265 GDBListener *gdbl = new GDBListener(rgdb, port + id);
266 gdbl->listen();
264 RemoteGDB *rgdb = new RemoteGDB(this, tc, port + id);
265 rgdb->listen();
267
268 BaseCPU *cpu = tc->getCpuPtr();
269 if (cpu->waitForRemoteGDB()) {
270 inform("%s: Waiting for a remote GDB connection on port %d.\n",
266
267 BaseCPU *cpu = tc->getCpuPtr();
268 if (cpu->waitForRemoteGDB()) {
269 inform("%s: Waiting for a remote GDB connection on port %d.\n",
271 cpu->name(), gdbl->getPort());
270 cpu->name(), rgdb->port());
272
271
273 gdbl->accept();
272 rgdb->connect();
274 }
275 if (remoteGDB.size() <= id) {
276 remoteGDB.resize(id + 1);
277 }
278
279 remoteGDB[id] = rgdb;
280 }
281#endif

--- 254 unchanged lines hidden ---
273 }
274 if (remoteGDB.size() <= id) {
275 remoteGDB.resize(id + 1);
276 }
277
278 remoteGDB[id] = rgdb;
279 }
280#endif

--- 254 unchanged lines hidden ---