1/* 2 * Copyright (c) 2015-2016 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 --- 77 unchanged lines hidden (view full) --- 86 // No need to compute stats if in the same tick, update state though. This 87 // can happen in cases like a) during start of the simulation multiple 88 // state changes happens in init/startup phase, b) one takes a decision to 89 // migrate state but decides to reverts back to the original state in the 90 // same tick if other conditions are not met elsewhere. 91 // Any state change related stats would have been recorded on previous call 92 // to the pwrState() function. 93 if (prvEvalTick == curTick() && curTick() != 0) { |
94 warn("ClockedObject %s: More than one power state change request "\ 95 "encountered within the same simulation tick %d", 96 name(), prvEvalTick); |
97 _currPwrState = p; 98 return; 99 } 100 101 // Record stats for previous state. 102 computeStats(); 103 104 _currPwrState = p; --- 87 unchanged lines hidden --- |