base.cc (4998:51a0f9f59cc5) base.cc (5086:e7913ffb379d)
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;

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

423#endif // FULL_SYSTEM
424 }
425}
426
427void
428BaseSimpleCPU::postExecute()
429{
430#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;

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

423#endif // FULL_SYSTEM
424 }
425}
426
427void
428BaseSimpleCPU::postExecute()
429{
430#if FULL_SYSTEM
431 if (thread->profile) {
431 if (thread->profile && curStaticInst) {
432 bool usermode = TheISA::inUserMode(tc);
433 thread->profilePC = usermode ? 1 : thread->readPC();
432 bool usermode = TheISA::inUserMode(tc);
433 thread->profilePC = usermode ? 1 : thread->readPC();
434 StaticInstPtr si(inst, thread->readPC());
435 ProfileNode *node = thread->profile->consume(tc, si);
434 ProfileNode *node = thread->profile->consume(tc, curStaticInst);
436 if (node)
437 thread->profileNode = node;
438 }
439#endif
440
441 if (curStaticInst->isMemRef()) {
442 numMemRefs++;
443 }

--- 62 unchanged lines hidden ---
435 if (node)
436 thread->profileNode = node;
437 }
438#endif
439
440 if (curStaticInst->isMemRef()) {
441 numMemRefs++;
442 }

--- 62 unchanged lines hidden ---