gem5/src/arch
Andreas Hansson 0cacf7e817 Clock: Add a Cycles wrapper class and use where applicable
This patch addresses the comments and feedback on the preceding patch
that reworks the clocks and now more clearly shows where cycles
(relative cycle counts) are used to express time.

Instead of bumping the existing patch I chose to make this a separate
patch, merely to try and focus the discussion around a smaller set of
changes. The two patches will be pushed together though.

This changes done as part of this patch are mostly following directly
from the introduction of the wrapper class, and change enough code to
make things compile and run again. There are definitely more places
where int/uint/Tick is still used to represent cycles, and it will
take some time to chase them all down. Similarly, a lot of parameters
should be changed from Param.Tick and Param.Unsigned to
Param.Cycles.

In addition, the use of curTick is questionable as there should not be
an absolute cycle. Potential solutions can be built on top of this
patch. There is a similar situation in the o3 CPU where
lastRunningCycle is currently counting in Cycles, and is still an
absolute time. More discussion to be had in other words.

An additional change that would be appropriate in the future is to
perform a similar wrapping of Tick and probably also introduce a
Ticks class along with suitable operators for all these classes.
2012-08-28 14:30:33 -04:00
..
alpha Clock: Add a Cycles wrapper class and use where applicable 2012-08-28 14:30:33 -04:00
arm Clock: Add a Cycles wrapper class and use where applicable 2012-08-28 14:30:33 -04:00
generic ISA,CPU: Generalize and split out the components of the decode cache. 2012-05-26 13:45:12 -07:00
mips Clock: Add a Cycles wrapper class and use where applicable 2012-08-28 14:30:33 -04:00
noisa cpu: add separate stats for insts/ops both globally and per cpu model 2012-02-12 16:07:39 -06:00
power Clock: Add a Cycles wrapper class and use where applicable 2012-08-28 14:30:33 -04:00
sparc Clock: Add a Cycles wrapper class and use where applicable 2012-08-28 14:30:33 -04:00
x86 Clock: Add a Cycles wrapper class and use where applicable 2012-08-28 14:30:33 -04:00
isa_parser.py O3: Clean up the O3 structures and try to pack them a bit better. 2012-06-05 01:23:09 -04:00
micro_asm.py scons: add slicc and ply to sys.path and PYTHONPATH so everyone has access 2009-09-22 15:24:16 -07:00
micro_asm_test.py Add a second section to make sure the ROM is extended properly. 2007-05-31 22:21:21 +00:00
SConscript CPU: Merge the predecoder and decoder. 2012-05-26 13:44:46 -07:00