Deleted Added
sdiff udiff text old ( 5222:bb733a878f85 ) new ( 5512:755fcaf7a4cf )
full compact
1/*
2 * Copyright (c) 2003-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;

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

37#include "base/loader/object_file.hh"
38#include "base/loader/symtab.hh"
39#include "base/trace.hh"
40#include "cpu/thread_context.hh"
41#include "mem/mem_object.hh"
42#include "mem/physical.hh"
43#include "sim/byteswap.hh"
44#include "sim/system.hh"
45#include "sim/debug.hh"
46#if FULL_SYSTEM
47#include "arch/vtophys.hh"
48#include "kern/kernel_stats.hh"
49#else
50#include "params/System.hh"
51#endif
52
53using namespace std;

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

179 threadContexts.resize(id + 1);
180
181 if (threadContexts[id])
182 panic("Cannot have two CPUs with the same id (%d)\n", id);
183
184 threadContexts[id] = tc;
185 numcpus++;
186
187 int port = getRemoteGDBPort();
188 if (rgdb_enable && port) {
189 RemoteGDB *rgdb = new RemoteGDB(this, tc);
190 GDBListener *gdbl = new GDBListener(rgdb, port + id);
191 gdbl->listen();
192 /**
193 * Uncommenting this line waits for a remote debugger to
194 * connect to the simulator before continuing.
195 */
196 if (rgdb_wait != -1 && rgdb_wait == id)
197 gdbl->accept();
198

--- 97 unchanged lines hidden ---