summaryrefslogtreecommitdiff
path: root/src/mem/ruby/system
diff options
context:
space:
mode:
authorJoel Hestness <hestness@cs.utexas.edu>2011-06-24 15:47:35 -0500
committerJoel Hestness <hestness@cs.utexas.edu>2011-06-24 15:47:35 -0500
commitd50aec8d9ae9c9e543494e118fc3be1645c3e9a3 (patch)
tree1bb8b82968f82e961456ce69c44baa06caa5c762 /src/mem/ruby/system
parent5aaddc129ef1a219a29d74e78aab28526f001963 (diff)
downloadgem5-d50aec8d9ae9c9e543494e118fc3be1645c3e9a3.tar.xz
Ruby: remove unused functions in CacheMemory: get/setMemoryValue
Diffstat (limited to 'src/mem/ruby/system')
-rw-r--r--src/mem/ruby/system/CacheMemory.cc25
-rw-r--r--src/mem/ruby/system/CacheMemory.hh5
2 files changed, 0 insertions, 30 deletions
diff --git a/src/mem/ruby/system/CacheMemory.cc b/src/mem/ruby/system/CacheMemory.cc
index c22572cc3..fbf303ed8 100644
--- a/src/mem/ruby/system/CacheMemory.cc
+++ b/src/mem/ruby/system/CacheMemory.cc
@@ -428,31 +428,6 @@ CacheMemory::printStats(ostream& out) const
}
void
-CacheMemory::getMemoryValue(const Address& addr, char* value,
- unsigned size_in_bytes)
-{
- AbstractCacheEntry* entry = lookup(line_address(addr));
- unsigned startByte = addr.getAddress() - line_address(addr).getAddress();
- for (unsigned i = 0; i < size_in_bytes; ++i) {
- value[i] = entry->getDataBlk().getByte(i + startByte);
- }
-}
-
-void
-CacheMemory::setMemoryValue(const Address& addr, char* value,
- unsigned size_in_bytes)
-{
- AbstractCacheEntry* entry = lookup(line_address(addr));
- unsigned startByte = addr.getAddress() - line_address(addr).getAddress();
- assert(size_in_bytes > 0);
- for (unsigned i = 0; i < size_in_bytes; ++i) {
- entry->getDataBlk().setByte(i + startByte, value[i]);
- }
-
- // entry = lookup(line_address(addr));
-}
-
-void
CacheMemory::setLocked(const Address& address, int context)
{
DPRINTF(RubyCache, "Setting Lock for addr: %x to %d\n", address, context);
diff --git a/src/mem/ruby/system/CacheMemory.hh b/src/mem/ruby/system/CacheMemory.hh
index 4e4206e8d..c355ae2e3 100644
--- a/src/mem/ruby/system/CacheMemory.hh
+++ b/src/mem/ruby/system/CacheMemory.hh
@@ -117,11 +117,6 @@ class CacheMemory : public SimObject
RubyAccessMode accessType,
PrefetchBit pfBit);
- void getMemoryValue(const Address& addr, char* value,
- unsigned int size_in_bytes);
- void setMemoryValue(const Address& addr, char* value,
- unsigned int size_in_bytes);
-
void setLocked (const Address& addr, int context);
void clearLocked (const Address& addr);
bool isLocked (const Address& addr, int context);