cache.hh (4190:5069dfa3d62e) | cache.hh (4219:e3f636da1042) |
---|---|
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; --- 213 unchanged lines hidden (view full) --- 222 * @param writebacks List for any writebacks that need to be performed. 223 * @param update True if the replacement data should be updated. 224 * @return Pointer to the cache block touched by the request. NULL if it 225 * was a miss. 226 */ 227 BlkType* handleAccess(PacketPtr &pkt, int & lat, 228 PacketList & writebacks, bool update = true); 229 | 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; --- 213 unchanged lines hidden (view full) --- 222 * @param writebacks List for any writebacks that need to be performed. 223 * @param update True if the replacement data should be updated. 224 * @return Pointer to the cache block touched by the request. NULL if it 225 * was a miss. 226 */ 227 BlkType* handleAccess(PacketPtr &pkt, int & lat, 228 PacketList & writebacks, bool update = true); 229 |
230 |
|
230 /** | 231 /** |
232 *Handle doing the Compare and Swap function for SPARC. 233 */ 234 void cmpAndSwap(BlkType *blk, PacketPtr &pkt); 235 236 /** |
|
231 * Populates a cache block and handles all outstanding requests for the 232 * satisfied fill request. This version takes an MSHR pointer and uses its 233 * request to fill the cache block, while repsonding to its targets. 234 * @param blk The cache block if it already exists. 235 * @param mshr The MSHR that contains the fill data and targets to satisfy. 236 * @param new_state The state of the new cache block. 237 * @param writebacks List for any writebacks that need to be performed. 238 * @return Pointer to the new cache block. --- 202 unchanged lines hidden --- | 237 * Populates a cache block and handles all outstanding requests for the 238 * satisfied fill request. This version takes an MSHR pointer and uses its 239 * request to fill the cache block, while repsonding to its targets. 240 * @param blk The cache block if it already exists. 241 * @param mshr The MSHR that contains the fill data and targets to satisfy. 242 * @param new_state The state of the new cache block. 243 * @param writebacks List for any writebacks that need to be performed. 244 * @return Pointer to the new cache block. --- 202 unchanged lines hidden --- |