From dedb4fbf058c96597cd48e506e4a3479b192d9aa Mon Sep 17 00:00:00 2001 From: Joel Hestness Date: Sun, 6 Feb 2011 22:14:18 -0800 Subject: [PATCH] Ruby: Fix to return cache block size to CPU for split data transfers --- src/mem/ruby/system/RubyPort.cc | 6 ++++++ src/mem/ruby/system/RubyPort.hh | 2 ++ 2 files changed, 8 insertions(+) diff --git a/src/mem/ruby/system/RubyPort.cc b/src/mem/ruby/system/RubyPort.cc index d1c306bb2..305228a8f 100644 --- a/src/mem/ruby/system/RubyPort.cc +++ b/src/mem/ruby/system/RubyPort.cc @@ -370,3 +370,9 @@ RubyPort::M5Port::isPhysMemAddress(Addr addr) } return false; } + +unsigned +RubyPort::M5Port::deviceBlockSize() const +{ + return (unsigned) RubySystem::getBlockSizeBytes(); +} diff --git a/src/mem/ruby/system/RubyPort.hh b/src/mem/ruby/system/RubyPort.hh index 56701cd5c..a2316781a 100644 --- a/src/mem/ruby/system/RubyPort.hh +++ b/src/mem/ruby/system/RubyPort.hh @@ -36,6 +36,7 @@ #include "mem/physical.hh" #include "mem/protocol/RequestStatus.hh" #include "mem/ruby/libruby.hh" +#include "mem/ruby/system/System.hh" #include "mem/tport.hh" #include "params/RubyPort.hh" @@ -54,6 +55,7 @@ class RubyPort : public MemObject M5Port(const std::string &_name, RubyPort *_port); bool sendTiming(PacketPtr pkt); void hitCallback(PacketPtr pkt); + unsigned deviceBlockSize() const; protected: virtual bool recvTiming(PacketPtr pkt); -- 2.30.2