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

Method get

source/emulation/softmmu/codePageData.cpp:68–81  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

66}
67
68DecodedOp* DecodedOpCache::get(U32 address) {
69 U32 pageIndex = address >> K_PAGE_SHIFT;
70 DecodedOpPageCache* page = getPageCache(pageIndex, false);
71 if (page) {
72 U32 offset = address & K_PAGE_MASK;
73 if (page->ops[offset] == nullptr) {
74 if (offset > 0 && page->ops[offset - 1] && page->ops[offset - 1]->lock) {
75 return page->ops[offset - 1];
76 }
77 }
78 return page->ops[offset];
79 }
80 return nullptr;
81}
82
83void DecodedOpCache::removeStartAt(U32 address, U32 len, bool becauseOfWrite) {
84 U32 pageIndex = address >> K_PAGE_SHIFT;

Callers 11

allocMethod · 0.45
preOpMethod · 0.45
JumpIfConditionMethod · 0.45
JumpInBlockMethod · 0.45
direct_jumpMethod · 0.45
calculateLongestBlockMethod · 0.45
commitJITMethod · 0.45
preOpMethod · 0.45
JumpIfConditionMethod · 0.45
JumpInBlockMethod · 0.45
direct_jumpMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected