From 3f497bcebd9da0e60a39edcadffbc017a8509b18 Mon Sep 17 00:00:00 2001 From: Alexander Taylor Date: Thu, 22 Aug 2024 19:32:53 -0400 Subject: Fix MSP430 lifting bugs causing crashes and errors. --- arch/msp430/src/lift.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/msp430/src/lift.rs b/arch/msp430/src/lift.rs index 85d204e1..880f201d 100644 --- a/arch/msp430/src/lift.rs +++ b/arch/msp430/src/lift.rs @@ -73,6 +73,7 @@ macro_rules! one_operand { ) .append() } + Operand::Constant(val) => $il.store(2, $il.const_int(2, *val as u64), $op).append(), _ => { unreachable!() } @@ -222,7 +223,7 @@ pub(crate) fn lift_instruction(inst: &Instruction, addr: u64, il: &Lifter 2, }; let src = lift_source_operand(inst.source(), size, il); - il.push(2, src).append(); + il.push(size, src).append(); auto_increment!(inst.source(), il); } Instruction::Call(inst) => { -- cgit v1.3.1