diff options
author | Polina Dudnik <pdudnik@gmail.com> | 2009-05-11 10:38:46 -0700 |
---|---|---|
committer | Polina Dudnik <pdudnik@gmail.com> | 2009-05-11 10:38:46 -0700 |
commit | 29f82f265aa7085eaf0659be8f67b2a95f5326e5 (patch) | |
tree | 4dabd61894ed58d3d35487ef4dfa6b70f7e6f8d7 /src/mem/ruby/system/DirectoryMemory.hh | |
parent | b271090923aedd9a01d845023439af63cac46e55 (diff) | |
download | gem5-29f82f265aa7085eaf0659be8f67b2a95f5326e5.tar.xz |
ruby: Removed g_SIMULATING flag
1. removed checks from tester files
2. removed else clause in Sequencer and DirectoryMemory else clause is
needed by the tester, it is up to Derek to revive it elsewhere when he
gets to it
Also:
1. Changed m_entries in DirectoryMemory to a map
2. And replaced SIMICS_read_physical_memory with a call to now-dummy
Derek's-to-be readPhysMem function
Diffstat (limited to 'src/mem/ruby/system/DirectoryMemory.hh')
-rw-r--r-- | src/mem/ruby/system/DirectoryMemory.hh | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mem/ruby/system/DirectoryMemory.hh b/src/mem/ruby/system/DirectoryMemory.hh index 94b7de9aa..3307e77a7 100644 --- a/src/mem/ruby/system/DirectoryMemory.hh +++ b/src/mem/ruby/system/DirectoryMemory.hh @@ -42,6 +42,7 @@ #include "mem/ruby/common/Global.hh" #include "mem/ruby/common/Address.hh" #include "mem/protocol/Directory_Entry.hh" +#include <map> class Chip; @@ -56,6 +57,8 @@ public: // Public Methods static void printConfig(ostream& out); bool isPresent(PhysAddress address); + // dummy function + void readPhysMem(uint64 address, int size, void * data); Directory_Entry& lookup(PhysAddress address); void print(ostream& out) const; @@ -68,7 +71,7 @@ private: DirectoryMemory& operator=(const DirectoryMemory& obj); // Data Members (m_ prefix) - Directory_Entry **m_entries; + map<Index, Directory_Entry*> m_entries; Chip* m_chip_ptr; int m_size; // # of memory module blocks for this directory int m_version; |