base.cc (13219:454ecc63338d) | base.cc (13222:0dbcc7d7d66f) |
---|---|
1/* 2 * Copyright (c) 2013,2016,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 --- 187 unchanged lines hidden (view full) --- 196 197std::string 198BaseTags::print() 199{ 200 std::string str; 201 202 auto print_blk = [&str](CacheBlk &blk) { 203 if (blk.isValid()) | 1/* 2 * Copyright (c) 2013,2016,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 --- 187 unchanged lines hidden (view full) --- 196 197std::string 198BaseTags::print() 199{ 200 std::string str; 201 202 auto print_blk = [&str](CacheBlk &blk) { 203 if (blk.isValid()) |
204 str += csprintf("\tset: %x, way: %x %s\n", blk.getSet(), 205 blk.getWay(), blk.print()); | 204 str += csprintf("\tBlock: %s\n", blk.print()); |
206 }; 207 forEachBlk(print_blk); 208 209 if (str.empty()) 210 str = "no valid tags\n"; 211 212 return str; 213} --- 91 unchanged lines hidden --- | 205 }; 206 forEachBlk(print_blk); 207 208 if (str.empty()) 209 str = "no valid tags\n"; 210 211 return str; 212} --- 91 unchanged lines hidden --- |