cache.hh (5338:e75d02a09806) | cache.hh (5350:67e5e13f4146) |
---|---|
1/* 2 * Copyright (c) 2002-2005 The Regents of The University of Michigan 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 156 unchanged lines hidden (view full) --- 165 bool access(PacketPtr pkt, BlkType *&blk, int &lat); 166 167 /** 168 *Handle doing the Compare and Swap function for SPARC. 169 */ 170 void cmpAndSwap(BlkType *blk, PacketPtr pkt); 171 172 /** | 1/* 2 * Copyright (c) 2002-2005 The Regents of The University of Michigan 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 156 unchanged lines hidden (view full) --- 165 bool access(PacketPtr pkt, BlkType *&blk, int &lat); 166 167 /** 168 *Handle doing the Compare and Swap function for SPARC. 169 */ 170 void cmpAndSwap(BlkType *blk, PacketPtr pkt); 171 172 /** |
173 * Find a block frame for new block at address addr, assuming that 174 * the block is not currently in the cache. Append writebacks if 175 * any to provided packet list. Return free block frame. May 176 * return NULL if there are no replaceable blocks at the moment. 177 */ 178 BlkType *allocateBlock(Addr addr, PacketList &writebacks); 179 180 /** |
|
173 * Populates a cache block and handles all outstanding requests for the 174 * satisfied fill request. This version takes two memory requests. One 175 * contains the fill data, the other is an optional target to satisfy. 176 * Used for Cache::probe. 177 * @param pkt The memory request with the fill data. 178 * @param blk The cache block if it already exists. 179 * @param writebacks List for any writebacks that need to be performed. 180 * @return Pointer to the new cache block. --- 128 unchanged lines hidden --- | 181 * Populates a cache block and handles all outstanding requests for the 182 * satisfied fill request. This version takes two memory requests. One 183 * contains the fill data, the other is an optional target to satisfy. 184 * Used for Cache::probe. 185 * @param pkt The memory request with the fill data. 186 * @param blk The cache block if it already exists. 187 * @param writebacks List for any writebacks that need to be performed. 188 * @return Pointer to the new cache block. --- 128 unchanged lines hidden --- |