cache.hh (11054:00bddca96da6) cache.hh (11127:f39c2cc0d44e)
1/*
2 * Copyright (c) 2012-2014 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

--- 286 unchanged lines hidden (view full) ---

295 bool deferred_response = false,
296 bool pending_downgrade = false);
297 bool satisfyMSHR(MSHR *mshr, PacketPtr pkt, CacheBlk *blk);
298
299 void doTimingSupplyResponse(PacketPtr req_pkt, const uint8_t *blk_data,
300 bool already_copied, bool pending_inval);
301
302 /**
1/*
2 * Copyright (c) 2012-2014 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

--- 286 unchanged lines hidden (view full) ---

295 bool deferred_response = false,
296 bool pending_downgrade = false);
297 bool satisfyMSHR(MSHR *mshr, PacketPtr pkt, CacheBlk *blk);
298
299 void doTimingSupplyResponse(PacketPtr req_pkt, const uint8_t *blk_data,
300 bool already_copied, bool pending_inval);
301
302 /**
303 * Sets the blk to the new state.
304 * @param blk The cache block being snooped.
305 * @param new_state The new coherence state for the block.
303 * Perform an upward snoop if needed, and update the block state
304 * (possibly invalidating the block). Also create a response if required.
305 *
306 * @param pkt Snoop packet
307 * @param blk Cache block being snooped
308 * @param is_timing Timing or atomic for the response
309 * @param is_deferred Is this a deferred snoop or not?
310 * @param pending_inval Do we have a pending invalidation?
311 *
312 * @return The snoop delay incurred by the upwards snoop
306 */
313 */
307 void handleSnoop(PacketPtr ptk, CacheBlk *blk,
308 bool is_timing, bool is_deferred, bool pending_inval);
314 uint32_t handleSnoop(PacketPtr pkt, CacheBlk *blk,
315 bool is_timing, bool is_deferred, bool pending_inval);
309
310 /**
311 * Create a writeback request for the given block.
312 * @param blk The block to writeback.
313 * @return The writeback request for the block.
314 */
315 PacketPtr writebackBlk(CacheBlk *blk);
316

--- 172 unchanged lines hidden ---
316
317 /**
318 * Create a writeback request for the given block.
319 * @param blk The block to writeback.
320 * @return The writeback request for the block.
321 */
322 PacketPtr writebackBlk(CacheBlk *blk);
323

--- 172 unchanged lines hidden ---