clocked_object.cc (11529:f17c012ecfa3) | clocked_object.cc (12089:ab37c4e77c49) |
---|---|
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 --- 76 unchanged lines hidden (view full) --- 85 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. | 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 --- 76 unchanged lines hidden (view full) --- 85 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()) { | 93 if (prvEvalTick == curTick() && curTick() != 0) { |
94 warn("ClockedObject: More than one power state change request "\ 95 "encountered within the same simulation tick"); 96 _currPwrState = p; 97 return; 98 } 99 100 // Record stats for previous state. 101 computeStats(); --- 89 unchanged lines hidden --- | 94 warn("ClockedObject: More than one power state change request "\ 95 "encountered within the same simulation tick"); 96 _currPwrState = p; 97 return; 98 } 99 100 // Record stats for previous state. 101 computeStats(); --- 89 unchanged lines hidden --- |