Ruby: Fix to return cache block size to CPU for split data transfers

This commit is contained in:
Joel Hestness 2011-02-06 22:14:18 -08:00
parent 82844618fd
commit dedb4fbf05
2 changed files with 8 additions and 0 deletions

View file

@ -370,3 +370,9 @@ RubyPort::M5Port::isPhysMemAddress(Addr addr)
}
return false;
}
unsigned
RubyPort::M5Port::deviceBlockSize() const
{
return (unsigned) RubySystem::getBlockSizeBytes();
}

View file

@ -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);