Deleted Added
sdiff udiff text old ( 13223:081299f403fe ) new ( 13445:070fc4d948c0 )
full compact
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

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

239 * @return True if the block holds data from the secure memory space.
240 */
241 bool isSecure() const
242 {
243 return (status & BlkSecure) != 0;
244 }
245
246 /**
247 * Set member variables when a block insertion occurs. Resets reference
248 * count to 1 (the insertion counts as a reference), and touch block if
249 * it hadn't been touched previously. Sets the insertion tick to the
250 * current tick. Does not make block valid.
251 *
252 * @param tag Block address tag.
253 * @param is_secure Whether the block is in secure space or not.
254 * @param src_master_ID The source requestor ID.
255 * @param task_ID The new task ID.
256 */
257 virtual void insert(const Addr tag, const bool is_secure,
258 const int src_master_ID, const uint32_t task_ID);

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

420 CacheBlk::invalidate();
421
422 _addr = MaxAddr;
423 }
424
425 void insert(const Addr addr, const bool is_secure,
426 const int src_master_ID=0, const uint32_t task_ID=0) override
427 {
428 // Set block address
429 _addr = addr;
430
431 // Set secure state
432 if (is_secure) {
433 status = BlkSecure;
434 } else {
435 status = 0;
436 }
437 }
438
439 /**
440 * Get block's address.
441 *
442 * @return addr Address value.
443 */
444 Addr getAddr() const

--- 22 unchanged lines hidden ---