diff options
author | Iru Cai <mytbk920423@gmail.com> | 2019-03-04 09:56:24 +0800 |
---|---|---|
committer | Iru Cai <mytbk920423@gmail.com> | 2019-03-04 09:56:24 +0800 |
commit | 510d58cccafdc12d6aede37b890e50eb08a1a7f6 (patch) | |
tree | dc0eeda2beeacf0e874966a79784e4f17b67f9d9 /src/mem/ruby | |
parent | 52256dc0939185df7dd7302804ee2eb05a823786 (diff) | |
download | gem5-510d58cccafdc12d6aede37b890e50eb08a1a7f6.tar.xz |
remove unused src/mem/ruby/structures/SBE*
Change-Id: Ie466a4e8d170cf9c8a28295dbe3c42b664f03362
Diffstat (limited to 'src/mem/ruby')
-rw-r--r-- | src/mem/ruby/structures/SBE.hh | 16 | ||||
-rw-r--r-- | src/mem/ruby/structures/SBETable.hh | 40 |
2 files changed, 0 insertions, 56 deletions
diff --git a/src/mem/ruby/structures/SBE.hh b/src/mem/ruby/structures/SBE.hh deleted file mode 100644 index ce0caafa8..000000000 --- a/src/mem/ruby/structures/SBE.hh +++ /dev/null @@ -1,16 +0,0 @@ -#ifndef __MEM_RUBY_STRUCTURES_SBE_HH__ -#define __MEM_RUBY_STRUCTURES_SBE_HH__ - -#include "mem/ruby/common/Address.hh" -#include "mem/protocol/DataBlock.hh" - -class SBE -{ - public: - SBE() {} - - Addr m_Address; - DataBlock m_DataBlk; -}; - -#endif // __MEM_RUBY_STRUCTURES_SBETABLE_HH__ diff --git a/src/mem/ruby/structures/SBETable.hh b/src/mem/ruby/structures/SBETable.hh deleted file mode 100644 index cf21acd71..000000000 --- a/src/mem/ruby/structures/SBETable.hh +++ /dev/null @@ -1,40 +0,0 @@ -#ifndef __MEM_RUBY_STRUCTURES_SBETABLE_HH__ -#define __MEM_RUBY_STRUCTURES_SBETABLE_HH__ - -#include <iostream> -#include <unordered_map> - -#include "mem/ruby/common/Address.hh" -#include "mem/protocol/DataBlock.hh" - -class SBE -{ - public: - SBE() {} - - Addr m_addr; - DataBlock m_DataBlk; -}; - -class SBETable -{ - public: - SBETable() {} - - // bool isPresent(Addr address) const; - void allocate(Addr address); - // void deallocate(Addr address); - - private: - std::unordered_map<Addr, SBE> m_map; -}; - -inline void -SBETable::allocate(Addr address) -{ - // assert(!isPresent(address)); - m_map[address] = SBE(); - m_map[address].m_addr = address; -} - -#endif // __MEM_RUBY_STRUCTURES_SBETABLE_HH__ |