system.cc (5222:bb733a878f85) system.cc (5512:755fcaf7a4cf)
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"
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"
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
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
186 if (rgdb_enable) {
187 int port = getRemoteGDBPort();
188 if (rgdb_enable && port) {
187 RemoteGDB *rgdb = new RemoteGDB(this, tc);
189 RemoteGDB *rgdb = new RemoteGDB(this, tc);
188 GDBListener *gdbl = new GDBListener(rgdb, 7000 + id);
190 GDBListener *gdbl = new GDBListener(rgdb, port + 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 ---
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 ---