fa_lru.hh (2810:5befce12ad70) | fa_lru.hh (2814:b723c79f5349) |
---|---|
1/* 2 * Copyright (c) 2003-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; --- 201 unchanged lines hidden (view full) --- 210 211 /** 212 * Find a replacement block for the address provided. 213 * @param req The request to a find a replacement candidate for. 214 * @param writebacks List for any writebacks to be performed. 215 * @param compress_blocks List of blocks to compress, for adaptive comp. 216 * @return The block to place the replacement in. 217 */ | 1/* 2 * Copyright (c) 2003-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; --- 201 unchanged lines hidden (view full) --- 210 211 /** 212 * Find a replacement block for the address provided. 213 * @param req The request to a find a replacement candidate for. 214 * @param writebacks List for any writebacks to be performed. 215 * @param compress_blocks List of blocks to compress, for adaptive comp. 216 * @return The block to place the replacement in. 217 */ |
218 FALRUBlk* findReplacement(Packet * &pkt, PacketList* & writebacks, | 218 FALRUBlk* findReplacement(Packet * &pkt, PacketList & writebacks, |
219 BlkList &compress_blocks); 220 221 /** 222 * Return the hit latency of this cache. 223 * @return The hit latency. 224 */ 225 int getHitLatency() const 226 { --- 87 unchanged lines hidden (view full) --- 314 * currently doesn't support data storage. 315 * @param blk The cache block to be written. 316 * @param data The data to write. 317 * @param size The number of bytes to write. 318 * @param writebacks A list for any writebacks to be performed. May be 319 * needed when writing to a compressed block. 320 */ 321 void writeData(FALRUBlk *blk, uint8_t *data, int size, | 219 BlkList &compress_blocks); 220 221 /** 222 * Return the hit latency of this cache. 223 * @return The hit latency. 224 */ 225 int getHitLatency() const 226 { --- 87 unchanged lines hidden (view full) --- 314 * currently doesn't support data storage. 315 * @param blk The cache block to be written. 316 * @param data The data to write. 317 * @param size The number of bytes to write. 318 * @param writebacks A list for any writebacks to be performed. May be 319 * needed when writing to a compressed block. 320 */ 321 void writeData(FALRUBlk *blk, uint8_t *data, int size, |
322 PacketList* &writebacks) | 322 PacketList &writebacks) |
323 { 324 } 325 326 /** 327 * Unimplemented. Perform a cache block copy from block aligned addresses. 328 * @param source The block aligned source address. 329 * @param dest The block aligned destination adddress. 330 * @param asid The address space ID. 331 * @param writebacks List for any generated writeback requests. 332 */ | 323 { 324 } 325 326 /** 327 * Unimplemented. Perform a cache block copy from block aligned addresses. 328 * @param source The block aligned source address. 329 * @param dest The block aligned destination adddress. 330 * @param asid The address space ID. 331 * @param writebacks List for any generated writeback requests. 332 */ |
333 void doCopy(Addr source, Addr dest, int asid, PacketList* &writebacks) | 333 void doCopy(Addr source, Addr dest, int asid, PacketList &writebacks) |
334 { 335 } 336 337 /** 338 * Unimplemented. 339 */ | 334 { 335 } 336 337 /** 338 * Unimplemented. 339 */ |
340 void fixCopy(Packet * &pkt, PacketList* &writebacks) | 340 void fixCopy(Packet * &pkt, PacketList &writebacks) |
341 { 342 } 343 344}; 345 346#endif | 341 { 342 } 343 344}; 345 346#endif |