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

Function doesSpanPage

source/emulation/cpu/jit/jitCodeGen.cpp:1206–1217  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1204}
1205
1206static bool doesSpanPage(JitWidth width, U32 offset) {
1207 if (width == JitWidth::b8) {
1208 return false;
1209 } else if (width == JitWidth::b16) {
1210 return (offset & 0xFFF) == 0xFFF;
1211 } else if (width == JitWidth::b32) {
1212 return (offset & 0xFFF) >= 0xFFD;
1213 } else {
1214 kpanic("doesSpanPage");
1215 return true;
1216 }
1217}
1218
1219RegPtr JitCodeGen::read(JitWidth width, MemPtr mem, RegPtr result) {
1220 if (!mem->emulatedAddress) {

Callers 2

readMethod · 0.85
writeMethod · 0.85

Calls 1

kpanicFunction · 0.85

Tested by

no test coverage detected