| 190 | } |
| 191 | |
| 192 | static bool findInCache(const CacheSet& set, uptr ppf, int* way) |
| 193 | { |
| 194 | auto check = [&](int checkWay) -> bool { |
| 195 | if (!set.tags[checkWay].matches(ppf)) |
| 196 | return false; |
| 197 | |
| 198 | *way = checkWay; |
| 199 | return true; |
| 200 | }; |
| 201 | |
| 202 | return check(0) || check(1); |
| 203 | } |
| 204 | |
| 205 | static int getFreeCache(u32 mem, int* way, bool validPFN) |
| 206 | { |
no test coverage detected