| 111 | } |
| 112 | |
| 113 | void writeBackIfNeeded() |
| 114 | { |
| 115 | if (!tag.isDirtyAndValid()) |
| 116 | return; |
| 117 | |
| 118 | uptr target = addr(); |
| 119 | |
| 120 | CACHE_LOG("Write back at %zx", target); |
| 121 | if (tag.isValidPFN()) |
| 122 | *reinterpret_cast<CacheData*>(target) = data; |
| 123 | tag.clearDirty(); |
| 124 | } |
| 125 | |
| 126 | void load(uptr ppf) |
| 127 | { |
no test coverage detected