base.hh (6816:6f8efbef2300) base.hh (7064:586b0e3a12b3)
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;

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

93 // therefore no setCpuId() method is provided
94 int _cpuId;
95
96 public:
97 /** Reads this CPU's ID. */
98 int cpuId() { return _cpuId; }
99
100// Tick currentTick;
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;

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

93 // therefore no setCpuId() method is provided
94 int _cpuId;
95
96 public:
97 /** Reads this CPU's ID. */
98 int cpuId() { return _cpuId; }
99
100// Tick currentTick;
101 inline Tick frequency() const { return Clock::Frequency / clock; }
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; }
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

--- 208 unchanged lines hidden ---
102 inline Tick ticks(int numCycles) const { return clock * numCycles; }
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

--- 208 unchanged lines hidden ---