summaryrefslogtreecommitdiff
path: root/arch/msp430/src/lift.rs
diff options
context:
space:
mode:
Diffstat (limited to 'arch/msp430/src/lift.rs')
-rw-r--r--arch/msp430/src/lift.rs11
1 files changed, 3 insertions, 8 deletions
diff --git a/arch/msp430/src/lift.rs b/arch/msp430/src/lift.rs
index 6ad7b67b..124911f0 100644
--- a/arch/msp430/src/lift.rs
+++ b/arch/msp430/src/lift.rs
@@ -1,7 +1,6 @@
use crate::architecture::offset_to_absolute;
use crate::flag::{Flag, FlagWrite};
use crate::register::Register;
-use crate::Msp430;
use binaryninja::{architecture::FlagCondition, low_level_il::lifting::LowLevelILLabel};
@@ -164,11 +163,7 @@ macro_rules! conditional_jump {
};
}
-pub(crate) fn lift_instruction(
- inst: &Instruction,
- addr: u64,
- il: &MutableLiftedILFunction<Msp430>,
-) {
+pub(crate) fn lift_instruction(inst: &Instruction, addr: u64, il: &MutableLiftedILFunction) {
match inst {
Instruction::Rrc(inst) => {
let size = match inst.operand_width() {
@@ -628,8 +623,8 @@ pub(crate) fn lift_instruction(
fn lift_source_operand<'a>(
operand: &Operand,
size: usize,
- il: &'a MutableLiftedILFunction<Msp430>,
-) -> MutableLiftedILExpr<'a, Msp430, ValueExpr> {
+ il: &'a MutableLiftedILFunction,
+) -> MutableLiftedILExpr<'a, ValueExpr> {
match operand {
Operand::RegisterDirect(r) => il.reg(size, Register::try_from(*r as u32).unwrap()),
Operand::Indexed((r, offset)) => il