gem5/src/mem/ruby/system
Andreas Hansson b6aa6d55eb clang/gcc: Fix compilation issues with clang 3.0 and gcc 4.6
This patch addresses a number of minor issues that cause problems when
compiling with clang >= 3.0 and gcc >= 4.6. Most importantly, it
avoids using the deprecated ext/hash_map and instead uses
unordered_map (and similarly so for the hash_set). To make use of the
new STL containers, g++ and clang has to be invoked with "-std=c++0x",
and this is now added for all gcc versions >= 4.6, and for clang >=
3.0. For gcc >= 4.3 and <= 4.5 and clang <= 3.0 we use the tr1
unordered_map to avoid the deprecation warning.

The addition of c++0x in turn causes a few problems, as the
compiler is more stringent and adds a number of new warnings. Below,
the most important issues are enumerated:

1) the use of namespaces is more strict, e.g. for isnan, and all
   headers opening the entire namespace std are now fixed.

2) another other issue caused by the more stringent compiler is the
   narrowing of the embedded python, which used to be a char array,
   and is now unsigned char since there were values larger than 128.

3) a particularly odd issue that arose with the new c++0x behaviour is
   found in range.hh, where the operator< causes gcc to complain about
   the template type parsing (the "<" is interpreted as the beginning
   of a template argument), and the problem seems to be related to the
   begin/end members introduced for the range-type iteration, which is
   a new feature in c++11.

As a minor update, this patch also fixes the build flags for the clang
debug target that used to be shared with gcc and incorrectly use
"-ggdb".
2012-04-14 05:43:31 -04:00
..
AbstractMemOrCache.hh ruby: use RubyMemory flag & remove setDebug() functionality 2011-05-05 02:20:31 -04:00
AbstractReplacementPolicy.hh Ruby: Shuffle some of the included files 2011-12-31 18:44:51 -06:00
Cache.py Ruby Cache: Add param for marking caches as instruction only 2012-01-07 07:38:53 -06:00
CacheMemory.cc sim-ruby: checkpointing fixes and dependent eventq improvements 2012-04-06 13:47:07 -07:00
CacheMemory.hh Ruby: Add infrastructure for recording cache contents 2012-01-11 13:29:15 -06:00
DirectoryMemory.cc Ruby: Resurrect Cache Warmup Capability 2012-01-11 13:48:48 -06:00
DirectoryMemory.hh Ruby: Shuffle some of the included files 2011-12-31 18:44:51 -06:00
DirectoryMemory.py Ruby: Commit files missing from previous commit 2011-07-01 16:29:33 -05:00
DMASequencer.cc Ruby: Shuffle some of the included files 2011-12-31 18:44:51 -06:00
DMASequencer.hh Ruby: Resurrect Cache Warmup Capability 2012-01-11 13:48:48 -06:00
LRUPolicy.hh ruby: style pass 2010-03-22 18:43:53 -07:00
MachineID.hh Ruby: Remove some unused typedefs 2011-11-03 22:46:45 -05:00
MemoryControl.cc sim-ruby: checkpointing fixes and dependent eventq improvements 2012-04-06 13:47:07 -07:00
MemoryControl.hh sim-ruby: checkpointing fixes and dependent eventq improvements 2012-04-06 13:47:07 -07:00
MemoryControl.py ruby: Added copyright to many Ruby *.py files 2010-03-21 21:22:20 -07:00
MemoryNode.cc ruby: style pass 2010-03-22 18:43:53 -07:00
MemoryNode.hh ruby: style pass 2010-03-22 18:43:53 -07:00
MemoryVector.hh sim-ruby: checkpointing fixes and dependent eventq improvements 2012-04-06 13:47:07 -07:00
PerfectCacheMemory.hh clang/gcc: Fix compilation issues with clang 3.0 and gcc 4.6 2012-04-14 05:43:31 -04:00
PersistentTable.cc ruby: get rid of the Map class 2010-06-10 23:17:07 -07:00
PersistentTable.hh Ruby: Shuffle some of the included files 2011-12-31 18:44:51 -06:00
PseudoLRUPolicy.hh GCC: Get everything working with gcc 4.6.1. 2011-10-31 01:09:44 -07:00
RubyPort.cc MEM: Enable multiple distributed generalized memories 2012-04-06 13:46:31 -04:00
RubyPort.hh Ruby: Remove the physMemPort and instead access memory directly 2012-03-30 09:42:36 -04:00
RubyPortProxy.cc MEM: Add port proxies instead of non-structural ports 2012-01-17 12:55:08 -06:00
RubyPortProxy.hh MEM: Add port proxies instead of non-structural ports 2012-01-17 12:55:08 -06:00
RubySystem.py Ruby: Add support for functional accesses 2011-06-30 19:49:26 -05:00
SConscript MEM: Add port proxies instead of non-structural ports 2012-01-17 12:55:08 -06:00
Sequencer.cc Ruby: Remove isTagPresent() calls from Sequencer.cc 2012-02-10 11:29:02 -06:00
Sequencer.hh clang: Enable compiling gem5 using clang 2.9 and 3.0 2012-01-31 12:05:52 -05:00
Sequencer.py rubytest: seperated read and write ports. 2012-04-06 13:47:06 -07:00
SparseMemory.cc Ruby Sparse Memory: Add function for collating blocks 2012-01-11 13:29:54 -06:00
SparseMemory.hh Ruby Sparse Memory: Add function for collating blocks 2012-01-11 13:29:54 -06:00
System.cc sim-ruby: checkpointing fixes and dependent eventq improvements 2012-04-06 13:47:07 -07:00
System.hh sim-ruby: checkpointing fixes and dependent eventq improvements 2012-04-06 13:47:07 -07:00
TBETable.hh Change interface between coherence protocols and CacheMemory 2011-01-17 18:46:16 -06:00
TimerTable.cc ruby: get rid of the Map class 2010-06-10 23:17:07 -07:00
TimerTable.hh Ruby: Ensure order-dependent iteration uses an ordered map 2012-04-12 08:35:49 -04:00
WireBuffer.cc Ruby: Add new object called WireBuffer to mimic a Wire. 2011-03-31 17:17:57 -07:00
WireBuffer.hh includes: sort all includes 2011-04-15 10:44:06 -07:00
WireBuffer.py CacheMemory: add allocateVoid() that is == allocate() but no return value. 2011-03-31 18:20:12 -07:00