cache.hh (12721:7f611e9412f0) cache.hh (12723:530dc4bf1a00)
1/*
2 * Copyright (c) 2012-2018 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

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

491 * @param pending_inval Do we have a pending invalidation?
492 *
493 * @return The snoop delay incurred by the upwards snoop
494 */
495 uint32_t handleSnoop(PacketPtr pkt, CacheBlk *blk,
496 bool is_timing, bool is_deferred, bool pending_inval);
497
498 /**
1/*
2 * Copyright (c) 2012-2018 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

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

491 * @param pending_inval Do we have a pending invalidation?
492 *
493 * @return The snoop delay incurred by the upwards snoop
494 */
495 uint32_t handleSnoop(PacketPtr pkt, CacheBlk *blk,
496 bool is_timing, bool is_deferred, bool pending_inval);
497
498 /**
499 * Evict a cache block.
500 *
501 * Performs a writeback if necesssary and invalidates the block
502 *
503 * @param blk Block to invalidate
504 * @return A packet with the writeback, can be nullptr
505 */
506 M5_NODISCARD virtual PacketPtr evictBlock(CacheBlk *blk);
507
508 /**
509 * Evict a cache block.
510 *
511 * Performs a writeback if necesssary and invalidates the block
512 *
513 * @param blk Block to invalidate
514 * @param writebacks Return a list of packets with writebacks
515 */
516 virtual void evictBlock(CacheBlk *blk, PacketList &writebacks);
517
518 /**
499 * Create a writeback request for the given block.
500 * @param blk The block to writeback.
501 * @return The writeback request for the block.
502 */
503 PacketPtr writebackBlk(CacheBlk *blk);
504
505 /**
506 * Create a writeclean request for the given block.

--- 182 unchanged lines hidden ---
519 * Create a writeback request for the given block.
520 * @param blk The block to writeback.
521 * @return The writeback request for the block.
522 */
523 PacketPtr writebackBlk(CacheBlk *blk);
524
525 /**
526 * Create a writeclean request for the given block.

--- 182 unchanged lines hidden ---