Deleted Added
sdiff udiff text old ( 5704:98224505352a ) new ( 5712:199d31b47f7b )
full compact
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;

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

75
76class BaseCPU : public MemObject
77{
78 protected:
79 // CPU's clock period in terms of the number of ticks of curTime.
80 Tick clock;
81 // @todo remove me after debugging with legion done
82 Tick instCnt;
83
84 public:
85// Tick currentTick;
86 inline Tick frequency() const { return Clock::Frequency / clock; }
87 inline Tick ticks(int numCycles) const { return clock * numCycles; }
88 inline Tick curCycle() const { return curTick / clock; }
89 inline Tick tickToCycles(Tick val) const { return val / clock; }
90 // @todo remove me after debugging with legion done
91 Tick instCount() { return instCnt; }
92

--- 193 unchanged lines hidden ---