1/* 2 * Copyright (c) 2010 ARM Limited 3 * All rights reserved 4 * 5 * The license below extends only to copyright in the software and shall 6 * not be construed as granting a license to any other intellectual 7 * property including but not limited to intellectual property relating 8 * to a hardware implementation of the functionality of the software --- 398 unchanged lines hidden (view full) --- 407 408void 409BaseSimpleCPU::postExecute() 410{ 411 assert(curStaticInst); 412 413 TheISA::PCState pc = tc->pcState(); 414 Addr instAddr = pc.instAddr(); |
415 if (FullSystem && thread->profile) { |
416 bool usermode = TheISA::inUserMode(tc); 417 thread->profilePC = usermode ? 1 : instAddr; 418 ProfileNode *node = thread->profile->consume(tc, curStaticInst); 419 if (node) 420 thread->profileNode = node; 421 } 422 423 if (curStaticInst->isMemRef()) { --- 37 unchanged lines hidden (view full) --- 461 numLoadInsts++; 462 } 463 464 if (curStaticInst->isStore()){ 465 numStoreInsts++; 466 } 467 /* End power model statistics */ 468 |
469 if (FullSystem) 470 traceFunctions(instAddr); |
471 472 if (traceData) { 473 traceData->dump(); 474 delete traceData; 475 traceData = NULL; 476 } 477} 478 --- 55 unchanged lines hidden --- |