#
14266:711b485a4bf8 |
|
06-Sep-2019 |
Andreas Sandberg <andreas.sandberg@arm.com> |
stats: Fix incorrect name conflict panic with grouped stats
Info::setName() performs a sanity check to ensure that the same stat name isn't used twice. This doesn't work for new-style stats with a parent group since the name is only unique within the group. Disable the check for new-style stats since these usually use names generated from member variable names.
Change-Id: I590abe6040407c6a4fe582c0782a418165ff5588 Signed-off-by: Andreas Sandberg <andreas.sandberg@arm.com> Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/20760 Maintainer: Jason Lowe-Power <jason@lowepower.com> Reviewed-by: Jason Lowe-Power <jason@lowepower.com> Tested-by: kokoro <noreply+kokoro@google.com>
|
#
14205:197360deaa20 |
|
26-Jun-2019 |
Andreas Sandberg <andreas.sandberg@arm.com> |
stats: Add support for hierarchical stats
This change makes the stat system aware of the hierarchical nature of stats. The aim is to achieve the following goals:
* Make the SimObject hierarchy explicit in the stat system (i.e., get rid of name() + ".foo"). This makes stat naming less fragile and makes it possible to implement hierarchical formats like XML/HDF5/JSON in a clean way.
* Make it more convenient to split stats into a separate struct/class that can be bound to a SimObject. This makes the namespace cleaner and makes stat accesses a bit more obvious.
* Make it possible to build groups of stats in C++ that can be used in subcomponents in a SimObject (similar to what we do for checkpoint sections). This makes it easier to structure large components.
* Enable partial stat dumps. Some of our internal users have been asking for this since a full stat dump can be large.
* Enable better stat access from Python.
This changeset implements solves the first three points by introducing a class (Stats::Group) that owns statistics belonging to the same object. SimObjects inherit from Stats::Group since they typically have statistics.
New-style statistics need to be associated with a parent group at instantiation time. Instantiation typically sets the name and the description, other parameters need to be set by overriding Group::regStats() just like with legacy stats. Simple objects with scalar stats can typically avoid implementing regStats() altogether since the stat name and description are both specified in the constructor.
For convenience reasons, statistics groups can be merged into other groups. This means that a SimObject can create a stat struct that inherits from Stats::Group and merge it into the parent group (SimObject). This can make the code cleaner since statistics tracking gets grouped into a single object.
Stat visitors have a new API to expose the group structure. The Output::beginGroup(name) method is called at the beginning of a group and the Output::endGroup() method is called when all stats, and sub-groups, have been visited. Flat formats (e.g., the text format) typically need to maintain a stack to track the full path to a stat.
Legacy, flat, statistics are still supported after applying this change. These stats don't belong to any group and stat visitors will not see a Output::beginGroup(name) call before their corresponding Output::visit() methods are called.
Change-Id: I9025d61dfadeabcc8ecf30813ab2060def455648 Signed-off-by: Andreas Sandberg <andreas.sandberg@arm.com> Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/19368 Tested-by: kokoro <noreply+kokoro@google.com> Reviewed-by: Jason Lowe-Power <jason@lowepower.com> Reviewed-by: Daniel Carvalho <odanrc@yahoo.com.br>
|
#
14175:8cf7610e44f8 |
|
06-Aug-2019 |
Ciro Santilli <ciro.santilli@arm.com> |
base: assert that stats bucket size is greater than 0
Change-Id: I9a2264e9ee74acea1f09f01ea8f5004567ba1ea8 Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/20049 Reviewed-by: Jason Lowe-Power <jason@lowepower.com> Reviewed-by: Anthony Gutierrez <anthony.gutierrez@amd.com> Maintainer: Anthony Gutierrez <anthony.gutierrez@amd.com> Tested-by: kokoro <noreply+kokoro@google.com>
|
#
13981:577196ddd040 |
|
02-May-2019 |
Gabe Black <gabeblack@google.com> |
arch, base, cpu, dev, mem, sim: Remove #if 0-ed out code.
This code will be preserved through version control, but otherwise creates clutter and will rot in place since it's never compiled.
Change-Id: Id265f6deac445116843956ea5cf1210d8127274e Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/18608 Reviewed-by: Jason Lowe-Power <jason@lowepower.com> Reviewed-by: Brandon Potter <Brandon.Potter@amd.com> Maintainer: Jason Lowe-Power <jason@lowepower.com> Tested-by: kokoro <noreply+kokoro@google.com>
|
#
13475:5189e2334f1a |
|
28-Nov-2018 |
Nikos Nikoleris <nikos.nikoleris@arm.com> |
base, sim: Add missing destructors
Derived classes with virtual functions need to define a virtual destructor or a protected destructor otherwise calling the base class destructor has undefined behavior. This change adds a virtual distructor in the base class.
Change-Id: I1c855aa56dff6585ff99b9147bdb4eb9729a0a53 Signed-off-by: Nikos Nikoleris <nikos.nikoleris@arm.com> Reviewed-on: https://gem5-review.googlesource.com/c/14815 Reviewed-by: Giacomo Travaglini <giacomo.travaglini@arm.com> Reviewed-by: Jason Lowe-Power <jason@lowepower.com> Maintainer: Jason Lowe-Power <jason@lowepower.com>
|
#
13457:b8204512963e |
|
28-Nov-2018 |
Nikos Nikoleris <nikos.nikoleris@arm.com> |
base: Add missing overrides in statistics header
Change-Id: Id5ee2a970a3dceee1b7e24ce3b452b7fece87875 Signed-off-by: Nikos Nikoleris <nikos.nikoleris@arm.com> Reviewed-by: Giacomo Travaglini <giacomo.travaglini@arm.com> Reviewed-on: https://gem5-review.googlesource.com/c/14619 Reviewed-by: Jason Lowe-Power <jason@lowepower.com> Maintainer: Jason Lowe-Power <jason@lowepower.com>
|
#
12517:77e8688fc670 |
|
10-Feb-2017 |
Rekai Gonzalez-Alberquilla <rekai.gonzalezalberquilla@arm.com> |
sim: Make Stats truly non-copy-constructible
The stats are silently non-copy constructible. Therefore, when someone copy-constructs any object with stats, asserts happen when registering the stats, as they were not constructed in the intended way.
This patch solves that by explicitly deleting the copy constructor, trading an obscure run-time assert for a compile-time somehow more meaningful error meassage.
This triggers some compilation errors as the FaultStats in the fault definitions of ARM and SPARC use brace-enclosed initialisations in which one of the elements derives from DataWrap, which is not copy-constructible anymore. To fix that, this patch also adds a constructor for the FaultVals in both ISAs.
Change-Id: I340e203b9386609b32c66e3b8918a015afe415a4 Reviewed-by: Curtis Dunham <curtis.dunham@arm.com> Reviewed-by: Sascha Bischoff <sascha.bischoff@arm.com> Reviewed-on: https://gem5-review.googlesource.com/8082 Reviewed-by: Jason Lowe-Power <jason@lowepower.com> Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com> Reviewed-by: Gabe Black <gabeblack@google.com> Maintainer: Andreas Sandberg <andreas.sandberg@arm.com>
|
#
11904:870e25baf014 |
|
24-Feb-2017 |
Pierre-Yves Péneau <pierre-yves.peneau@lirmm.fr> |
misc: add missing copyright/author information in previous commit
See a06a46f and a854373.
Change-Id: Id66427db22b7d7764c218b9cd78d95db929f4127 Signed-off-by: Pierre-Yves Péneau <pierre-yves.peneau@lirmm.fr> Reviewed-on: https://gem5-review.googlesource.com/2224 Reviewed-by: Jason Lowe-Power <jason@lowepower.com> Maintainer: Jason Lowe-Power <jason@lowepower.com>
|
#
11848:f438fcbab00e |
|
15-Feb-2017 |
Pierre-Yves Péneau <pierre-yves.peneau@lirmm.fr> |
mem, stats: fix typos in CommMonitor and Stats
Signed-off-by: Pierre-Yves Péneau <pierre-yves.peneau@lirmm.fr> Reviewed-by: Tony Gutierrez <anthony.gutierrez@amd.com> Reviewed-by: Jason Lowe-Power <jason@lowepower.com> Signed-off-by: Jason Lowe-Power <jason@lowepower.com>
Reviewed at http://reviews.gem5.org/r/3802/
|
#
11565:9b9116df5e88 |
|
21-Jul-2016 |
David Guillen Fandos <david.guillen@arm.com> |
base: Add total() to Vector2D stat
This patch adds a total() function to the Vector2D stat type. Similar to other stats such as Scalar or Vector it is useful to be able to read the total for a given stat.
|
#
10491:452c860fd0ee |
|
20-Oct-2014 |
Andreas Hansson <andreas.hansson@arm.com> |
base: Fix for stats node on gcc < 4.6.3
This patch adds an explicit function to get the underlying node as gcc 4.6.1 and 4.6.2 have issues otherwise.
|
#
10471:0433264984ce |
|
16-Oct-2014 |
Andreas Hansson <andreas.hansson@arm.com> |
base: Use shared_ptr for stat Node
This patch transitions the stat Node and its derived classes from the ad-hoc RefCountingPtr to the c++11 shared_ptr. There are no changes in behaviour, and the code modifications are mainly replacing "new" with "make_shared".
|
#
10453:d0365cc3d05f |
|
16-Oct-2014 |
Andrew Bardsley <Andrew.Bardsley@arm.com> |
config: Add a --without-python option to build process
Add the ability to build libgem5 without embedded Python or the ability to configure with Python.
This is a prelude to a patch to allow config.ini files to be loaded into libgem5 using only C++ which would make embedding gem5 within other simulation systems easier.
This adds a few registration interfaces to things which cross between Python and C++. Namely: stats dumping and SimObject resolving
|
#
10422:148b96b7bc77 |
|
01-Oct-2014 |
Andreas Hansson <andreas.hansson@arm.com> |
misc: Fix issues identified by static analysis
Another bunch of issues addressed.
|
#
10386:c81407818741 |
|
20-Sep-2014 |
Andreas Hansson <andreas.hansson@arm.com> |
base: Clean up redundant string functions and use C++11
This patch does a bit of housekeeping on the string helper functions and relies on the C++11 standard library where possible. It also does away with our custom string hash as an implementation is already part of the standard library.
|
#
10373:342348537a53 |
|
19-Sep-2014 |
Andreas Hansson <andreas.hansson@arm.com> |
misc: Remove assertions ensuring unsigned values >= 0
|
#
10360:919c02740209 |
|
09-Sep-2014 |
Andreas Hansson <andreas.hansson@arm.com> |
misc: Fix a number of unitialised variables and members
Static analysis unearther a bunch of uninitialised variables and members, and this patch addresses the problem. In all cases these omissions seem benign in the end, but at least fixing them means less false positives next time round.
|
#
10191:3ab094e72dad |
|
09-May-2014 |
Stephan Diestelhorst <stephan.diestelhorst@arm.com> |
stats: Method stats source
This source for stats binds an object and a method / function from the object to a stats object. This allows pulling out stats from object methods without needing to go through a global, or static shim.
Syntax is somewhat unpleasant, but the templates and method pointer type specification were quite tricky. Interface is very clean though; and similar to .functor
|
#
10011:69bd1011dcf3 |
|
10-Jan-2014 |
Nilay Vaish <nilay@cs.wisc.edu> |
stats: add function for adding two histograms This patch adds a function to the HistStor class for adding two histograms. This functionality is required for Ruby. It also adds support for printing histograms in a single line.
|
#
9865:cc5797147e1c |
|
09-Sep-2013 |
Nilay Vaish <nilay@cs.wisc.edu> |
stats: add operator= for DataWrapVec class
gcc/g++ 4.4.7 complained about the operator= being undefined. This changeset adds the operator.
|
#
9863:9483739f83ee |
|
06-Sep-2013 |
Nilay Vaish <nilay@cs.wisc.edu> |
ruby: network: convert to gem5 style stats
|
#
9857:8301f882a916 |
|
06-Sep-2013 |
Nilay Vaish <nilay@cs.wisc.edu> |
stats: adds a Formula operator for division
|
#
9557:8666e81607a6 |
|
19-Feb-2013 |
Andreas Hansson <andreas.hansson@arm.com> |
scons: Fix warnings issued by clang 3.2svn (XCode 4.6)
This patch fixes the warnings that clang3.2svn emit due to the "-Wall" flag. There is one case of an uninitialised value in the ARM neon ISA description, and then a whole range of unused private fields that are pruned.
|
#
9554:406fbcf60223 |
|
19-Feb-2013 |
Andreas Hansson <andreas.hansson@arm.com> |
scons: Add warning for missing declarations
This patch enables warnings for missing declarations. To avoid issues with SWIG-generated code, the warning is only applied to non-SWIG code.
|
#
9550:e0e2c8f83d08 |
|
19-Feb-2013 |
Andreas Hansson <andreas.hansson@arm.com> |
scons: Fix up numerous warnings about name shadowing
This patch address the most important name shadowing warnings (as produced when using gcc/clang with -Wshadow). There are many locations where constructor parameters and function parameters shadow local variables, but these are left unchanged.
|
#
9054:4c0f7e5ae72a |
|
05-Jun-2012 |
William Wang <William.Wang@arm.com> |
stats: when applying an operation to two vectors sum the components first.
Previously writing X/Y in a formula would result in: x[0]/y[0] + x[1]/y[1] In reality you want: (x[0] +x[1])/(y[0] + y[1])
|
#
9042:648b62f95015 |
|
05-Jun-2012 |
Mitchell Hayenga <Mitchell.Hayenga@ARM.com> |
stats: Provide a mechanism to get a callback when stats are dumped.
This mechanism is useful for dumping output that is correlated with stats dumping, but isn't tracked by the gem5 statistics.
|
#
9002:2972c71fccd5 |
|
10-May-2012 |
Ali Saidi <Ali.Saidi@ARM.com> |
stats: fix bug in assert for 2d vector
|
#
8986:4cc63185478b |
|
10-May-2012 |
Ali Saidi <Ali.Saidi@ARM.com> |
stats: track if the stats have been enabled and prevent requesting master id
Track the point in the initialization where statistics have been registered. After this point registering new masterIds can no longer work as some SimObjects may have sized stats vectors based on the previous value. If someone tries to register a masterId after this point the simulator executes fatal().
|
#
8666:97d873b8b13e |
|
09-Jan-2012 |
Prakash Ramrakhyani <Prakash.Ramrakhyani@arm.com> |
sim: Enable sampling of run-time for code-sections marked using pseudo insts.
This patch adds a mechanism to collect run time samples for specific portions of a benchmark, using work_begin and work_end pseudo instructions.It also enhances the histogram stat to report geometric mean.
|
#
8514:57c96df312a1 |
|
19-Aug-2011 |
Thomas Grass <Thomas.Grass@ARM.com> |
Stats: Add a sparse histogram stat object.
|
#
8296:be7f03723412 |
|
12-May-2011 |
Nathan Binkert <nate@binkert.org> |
stats: move code that loops over all stats into python
|
#
8243:63e849f0f341 |
|
20-Apr-2011 |
Brad Danofsky <bradley.danofsky@amd.com> |
stats: add user settable separator string for arrayed stats
Default is '::', so no visible change unless it is overridden
|
#
8230:845c8eb5ac49 |
|
15-Apr-2011 |
Nathan Binkert <nate@binkert.org> |
includes: fix up code after sorting
|
#
8229:78bf55f23338 |
|
15-Apr-2011 |
Nathan Binkert <nate@binkert.org> |
includes: sort all includes
|
#
7831:c1e158414648 |
|
10-Jan-2011 |
Nathan Binkert <nate@binkert.org> |
stats: Add a histogram statistic type
|
#
7829:9069448c4fbc |
|
10-Jan-2011 |
Nathan Binkert <nate@binkert.org> |
stats: fix the distribution stat
|
#
7823:dac01f14f20f |
|
08-Jan-2011 |
Steve Reinhardt <steve.reinhardt@amd.com> |
Replace curTick global variable with accessor functions. This step makes it easy to replace the accessor functions (which still access a global variable) with ones that access per-thread curTick values.
|
#
7811:a8fc35183c10 |
|
03-Jan-2011 |
Steve Reinhardt <steve.reinhardt@amd.com> |
Make commenting on close namespace brackets consistent.
Ran all the source files through 'perl -pi' with this script:
s|\s*(};?\s*)?/\*\s*(end\s*)?namespace\s*(\S+)\s*\*/(\s*})?|} // namespace $3|; s|\s*};?\s*//\s*(end\s*)?namespace\s*(\S+)\s*|} // namespace $2\n|; s|\s*};?\s*//\s*(\S+)\s*namespace\s*|} // namespace $1\n|;
Also did a little manual editing on some of the arch/*/isa_traits.hh files and src/SConscript.
|
#
7574:f5742240963f |
|
23-Aug-2010 |
Ali Saidi <Ali.Saidi@ARM.com> |
stats: Fix off-by-one error in distributions.
bkt size isn't evenly divisible by max-min and it would round down, it's possible to sample a distribution and have no place to put the sample. When this case occured the simulator would assert.
|
#
7505:7772a8bf76ee |
|
21-Jul-2010 |
Nathan Binkert <nate@binkert.org> |
stats: unify the two stats distribution type better
|
#
7504:ad631c296c9b |
|
21-Jul-2010 |
Nathan Binkert <nate@binkert.org> |
stats: cleanup a few small problems in stats
|
#
7462:0c61c3cf7639 |
|
15-Jun-2010 |
Nathan Binkert <nate@binkert.org> |
stats: rename print to display so it work in python
|
#
7444:669c1d2df752 |
|
03-Jun-2010 |
Lisa Hsu <Lisa.Hsu@amd.com> |
Stats: fix dist stat and enable VectorDistStat
|
#
6977:039202aafc0d |
|
23-Feb-2010 |
Lisa Hsu <Lisa.Hsu@amd.com> |
stats: this makes some fixes to AverageStat and AverageVector. Also, make Formulas work on AverageVector. First, Stat::Average (and thus Stats::AverageVector) was broken when coming out of a checkpoint and on resets, this fixes that. Formulas also didn't work with AverageVector, but added support for that.
|
#
6227:a17798f2a52c |
|
05-Jun-2009 |
Nathan Binkert <nate@binkert.org> |
types: clean up types, especially signed vs unsigned
|
#
6216:2f4020838149 |
|
17-May-2009 |
Nathan Binkert <nate@binkert.org> |
includes: sort includes again
|
#
6214:1ec0ec8933ae |
|
17-May-2009 |
Nathan Binkert <nate@binkert.org> |
types: Move stuff for global types into src/base/types.hh
|
#
6213:2f07b47d95a1 |
|
13-May-2009 |
Nathan Binkert <nate@binkert.org> |
stats: tidy up the Distribution type a little bit
|
#
6212:64c3b989238c |
|
13-May-2009 |
Nathan Binkert <nate@binkert.org> |
stats: fancy is a bad name
|
#
6130:0fb959250892 |
|
22-Apr-2009 |
Nathan Binkert <nate@binkert.org> |
stats: Move flags into info.hh and use base/flags.hh to manage the flags
|
#
6129:05405c5b8c16 |
|
22-Apr-2009 |
Nathan Binkert <nate@binkert.org> |
stats: Shuffle around info stuff so it can be accessed separately
|
#
6128:fdfbd4c6e449 |
|
22-Apr-2009 |
Nathan Binkert <nate@binkert.org> |
stats: Rename the info classes to hopefully make things a bit clearer FooInfoBase became FooInfo FooInfo became FooInfoProxy
|
#
6026:45c8a91d1174 |
|
09-Apr-2009 |
Nathan Binkert <nate@binkert.org> |
stats: disallow duplicate statistic names.
|
#
6015:4df1c7698e52 |
|
16-Mar-2009 |
Nathan Binkert <nate@binkert.org> |
stats: fix compiler error
|
#
6004:97660425ff39 |
|
07-Mar-2009 |
Nathan Binkert <nate@binkert.org> |
stats: cleanup text output stuff and fix mysql output
|
#
6002:7d75f1a525db |
|
07-Mar-2009 |
Nathan Binkert <nate@binkert.org> |
build: fix errors for compilers other than g++ 4.3
|
#
6001:00251eb95de7 |
|
05-Mar-2009 |
Nathan Binkert <nate@binkert.org> |
stats: create an enable phase, and a prepare phase. Enable more or less takes the place of check, but also allows stats to do some other configuration. Prepare moves all of the code that readies a stat for dumping into a separate function in preparation for supporting serialization of certain pieces of statistics data. While we're at it, clean up the visitor code and some of the python code.
|
#
6000:4f887be9e1b6 |
|
05-Mar-2009 |
Nathan Binkert <nate@binkert.org> |
stats: clean up how templates are used on the data side. This basically works by taking advantage of the curiously recurring template pattern in an intelligent way so as to reduce the number of lines of code and hopefully make things a little bit clearer.
|
#
5998:a4c935e9cf99 |
|
05-Mar-2009 |
Nathan Binkert <nate@binkert.org> |
stats: remove the template wart left over from the ancient binning stuff
|
#
5997:471090ec173e |
|
05-Mar-2009 |
Nathan Binkert <nate@binkert.org> |
stats: stick the distribution's fancy parameter into the parameters structure.
|
#
5996:7674070ccc92 |
|
05-Mar-2009 |
Nathan Binkert <nate@binkert.org> |
stats: Add a wrapper class for the information side of things. This provides an easy way to provide the callbacks into the data side of things from the info side of things. Rename Wrap to DataWrap so it is more easily distinguishable from InfoWrap
|
#
5995:2c9823c60c8c |
|
05-Mar-2009 |
Nathan Binkert <nate@binkert.org> |
stats: better naming of template parameters for the wrapper stuff Parent and Child are bad names. Derived and Base are better.
|
#
5994:19131d568007 |
|
05-Mar-2009 |
Nathan Binkert <nate@binkert.org> |
stats: get rid of meaningless uses of virtual
|
#
5993:71e56052768f |
|
05-Mar-2009 |
Nathan Binkert <nate@binkert.org> |
stats: miscellaneous cleanup
|
#
5889:02e5bc7ca9ba |
|
23-Feb-2009 |
Nathan Binkert <nate@binkert.org> |
stats: reorganize how parameters are stored and accessed.
|
#
5888:9775f70fbe66 |
|
23-Feb-2009 |
Nathan Binkert <nate@binkert.org> |
stats: move the limits stuff into the types.hh file
|
#
5887:6b312cafaa59 |
|
23-Feb-2009 |
Nathan Binkert <nate@binkert.org> |
stats: get rid of the convoluted 'database' code. Just use the stuff directly and things ought to be more clear
|
#
5886:12431dc9a30a |
|
23-Feb-2009 |
Nathan Binkert <nate@binkert.org> |
stats: Try to make the names of things more intuitive. Basically, this means renaming several things called data to info, which is information about the statistics. Things that are named data now are actual data stored for the statistic.
|
#
5599:5bad83cddb8c |
|
09-Oct-2008 |
Nathan Binkert <nate@binkert.org> |
stats: use properly signed types for looping and comparison
|
#
5598:345ef3bda3d2 |
|
09-Oct-2008 |
Nathan Binkert <nate@binkert.org> |
style: Bring statistics code in line with the proper style.
|
#
5582:c2fd66e6a919 |
|
02-Oct-2008 |
Nathan Binkert <nate@binkert.org> |
stats: Fix small bug pointed out by unit testing.
|
#
5547:747034106af4 |
|
19-Sep-2008 |
Nathan Binkert <nate@binkert.org> |
Use C++ limits where applicable for portability
|
#
5189:00f8fa0811ea |
|
30-Oct-2007 |
Vilas Sridharan <vilas.sridharan@gmail.com> |
Add constant stat.
Signed Off: Ali Saidi <saidi@eecs.umich.edu>
|
#
4445:398ffa3f4e45 |
|
11-May-2007 |
Nathan Binkert <binkertn@umich.edu> |
total should be the sum of the vector result of an operation, not sum the operands and then apply the operation.
|
#
4092:851cb6397444 |
|
21-Feb-2007 |
Nathan Binkert <binkertn@umich.edu> |
Make comments refer to ticks not cycles
|
#
4078:3f73f808bbd4 |
|
18-Feb-2007 |
Nathan Binkert <binkertn@umich.edu> |
Get rid of the Statistics and Statreset ParamContexts, and expose all of the relevant functionality to python. Clean up the mysql code while we're at it.
|
#
3940:b87f85bb4275 |
|
27-Jan-2007 |
Ali Saidi <saidi@eecs.umich.edu> |
While I'm waiting for legion to run make m5 compile with a few more compilers
SConstruct: src/SConscript: Add flags for Intel CC while i'm at it src/base/compiler.hh: the _Pragma stuff needst to be called this way unless someone happens to have a cleaner way src/base/cprintf_formats.hh: add std:: where appropriate src/base/statistics.hh: use this->map since icc was getting confused about std::map vs the locally defined map src/cpu/static_inst.hh: Add some more dummy returns where needed src/mem/packet.hh: add more dummy returns where needed src/sim/host.hh: use limits to come up with max tick
|
#
3918:1f9a98d198e8 |
|
26-Jan-2007 |
Ali Saidi <saidi@eecs.umich.edu> |
make our code a little more standards compliant pretty close to compiling w/ suns compiler
briefly: add dummy return after panic()/fatal() split out flags by compiler vendor include cstring and cmath where appropriate use std namespace for string ops
SConstruct: Add code to detect compiler and choose cflags based on detected compiler Fix zlib check to work with suncc src/SConscript: split out flags by compiler vendor src/arch/sparc/isa/decoder.isa: use correct namespace for sqrt src/arch/sparc/isa/formats/basic.isa: add dummy return around panic src/arch/sparc/isa/formats/integerop.isa: use correct namespace for stringops src/arch/sparc/isa/includes.isa: include cstring and cmath where appropriate src/arch/sparc/isa_traits.hh: remove dangling comma src/arch/sparc/system.cc: dummy return to make sun cc front end happy src/arch/sparc/tlb.cc: src/base/compression/lzss_compression.cc: use std namespace for string ops src/arch/sparc/utility.hh: no reason to say something is unsigned unsigned int src/base/compression/null_compression.hh: dummy returns to for suncc front end src/base/cprintf.hh: use standard variadic argument syntax instead of gnuc specefic renaming src/base/hashmap.hh: don't need to define hash for suncc src/base/hostinfo.cc: need stdio.h for sprintf src/base/loader/object_file.cc: munmap is in std namespace not null src/base/misc.hh: use M5 generic noreturn macros use standard variadic macro __VA_ARGS__ src/base/pollevent.cc: we need file.h for file flags src/base/random.cc: mess with include files to make suncc happy src/base/remote_gdb.cc: malloc memory for function instead of having a non-constant in an array size src/base/statistics.hh: use std namespace for floor src/base/stats/text.cc: include math.h for rint (cmath won't work) src/base/time.cc: use suncc version of ctime_r src/base/time.hh: change macro to work with both gcc and suncc src/base/timebuf.hh: include cstring from memset and use std:: src/base/trace.hh: change variadic macros to be normal format src/cpu/SConscript: add dummy returns where appropriate src/cpu/activity.cc: include cstring for memset src/cpu/exetrace.hh: include cstring fro memcpy src/cpu/simple/base.hh: add dummy return for panic src/dev/baddev.cc: src/dev/pciconfigall.cc: src/dev/platform.cc: src/dev/sparc/t1000.cc: add dummy return where appropriate src/dev/ide_atareg.h: make define work for both gnuc and suncc src/dev/io_device.hh: add dummy returns where approirate src/dev/pcidev.hh: src/mem/cache/cache_impl.hh: src/mem/cache/miss/blocking_buffer.cc: src/mem/cache/tags/lru.hh: src/mem/cache/tags/split.hh: src/mem/cache/tags/split_lifo.hh: src/mem/cache/tags/split_lru.hh: src/mem/dram.cc: src/mem/packet.cc: src/mem/port.cc: include cstring for string ops src/dev/sparc/mm_disk.cc: add dummy return where appropriate include cstring for string ops src/mem/cache/miss/blocking_buffer.hh: src/mem/port.hh: Add dummy return where appropriate src/mem/cache/tags/iic.cc: cast hastSets to double for log() call src/mem/physical.cc: cast pmemAddr to char* for munmap src/sim/byteswap.hh: make define work for suncc and gnuc
|
#
3515:98655e4fd9f1 |
|
08-Nov-2006 |
Ali Saidi <saidi@eecs.umich.edu> |
DWARF2 symbol support seems to be broken on Solaris. Use stabs+ align the character arrays that are used by placement-new for classes lest we have an unaligned fault on SPARC/Solaris
src/SConscript: DWARF2 symbol support seems to be broken on Solaris. Use stabs+ src/base/statistics.hh: align the character arrays that are used by placement-new for classes lest we have an unaligned fault on SPARC/Solaris
|
#
2716:b9114064d77a |
|
11-Jun-2006 |
Nathan Binkert <binkertn@umich.edu> |
Merge iceaxe.:/Volumes/work/research/m5/head into iceaxe.:/Volumes/work/research/m5/merge
src/cpu/simple/base.cc: src/kern/kernel_stats.cc: src/kern/kernel_stats.hh: src/kern/system_events.cc: src/kern/system_events.hh: src/python/m5/objects/System.py: src/sim/system.cc: src/sim/system.hh: hand merge
|
#
2665:a124942bacb8 |
|
31-May-2006 |
Ali Saidi <saidi@eecs.umich.edu> |
Updated Authors from bk prs info
|
#
2632:1bb2f91485ea |
|
22-May-2006 |
Steve Reinhardt <stever@eecs.umich.edu> |
New directory structure: - simulator source now in 'src' subdirectory - imported files from 'ext' repository - support building in arbitrary places, including outside of the source tree. See comment at top of SConstruct file for more details. Regression tests are temporarily disabled; that syetem needs more extensive revisions.
SConstruct: Update for new directory structure. Modify to support build trees that are not subdirectories of the source tree. See comment at top of file for more details. Regression tests are temporarily disabled. src/arch/SConscript: src/arch/isa_parser.py: src/python/SConscript: Update for new directory structure.
|