1/* 2 * Copyright (c) 2012-2013, 2015-2016 ARM Limited 3 * All rights reserved. 4 * 5 * The license below extends only to copyright in the software and shall 6 * not be construed as granting a license to any other intellectual 7 * property including but not limited to intellectual property relating 8 * to a hardware implementation of the functionality of the software --- 470 unchanged lines hidden (view full) --- 479 * @return The block size 480 */ 481 unsigned 482 getBlockSize() const 483 { 484 return blkSize; 485 } 486 |
487 const AddrRangeList &getAddrRanges() const { return addrRanges; } 488 489 MSHR *allocateMissBuffer(PacketPtr pkt, Tick time, bool sched_send = true) 490 { |
491 MSHR *mshr = mshrQueue.allocate(pkt->getBlockAddr(blkSize), blkSize, |
492 pkt, time, order++, 493 allocOnFill(pkt->cmd)); 494 495 if (mshrQueue.isFull()) { 496 setBlocked((BlockedCause)MSHRQueue_MSHRs); 497 } 498 499 if (sched_send) { --- 4 unchanged lines hidden (view full) --- 504 return mshr; 505 } 506 507 void allocateWriteBuffer(PacketPtr pkt, Tick time) 508 { 509 // should only see writes or clean evicts here 510 assert(pkt->isWrite() || pkt->cmd == MemCmd::CleanEvict); 511 |
512 Addr blk_addr = pkt->getBlockAddr(blkSize); |
513 514 WriteQueueEntry *wq_entry = 515 writeBuffer.findMatch(blk_addr, pkt->isSecure()); 516 if (wq_entry && !wq_entry->inService) { 517 DPRINTF(Cache, "Potential to merge writeback %s", pkt->print()); 518 } 519 520 writeBuffer.allocate(blk_addr, blkSize, pkt, time, order++); --- 90 unchanged lines hidden --- |