MCPcopy Create free account
hub / github.com/danoon2/Boxedwine / getLocation

Method getLocation

source/emulation/softmmu/codePageData.cpp:58–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56}
57
58DecodedOp** 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
68DecodedOp* DecodedOpCache::get(U32 address) {
69 U32 pageIndex = address >> K_PAGE_SHIFT;

Callers 1

getDecodedOpLocationMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected