system.cc (5713:993c7952b930) system.cc (5714:76abee886def)
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;

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

53using namespace std;
54using namespace TheISA;
55
56vector<System *> System::systemList;
57
58int System::numSystemsRunning = 0;
59
60System::System(Params *p)
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;

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

53using namespace std;
54using namespace TheISA;
55
56vector<System *> System::systemList;
57
58int System::numSystemsRunning = 0;
59
60System::System(Params *p)
61 : SimObject(p), physmem(p->physmem), numcpus(0),
61 : SimObject(p), physmem(p->physmem), _numContexts(0),
62#if FULL_SYSTEM
63 init_param(p->init_param),
64 functionalPort(p->name + "-fport"),
65 virtPort(p->name + "-vport"),
66#else
67 page_ptr(0),
68 next_PID(0),
69#endif

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

176
177 if (threadContexts.size() <= id)
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;
62#if FULL_SYSTEM
63 init_param(p->init_param),
64 functionalPort(p->name + "-fport"),
65 virtPort(p->name + "-vport"),
66#else
67 page_ptr(0),
68 next_PID(0),
69#endif

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

176
177 if (threadContexts.size() <= id)
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++;
184 _numContexts++;
185
186 int port = getRemoteGDBPort();
187 if (rgdb_enable && port) {
188 RemoteGDB *rgdb = new RemoteGDB(this, tc);
189 GDBListener *gdbl = new GDBListener(rgdb, port + id);
190 gdbl->listen();
191 /**
192 * Uncommenting this line waits for a remote debugger to

--- 100 unchanged lines hidden ---
185
186 int port = getRemoteGDBPort();
187 if (rgdb_enable && port) {
188 RemoteGDB *rgdb = new RemoteGDB(this, tc);
189 GDBListener *gdbl = new GDBListener(rgdb, port + id);
190 gdbl->listen();
191 /**
192 * Uncommenting this line waits for a remote debugger to

--- 100 unchanged lines hidden ---