| 1204 | } |
| 1205 | |
| 1206 | static 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 | |
| 1219 | RegPtr JitCodeGen::read(JitWidth width, MemPtr mem, RegPtr result) { |
| 1220 | if (!mem->emulatedAddress) { |