| 471 | } |
| 472 | |
| 473 | std::optional<CacheEntry> SharedCache::GetEntryWithImage(const CacheImage& image) const |
| 474 | { |
| 475 | for (const auto& entry : m_entries) |
| 476 | { |
| 477 | for (const auto& [_, currentImage] : entry.GetImages()) |
| 478 | { |
| 479 | if (currentImage.address == image.headerAddress) |
| 480 | return entry; |
| 481 | } |
| 482 | } |
| 483 | |
| 484 | return std::nullopt; |
| 485 | } |
| 486 | |
| 487 | std::optional<CacheRegion> SharedCache::GetRegionAt(const uint64_t address) const |
| 488 | { |