base.cc (3565:6ad587fb7dfd) | base.cc (3577:605c370622b1) |
---|---|
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) { | 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 = 411 (thread->readMiscReg(AlphaISA::IPR_DTB_CM) & 0x18) != 0; | 410 bool usermode = TheISA::inUserMode(tc); |
412 thread->profilePC = usermode ? 1 : thread->readPC(); 413 ProfileNode *node = thread->profile->consume(tc, inst); 414 if (node) 415 thread->profileNode = node; 416 } 417#endif 418 419 if (curStaticInst->isMemRef()) { --- 61 unchanged lines hidden --- | 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 --- |