Skip to content

Commit 744d628

Browse files
committed
Fix x7l
1 parent 11b4782 commit 744d628

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/instructions/execute.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1518,7 +1518,7 @@ pub fn handle_lpad<Mac: Machine>(machine: &mut Mac, inst: Instruction) -> Result
15181518
}
15191519
// If landing pad label not matched -> software-check exception
15201520
let lpl = Utype(inst).immediate_u();
1521-
let x7l = machine.registers()[T2].to_u32() & 0xFFFFF000;
1521+
let x7l = (machine.registers()[T2].to_u32() & 0xFFFFF000) >> 12;
15221522
if lpl != x7l && lpl != 0 {
15231523
return Err(Error::ShadowStackSoftwareCheckException);
15241524
}

0 commit comments

Comments
 (0)