Skip to content

Commit

Permalink
Mask from next_instruction_pointer instead of the instruction
Browse files Browse the repository at this point in the history
  • Loading branch information
mrmr1993 committed Dec 6, 2023
1 parent dd989db commit d24bbc6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion optimism/src/mips/interpreter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -702,7 +702,7 @@ pub fn interpret_jtype<Env: InterpreterEnv>(env: &mut Env, instr: JTypeInstructi
let instruction_pointer_high_bits = {
// FIXME: Requires a range check
let pos = env.alloc_scratch();
unsafe { env.bitmask(&instruction, 32, 28, pos) }
unsafe { env.bitmask(&next_instruction_pointer, 32, 28, pos) }
};
let target_addr =
(instruction_pointer_high_bits * Env::constant(1 << 28)) + (addr * Env::constant(1 << 2));
Expand Down

0 comments on commit d24bbc6

Please sign in to comment.