| 24 | void TLB::remove(vp_addr_t addr) { addr_space_.erase(addr); } |
| 25 | |
| 26 | char* TLB::lookup(vp_addr_t addr) { |
| 27 | auto it = addr_space_.find(addr); |
| 28 | if (it != addr_space_.end()) { |
| 29 | return it->second; |
| 30 | } else { |
| 31 | return nullptr; |
| 32 | } |
| 33 | } |
| 34 | |
| 35 | } // namespace mllm::prefix_cache |
no test coverage detected