From f5b7f5b2779b1b29e14856efd2a2e56a7c3b0113 Mon Sep 17 00:00:00 2001 From: Mason Reed Date: Fri, 31 Jan 2025 13:02:22 -0500 Subject: Add LLIL_REG_STACK_POP and LLIL_REG_STACK_PUSH to Rust API These were unhandled and x87 register stack LLIL would emit a bunch of warnings --- rust/src/low_level_il/instruction.rs | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'rust/src/low_level_il/instruction.rs') diff --git a/rust/src/low_level_il/instruction.rs b/rust/src/low_level_il/instruction.rs index 5c3010ea..b023ad49 100644 --- a/rust/src/low_level_il/instruction.rs +++ b/rust/src/low_level_il/instruction.rs @@ -227,6 +227,8 @@ where // TODO needs a real op Push(Operation<'func, A, M, F, operation::UnaryOp>), + RegStackPush(Operation<'func, A, M, F, operation::RegStackPush>), + Jump(Operation<'func, A, M, F, operation::Jump>), JumpTo(Operation<'func, A, M, F, operation::JumpTo>), @@ -278,6 +280,10 @@ where } LLIL_PUSH => LowLevelILInstructionKind::Push(Operation::new(function, op)), + LLIL_REG_STACK_PUSH => { + LowLevelILInstructionKind::RegStackPush(Operation::new(function, op)) + } + LLIL_JUMP => LowLevelILInstructionKind::Jump(Operation::new(function, op)), LLIL_JUMP_TO => LowLevelILInstructionKind::JumpTo(Operation::new(function, op)), @@ -330,6 +336,7 @@ where visit!(&op.source_expr()); } Push(ref op) => visit!(&op.operand()), + RegStackPush(ref op) => visit!(&op.source_expr()), Jump(ref op) => visit!(&op.target()), JumpTo(ref op) => visit!(&op.target()), Call(ref op) | TailCall(ref op) => visit!(&op.target()), -- cgit v1.3.1