cache.cc (12551:a5016c69f510) | cache.cc (12552:5615a3de961f) |
---|---|
1/* 2 * Copyright (c) 2010-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 --- 1888 unchanged lines hidden (view full) --- 1897 if (blk == nullptr) { 1898 // No replaceable block or a mostly exclusive 1899 // cache... just use temporary storage to complete the 1900 // current request and then get rid of it 1901 assert(!tempBlock->isValid()); 1902 blk = tempBlock; 1903 tempBlock->set = tags->extractSet(addr); 1904 tempBlock->tag = tags->extractTag(addr); | 1/* 2 * Copyright (c) 2010-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 --- 1888 unchanged lines hidden (view full) --- 1897 if (blk == nullptr) { 1898 // No replaceable block or a mostly exclusive 1899 // cache... just use temporary storage to complete the 1900 // current request and then get rid of it 1901 assert(!tempBlock->isValid()); 1902 blk = tempBlock; 1903 tempBlock->set = tags->extractSet(addr); 1904 tempBlock->tag = tags->extractTag(addr); |
1905 // @todo: set security state as well... | 1905 if (is_secure) { 1906 tempBlock->status |= BlkSecure; 1907 } |
1906 DPRINTF(Cache, "using temp block for %#llx (%s)\n", addr, 1907 is_secure ? "s" : "ns"); 1908 } else { 1909 tags->insertBlock(pkt, blk); 1910 } 1911 1912 // we should never be overwriting a valid block 1913 assert(!blk->isValid()); --- 969 unchanged lines hidden --- | 1908 DPRINTF(Cache, "using temp block for %#llx (%s)\n", addr, 1909 is_secure ? "s" : "ns"); 1910 } else { 1911 tags->insertBlock(pkt, blk); 1912 } 1913 1914 // we should never be overwriting a valid block 1915 assert(!blk->isValid()); --- 969 unchanged lines hidden --- |