gem5/cpu
Nathan Binkert a4d7bb113a Make a new stat type of Value which is a scalar stat that
proxies for a real C/C++ scalar value or scalar functor.
This replaces the scalar() and functor() terms that were
previously used in formulas.  This helps when dumping
statistics because the formulas are not supposed to change.

cpu/base_cpu.cc:
    Add a number of cycles stat to the cpu object that tracks the
    number of cycles that the cpu has executed.  This starts to pave
    the way for cpu cycles being different from event ticks.
cpu/base_cpu.hh:
    provide a functor for calculating all simulated instructions
    of all CPUs and a virtual function for determining that number.
    To deal with the change from functor() to Value::functor()
cpu/simple_cpu/simple_cpu.cc:
    simTicks -> numCycles
    numInsts is now a real Scalar stat, not a Formula
cpu/simple_cpu/simple_cpu.hh:
    numInsts is now a real Scalar stat, not a Formula
    count all instructions
sim/stat_control.cc:
    simInsts, simTicks, hostMemory, and hostSeconds are no
    longer Statistics::Formula but rather Statistics::Value
    add new stat for tick frequency
sim/stats.hh:
    don't need everything to be extern.
test/Makefile:
    Make stuff work a tad bit better
test/stattest.cc:
    test out Statistics::Value

--HG--
extra : convert_revision : c812e8baa2b17c08abf3a68ed1e1125dc6f2cfb4
2004-05-12 15:49:01 -04:00
..
full_cpu Get rid of LVQ-port function unit... only used for redundant 2004-02-02 18:58:23 -08:00
memtest Major stats package cleanup 2004-05-04 17:01:00 -04:00
simple_cpu Make a new stat type of Value which is a scalar stat that 2004-05-12 15:49:01 -04:00
base_cpu.cc Make a new stat type of Value which is a scalar stat that 2004-05-12 15:49:01 -04:00
base_cpu.hh Make a new stat type of Value which is a scalar stat that 2004-05-12 15:49:01 -04:00
exec_context.cc More {Itb,Dtb} -> {ITB,DTB} renames (forgot to test build KERNEL). 2004-04-03 13:46:10 -08:00
exec_context.hh Do a better job of factoring out CPU model in ISA description. 2004-05-10 16:10:47 -07:00
exetrace.cc Minor cleanup of trace/output stuff (leftover from EINTR bug fix). 2003-12-19 08:04:40 -08:00
exetrace.hh More conversions of ref-counted parameters to references: 2004-02-02 15:45:22 -08:00
inst_seq.hh File moves for the reorg. Tree is in broken state until I commit the makefile and 2003-10-10 09:57:26 -07:00
intr_control.cc General fixes for Sampling CPU in full system mode, and serialization of sampling CPU 2003-11-02 19:38:22 -05:00
intr_control.hh General fixes for Sampling CPU in full system mode, and serialization of sampling CPU 2003-11-02 19:38:22 -05:00
pc_event.cc Remove all of the Tru64 specific stuff from the base System object 2003-10-14 12:19:59 -04:00
pc_event.hh Move to non-architecture specific MemReq 2003-10-23 16:40:08 -04:00
static_inst.cc Make include paths explicit and update makefile accordingly. 2003-10-10 11:09:00 -07:00
static_inst.hh Do a better job of factoring out CPU model in ISA description. 2004-05-10 16:10:47 -07:00