base.cc (8779:2a590c51adb1) | base.cc (8780:89e0822462a1) |
---|---|
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(); | 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 (thread->profile) { | 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 | 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 traceFunctions(instAddr); | 469 if (FullSystem) 470 traceFunctions(instAddr); |
470 471 if (traceData) { 472 traceData->dump(); 473 delete traceData; 474 traceData = NULL; 475 } 476} 477 --- 55 unchanged lines hidden --- | 471 472 if (traceData) { 473 traceData->dump(); 474 delete traceData; 475 traceData = NULL; 476 } 477} 478 --- 55 unchanged lines hidden --- |