base.hh (7764:03efcdc3421f) base.hh (7823:dac01f14f20f)
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;

--- 86 unchanged lines hidden (view full) ---

95
96 public:
97 /** Reads this CPU's ID. */
98 int cpuId() { return _cpuId; }
99
100// Tick currentTick;
101 inline Tick frequency() const { return SimClock::Frequency / clock; }
102 inline Tick ticks(int numCycles) const { return clock * numCycles; }
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;

--- 86 unchanged lines hidden (view full) ---

95
96 public:
97 /** Reads this CPU's ID. */
98 int cpuId() { return _cpuId; }
99
100// Tick currentTick;
101 inline Tick frequency() const { return SimClock::Frequency / clock; }
102 inline Tick ticks(int numCycles) const { return clock * numCycles; }
103 inline Tick curCycle() const { return curTick / clock; }
103 inline Tick curCycle() const { return curTick() / clock; }
104 inline Tick tickToCycles(Tick val) const { return val / clock; }
105 // @todo remove me after debugging with legion done
106 Tick instCount() { return instCnt; }
107
108 /** The next cycle the CPU should be scheduled, given a cache
109 * access or quiesce event returning on this cycle. This function
104 inline Tick tickToCycles(Tick val) const { return val / clock; }
105 // @todo remove me after debugging with legion done
106 Tick instCount() { return instCnt; }
107
108 /** The next cycle the CPU should be scheduled, given a cache
109 * access or quiesce event returning on this cycle. This function
110 * may return curTick if the CPU should run on the current cycle.
110 * may return curTick() if the CPU should run on the current cycle.
111 */
112 Tick nextCycle();
113
114 /** The next cycle the CPU should be scheduled, given a cache
115 * access or quiesce event returning on the given Tick. This
111 */
112 Tick nextCycle();
113
114 /** The next cycle the CPU should be scheduled, given a cache
115 * access or quiesce event returning on the given Tick. This
116 * function may return curTick if the CPU should run on the
116 * function may return curTick() if the CPU should run on the
117 * current cycle.
118 * @param begin_tick The tick that the event is completing on.
119 */
120 Tick nextCycle(Tick begin_tick);
121
122 TheISA::MicrocodeRom microcodeRom;
123
124#if FULL_SYSTEM

--- 196 unchanged lines hidden ---
117 * current cycle.
118 * @param begin_tick The tick that the event is completing on.
119 */
120 Tick nextCycle(Tick begin_tick);
121
122 TheISA::MicrocodeRom microcodeRom;
123
124#if FULL_SYSTEM

--- 196 unchanged lines hidden ---