Minor fixes for compiling

This commit is contained in:
Polina Dudnik 2009-07-13 11:59:13 -05:00
parent 7606c71ea5
commit c66af9f474
3 changed files with 5 additions and 3 deletions

View file

@ -58,7 +58,7 @@ class DataBlock {
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;

View file

@ -551,6 +551,8 @@ void CacheMemory::changePermission(const Address& address, AccessPermission new_
{
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);
}

View file

@ -230,8 +230,8 @@ RubyMemory::Port::recvTiming(PacketPtr pkt)
}
} 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>(),