diff options
author | Gabe Black <gblack@eecs.umich.edu> | 2006-11-06 19:52:32 -0500 |
---|---|---|
committer | Gabe Black <gblack@eecs.umich.edu> | 2006-11-06 19:52:32 -0500 |
commit | 02abca6b9e4e21d8d89eb83eabab3be8ac10c9d8 (patch) | |
tree | 6c923510076654885f31d2328c4853c5974699a8 /src/cpu/base.hh | |
parent | dd14c86ec8afb3a98d55a58eaafd8b85dd651bd6 (diff) | |
parent | bf3223d7ce681db8ca59dac49c6b44b672012e5d (diff) | |
download | gem5-02abca6b9e4e21d8d89eb83eabab3be8ac10c9d8.tar.xz |
Merge zizzer.eecs.umich.edu:/bk/newmem/
into zeep.eecs.umich.edu:/home/gblack/m5/newmemmemops
src/SConscript:
SCCS merged
--HG--
extra : convert_revision : f130c8a2d33f58d857e5d5a02bb9698c1bceb23b
Diffstat (limited to 'src/cpu/base.hh')
-rw-r--r-- | src/cpu/base.hh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/cpu/base.hh b/src/cpu/base.hh index 79d22c992..9257778ef 100644 --- a/src/cpu/base.hh +++ b/src/cpu/base.hh @@ -77,6 +77,20 @@ class BaseCPU : public MemObject inline Tick cycles(int numCycles) const { return clock * numCycles; } inline Tick curCycle() const { return curTick / clock; } + /** The next cycle the CPU should be scheduled, given a cache + * access or quiesce event returning on this cycle. This function + * may return curTick if the CPU should run on the current cycle. + */ + Tick nextCycle(); + + /** The next cycle the CPU should be scheduled, given a cache + * access or quiesce event returning on the given Tick. This + * function may return curTick if the CPU should run on the + * current cycle. + * @param begin_tick The tick that the event is completing on. + */ + Tick nextCycle(Tick begin_tick); + #if FULL_SYSTEM protected: // uint64_t interrupts[TheISA::NumInterruptLevels]; |