Ruby: remove unused functions in CacheMemory: get/setMemoryValue
authorJoel Hestness <hestness@cs.utexas.edu>
Fri, 24 Jun 2011 20:47:35 +0000 (15:47 -0500)
committerJoel Hestness <hestness@cs.utexas.edu>
Fri, 24 Jun 2011 20:47:35 +0000 (15:47 -0500)
src/mem/ruby/system/CacheMemory.cc
src/mem/ruby/system/CacheMemory.hh

index c22572cc32edbc7d1e648bf3b0bcfdb2346e4ee6..fbf303ed83e677f950090864d9229e6ac30b2755 100644 (file)
@@ -427,31 +427,6 @@ CacheMemory::printStats(ostream& out) const
     m_profiler_ptr->printStats(out);
 }
 
-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)
 {
index 4e4206e8de8b8a9ee2002b8db21fc9944d67b61d..c355ae2e31d8713f4e4b240dcf319d1474ccd40a 100644 (file)
@@ -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);