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#if FULL_SYSTEM
46#include "arch/vtophys.hh"
47#include "kern/kernel_stats.hh"
48#else
49#include "params/System.hh"
50#endif
51
52using namespace std;

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

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

--- 97 unchanged lines hidden ---