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; --- 70 unchanged lines hidden (view full) --- 79 // @todo remove me after debugging with legion done 80 Tick instCnt; 81 82 public: 83// Tick currentTick; 84 inline Tick frequency() const { return Clock::Frequency / clock; } 85 inline Tick cycles(int numCycles) const { return clock * numCycles; } 86 inline Tick curCycle() const { return curTick / clock; } |
87 inline Tick tickToCycles(Tick val) const { return val / clock; } |
88 // @todo remove me after debugging with legion done 89 Tick instCount() { return instCnt; } 90 91 /** The next cycle the CPU should be scheduled, given a cache 92 * access or quiesce event returning on this cycle. This function 93 * may return curTick if the CPU should run on the current cycle. 94 */ 95 Tick nextCycle(); --- 207 unchanged lines hidden --- |