base.cc (5807:57f9f8b8e62f) base.cc (5810:606de5b3d116)
1/*
2 * Copyright (c) 2002-2005 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;

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

189 functionTracingEnabled = true;
190 } else {
191 typedef EventWrapper<BaseCPU, &BaseCPU::enableFunctionTrace> wrap;
192 Event *event = new wrap(this, true);
193 schedule(event, p->function_trace_start);
194 }
195 }
196#if FULL_SYSTEM
1/*
2 * Copyright (c) 2002-2005 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;

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

189 functionTracingEnabled = true;
190 } else {
191 typedef EventWrapper<BaseCPU, &BaseCPU::enableFunctionTrace> wrap;
192 Event *event = new wrap(this, true);
193 schedule(event, p->function_trace_start);
194 }
195 }
196#if FULL_SYSTEM
197 interrupts->setCPU(this);
198
197 profileEvent = NULL;
198 if (params()->profile)
199 profileEvent = new ProfileEvent(this, params()->profile);
200#endif
201 tracer = params()->tracer;
202}
203
204void

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

343 system->replaceThreadContext(newTC, newTC->contextId());
344
345 if (DTRACE(Context))
346 ThreadContext::compare(oldTC, newTC);
347 }
348
349#if FULL_SYSTEM
350 interrupts = oldCPU->interrupts;
199 profileEvent = NULL;
200 if (params()->profile)
201 profileEvent = new ProfileEvent(this, params()->profile);
202#endif
203 tracer = params()->tracer;
204}
205
206void

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

345 system->replaceThreadContext(newTC, newTC->contextId());
346
347 if (DTRACE(Context))
348 ThreadContext::compare(oldTC, newTC);
349 }
350
351#if FULL_SYSTEM
352 interrupts = oldCPU->interrupts;
353 interrupts->setCPU(this);
351
352 for (int i = 0; i < threadContexts.size(); ++i)
353 threadContexts[i]->profileClear();
354
355 if (profileEvent)
356 schedule(profileEvent, curTick);
357#endif
358

--- 75 unchanged lines hidden ---
354
355 for (int i = 0; i < threadContexts.size(); ++i)
356 threadContexts[i]->profileClear();
357
358 if (profileEvent)
359 schedule(profileEvent, curTick);
360#endif
361

--- 75 unchanged lines hidden ---