| 56 | } |
| 57 | |
| 58 | DecodedOp** DecodedOpCache::getLocation(U32 address) { |
| 59 | U32 pageIndex = address >> K_PAGE_SHIFT; |
| 60 | DecodedOpPageCache* page = getPageCache(pageIndex, true); |
| 61 | if (page) { |
| 62 | U32 offset = address & K_PAGE_MASK; |
| 63 | return &page->ops[offset]; |
| 64 | } |
| 65 | return nullptr; |
| 66 | } |
| 67 | |
| 68 | DecodedOp* DecodedOpCache::get(U32 address) { |
| 69 | U32 pageIndex = address >> K_PAGE_SHIFT; |
no outgoing calls
no test coverage detected