1/* 2 * Copyright (c) 2012-2013, 2015 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 --- 138 unchanged lines hidden (view full) --- 147 * Allocates a new MSHR for the request and size. This places the request 148 * as the first target in the MSHR. 149 * 150 * @param blk_addr The address of the block. 151 * @param blk_size The number of bytes to request. 152 * @param pkt The original miss. 153 * @param when_ready When should the MSHR be ready to act upon. 154 * @param order The logical order of this MSHR |
155 * @param alloc_on_fill Should the cache allocate a block on fill |
156 * 157 * @return The a pointer to the MSHR allocated. 158 * 159 * @pre There are free entries. 160 */ 161 MSHR *allocate(Addr blk_addr, unsigned blk_size, PacketPtr pkt, |
162 Tick when_ready, Counter order, bool alloc_on_fill); |
163 164 /** 165 * Removes the given MSHR from the queue. This places the MSHR on the 166 * free list. 167 * @param mshr 168 */ 169 void deallocate(MSHR *mshr); 170 --- 92 unchanged lines hidden --- |