Several tweaks to make binning work in any simulation
authorNathan Binkert <binkertn@umich.edu>
Thu, 17 Feb 2005 07:48:56 +0000 (02:48 -0500)
committerNathan Binkert <binkertn@umich.edu>
Thu, 17 Feb 2005 07:48:56 +0000 (02:48 -0500)
commita24016c731a69c47e694458f7f564ef1630d34c1
tree8c03f1fb82dc9c5c0c7a100d00d4e42b48b151a1
parent2e4bb0fc0ca51d08b64f364305661b883e429170
Several tweaks to make binning work in any simulation
configuration so that we can always have binning on.

base/statistics.cc:
    If we're binning, and there is no bin active at the time
    we check all stats stuff, create a bin.
base/statistics.hh:
    FS_MEASURE doesn't exist anymore
base/stats/text.cc:
    don't print out bin names if there is only one bin
sim/process.cc:
    don't zero stats.  It happens automatically.
    Don't activate the context at the time it is registered,
    instead activate the first context in a startup callback.
sim/process.hh:
    Add startup callback to initialize the first exec context

--HG--
extra : convert_revision : bcb23cdb184b0abf7cecd79902f8a59b50f71fe4
base/statistics.cc
base/statistics.hh
base/stats/text.cc
sim/process.cc
sim/process.hh