gem5/base
Nathan Binkert 667cbb6690 Implement more m5 pseduo opcodes:
resetstats
dumpstats
dumpresetstats
m5checkpoint

Lots of cleanup of serialization and stats dumping/resetting to
work with these new instructions

arch/alpha/isa_desc:
    Implement more m5 pseduo opcodes:
    resetstats
    dumpstats
    dumpresetstats
    m5checkpoint

    All of these functions take two optional parameters, the first is a delay,
    and the second is a period.  The delay tells the simulator to wait the
    specified number of nanoseconds before triggering the event, the period
    tells the simulator to repeat the event with a specified frequency
base/statistics.cc:
base/statistics.hh:
    regReset RegResetCallback
dev/disk_image.cc:
    serializeFilename -> CheckpointFile()
sim/debug.cc:
    Move this debugging statement to sim_stats.cc
sim/eventq.cc:
    Don't AutoDelete an event if it is scheduled since the process()
    function could potentially schedule the event again.
sim/main.cc:
    DumpStatsEvent is now Statistics::SetupEvent(Dump, curTick)
sim/serialize.cc:
    Change the serialize event so that it's possible to cause the
    event to repeat.  Also make the priority such that the event
    happens just before the simulator would exit if both events
    were scheduled for the same cycle.

    get rid of the serializeFilename variable and provide a CheckpointFile()
    function.  This function takes a basename that is set in the
    configuration, and appends the current cycle to the name so that
    multiple checkpoints can be dumped from the same simulation.

    Also, don't exit the simulation when a checkpoint file is dumped.
sim/serialize.hh:
    serializeFilename -> CheckpointFile()
    SetupCheckpoint function to tell the simulator to prepare
    to checkpoint at a certain time with a certain period
sim/sim_events.cc:
    DumpStatsEvent stuff gets move to sim_stats.(cc|hh)
    The context stuff gets moved into the already existing
    stats context in stat_context.cc
sim/sim_events.hh:
    DumpStatsEvent stuff gets move to sim_stats.(cc|hh)
sim/universe.cc:
    Provide some simple functions for converting times into
    ticks.  These use floating point math to get as close as
    possible to the real values.  Multipliers are set up ahead
    of time

--HG--
extra : convert_revision : d06ef26a9237529a1e5060cb1ac2dcc04d4ec252
2003-11-02 18:02:58 -05:00
..
compression Make include paths explicit and update makefile accordingly. 2003-10-10 11:09:00 -07:00
loader Make include paths explicit and update makefile accordingly. 2003-10-10 11:09:00 -07:00
bitfield.hh Import changeset 2003-10-07 10:41:54 -04:00
callback.hh Clean up callbacks 2003-10-20 21:38:32 -04:00
circlebuf.cc Make include paths explicit and update makefile accordingly. 2003-10-10 11:09:00 -07:00
circlebuf.hh Import changeset 2003-10-07 10:41:54 -04:00
cprintf.cc Make include paths explicit and update makefile accordingly. 2003-10-10 11:09:00 -07:00
cprintf.hh Make include paths explicit and update makefile accordingly. 2003-10-10 11:09:00 -07:00
cprintf_formats.hh Import changeset 2003-10-07 10:41:54 -04:00
date.cc Import changeset 2003-10-07 10:41:54 -04:00
dbl_list.hh Import changeset 2003-10-07 10:41:54 -04:00
endian.hh Import changeset 2003-10-07 10:41:54 -04:00
fast_alloc.cc Make include paths explicit and update makefile accordingly. 2003-10-10 11:09:00 -07:00
fast_alloc.hh Import changeset 2003-10-07 10:41:54 -04:00
fifo_buffer.cc Make include paths explicit and update makefile accordingly. 2003-10-10 11:09:00 -07:00
fifo_buffer.hh Make include paths explicit and update makefile accordingly. 2003-10-10 11:09:00 -07:00
hashmap.hh Make include paths explicit and update makefile accordingly. 2003-10-10 11:09:00 -07:00
hostinfo.cc Merge ehallnor@zizzer:/bk/m5 2003-10-14 13:29:20 -04:00
hostinfo.hh Make include paths explicit and update makefile accordingly. 2003-10-10 11:09:00 -07:00
hybrid_pred.cc Make include paths explicit and update makefile accordingly. 2003-10-10 11:09:00 -07:00
hybrid_pred.hh Make include paths explicit and update makefile accordingly. 2003-10-10 11:09:00 -07:00
inet.cc Make include paths explicit and update makefile accordingly. 2003-10-10 11:09:00 -07:00
inet.hh Make include paths explicit and update makefile accordingly. 2003-10-10 11:09:00 -07:00
inifile.cc Add an append= keyword that works in a somewhat similar way to 2003-10-26 22:42:45 -05:00
inifile.hh Clear up doxygen warnings and serialize ScsiCtrl. We probably shouldn't decfine functions using type defs ala "RegFile" instead of "AlphaISA::RegFile". 2003-10-29 16:25:08 -05:00
intmath.cc Global whitespace fixes 2003-10-15 16:39:37 -04:00
intmath.hh Need to cast to avoid infinite recursion. 2003-10-15 17:36:10 -04:00
kgdb.h Import changeset 2003-10-07 10:41:54 -04:00
misc.cc Make include paths explicit and update makefile accordingly. 2003-10-10 11:09:00 -07:00
misc.hh Make include paths explicit and update makefile accordingly. 2003-10-10 11:09:00 -07:00
mod_num.hh Import changeset 2003-10-07 10:41:54 -04:00
pollevent.cc Add support for serialization 2003-10-30 15:15:27 -05:00
pollevent.hh Add support for serialization 2003-10-30 15:15:27 -05:00
predictor.hh Get rid of lots of obsolete mentions of stat_sdb_t. 2003-10-29 22:22:03 -08:00
random.cc Make include paths explicit and update makefile accordingly. 2003-10-10 11:09:00 -07:00
random.hh Make include paths explicit and update makefile accordingly. 2003-10-10 11:09:00 -07:00
range.hh Make include paths explicit and update makefile accordingly. 2003-10-10 11:09:00 -07:00
refcnt.hh Import changeset 2003-10-07 10:41:54 -04:00
remote_gdb.cc Try to get the correct license on various files 2003-10-13 02:00:47 -04:00
remote_gdb.hh Initial support for CPU switching. New SamplingCPU object encompasses a set 2003-10-23 19:07:52 -07:00
res_list.hh Global whitespace fixes 2003-10-15 16:39:37 -04:00
sat_counter.cc Make include paths explicit and update makefile accordingly. 2003-10-10 11:09:00 -07:00
sat_counter.hh Get rid of lots of obsolete mentions of stat_sdb_t. 2003-10-29 22:22:03 -08:00
sched_list.hh Make include paths explicit and update makefile accordingly. 2003-10-10 11:09:00 -07:00
socket.cc Make include paths explicit and update makefile accordingly. 2003-10-10 11:09:00 -07:00
socket.hh Import changeset 2003-10-07 10:41:54 -04:00
statistics.cc Implement more m5 pseduo opcodes: 2003-11-02 18:02:58 -05:00
statistics.hh Implement more m5 pseduo opcodes: 2003-11-02 18:02:58 -05:00
str.cc Make the to_number function work better. 2003-10-31 18:27:17 -05:00
str.hh Import changeset 2003-10-07 10:41:54 -04:00
trace.cc Make include paths explicit and update makefile accordingly. 2003-10-10 11:09:00 -07:00
trace.hh Global whitespace fixes 2003-10-15 16:39:37 -04:00