changeset 31d19bdd9d85 in /z/repo/m5
details: http://repo.m5sim.org/m5?cmd=changeset;node=31d19bdd9d85
description:
        Minor fixes for compiling

diffstat:

3 files changed, 5 insertions(+), 3 deletions(-)
src/mem/ruby/common/DataBlock.hh   |    2 +-
src/mem/ruby/system/CacheMemory.hh |    2 ++
src/mem/rubymem.cc                 |    4 ++--

diffs (38 lines):

diff -r accdf59eedd3 -r 31d19bdd9d85 src/mem/ruby/common/DataBlock.hh
--- a/src/mem/ruby/common/DataBlock.hh  Mon Jul 13 11:37:56 2009 -0500
+++ b/src/mem/ruby/common/DataBlock.hh  Mon Jul 13 11:59:13 2009 -0500
@@ -58,7 +58,7 @@
   void setByte(int whichByte, uint8 data);
   const uint8* getBlock() const;
   uint8* copyData(uint8* dest, int offset, int size) const;
-  void setBlock(uint8* data) { setData(data, 0, System::getBlockSizeBytes()); 
} 
+  void setBlock(uint8* data) { setData(data, 0, 
RubySystem::getBlockSizeBytes()); } 
   void setData(uint8* data, int offset, int len);
   void copyPartial(const DataBlock & dblk, int offset, int len);
   bool equal(const DataBlock& obj) const;
diff -r accdf59eedd3 -r 31d19bdd9d85 src/mem/ruby/system/CacheMemory.hh
--- a/src/mem/ruby/system/CacheMemory.hh        Mon Jul 13 11:37:56 2009 -0500
+++ b/src/mem/ruby/system/CacheMemory.hh        Mon Jul 13 11:59:13 2009 -0500
@@ -551,6 +551,8 @@
 {
   assert(address == line_address(address));
   lookup(address).m_Permission = new_perm;
+  Index cacheSet = addressToCacheSet(address);
+  int loc = findTagInSet(cacheSet, address);
   m_locked[cacheSet][loc] = -1; 
   assert(getPermission(address) == new_perm);
 }
diff -r accdf59eedd3 -r 31d19bdd9d85 src/mem/rubymem.cc
--- a/src/mem/rubymem.cc        Mon Jul 13 11:37:56 2009 -0500
+++ b/src/mem/rubymem.cc        Mon Jul 13 11:59:13 2009 -0500
@@ -230,8 +230,8 @@
         }
     } else if (pkt->isWrite()) {
         type = RubyRequestType_ST;
-    } else if (pkt->isReadWrite()) {
-        type = RubyRequestType_RMW;
+//    } else if (pkt->isReadWrite()) {
+//        type = RubyRequestType_RMW;
     }
 
     RubyRequest ruby_request(pkt->getAddr(), pkt->getPtr<uint8_t>(),
_______________________________________________
m5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/m5-dev

Reply via email to