49a50
> #include "sim/full_system.hh"
199a201
> if (FullSystem) {
201,203c203,205
< profileEvent = NULL;
< if (params()->profile)
< profileEvent = new ProfileEvent(this, params()->profile);
---
> profileEvent = NULL;
> if (params()->profile)
> profileEvent = new ProfileEvent(this, params()->profile);
204a207
> }
228,231c231,234
< #if FULL_SYSTEM
< if (!params()->defer_registration && profileEvent)
< schedule(profileEvent, curTick());
< #endif
---
> if (FullSystem) {
> if (!params()->defer_registration && profileEvent)
> schedule(profileEvent, curTick());
> }
271,273d273
<
< #if FULL_SYSTEM
< #endif
315,317c315,317
< #if !FULL_SYSTEM
< tc->getProcessPtr()->assignThreadContext(tc->contextId());
< #endif
---
>
> if (!FullSystem)
> tc->getProcessPtr()->assignThreadContext(tc->contextId());
336,337d335
< // panic("This CPU doesn't support sampling!");
< #if FULL_SYSTEM
340d337
< #endif
394,396c391,393
< #if FULL_SYSTEM
< for (ThreadID i = 0; i < size; ++i)
< threadContexts[i]->profileClear();
---
> if (FullSystem) {
> for (ThreadID i = 0; i < size; ++i)
> threadContexts[i]->profileClear();
398,400c395,397
< if (profileEvent)
< schedule(profileEvent, curTick());
< #endif
---
> if (profileEvent)
> schedule(profileEvent, curTick());
> }
419d415
< #if FULL_SYSTEM
436,437d431
< #endif // FULL_SYSTEM
<