The previous truncation was useless.

This commit is contained in:
Ben Vanik 2013-05-23 13:16:39 -07:00
parent 89672e111d
commit 70a9a1053e
1 changed files with 3 additions and 2 deletions

View File

@ -1279,8 +1279,9 @@ jit_value_t LibjitEmitter::TouchMemoryAddress(uint32_t cia, jit_value_t addr) {
// Input address is always in 32-bit space.
// TODO(benvanik): is this required? It's one extra instruction on every
// access...
addr = jit_insn_and(fn_, addr,
jit_value_create_nint_constant(fn_, jit_type_nuint, UINT_MAX));
addr = jit_insn_and(fn_,
jit_insn_convert(fn_, addr, jit_type_uint, 0),
jit_value_create_nint_constant(fn_, jit_type_uint, UINT_MAX));
// Add runtime memory address checks, if needed.
// if (FLAGS_memory_address_verification) {