base.cc (4240:cde9d7751cce) base.cc (4254:66a131ab3ff9)
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;

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

413
414void
415BaseSimpleCPU::postExecute()
416{
417#if FULL_SYSTEM
418 if (thread->profile) {
419 bool usermode = TheISA::inUserMode(tc);
420 thread->profilePC = usermode ? 1 : thread->readPC();
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;

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

413
414void
415BaseSimpleCPU::postExecute()
416{
417#if FULL_SYSTEM
418 if (thread->profile) {
419 bool usermode = TheISA::inUserMode(tc);
420 thread->profilePC = usermode ? 1 : thread->readPC();
421 ProfileNode *node = thread->profile->consume(tc, inst);
421 StaticInstPtr si(inst);
422 ProfileNode *node = thread->profile->consume(tc, si);
422 if (node)
423 thread->profileNode = node;
424 }
425#endif
426
427 if (curStaticInst->isMemRef()) {
428 numMemRefs++;
429 }

--- 60 unchanged lines hidden ---
423 if (node)
424 thread->profileNode = node;
425 }
426#endif
427
428 if (curStaticInst->isMemRef()) {
429 numMemRefs++;
430 }

--- 60 unchanged lines hidden ---