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; --- 393 unchanged lines hidden (view full) --- 402#endif // FULL_SYSTEM 403} 404 405void 406BaseSimpleCPU::postExecute() 407{ 408#if FULL_SYSTEM 409 if (thread->profile) { |
410 bool usermode = TheISA::inUserMode(tc); |
411 thread->profilePC = usermode ? 1 : thread->readPC(); 412 ProfileNode *node = thread->profile->consume(tc, inst); 413 if (node) 414 thread->profileNode = node; 415 } 416#endif 417 418 if (curStaticInst->isMemRef()) { --- 61 unchanged lines hidden --- |