diff --git a/angr_platforms/risc_v/instrs_riscv/instruction_patterns.py b/angr_platforms/risc_v/instrs_riscv/instruction_patterns.py index 3cd866c..5370c08 100644 --- a/angr_platforms/risc_v/instrs_riscv/instruction_patterns.py +++ b/angr_platforms/risc_v/instrs_riscv/instruction_patterns.py @@ -94,8 +94,8 @@ def get_imm(self): return self.constant(data, Type.int_32) def get_shift_amount(self): - num = BitArray(bin=self.data['I']).int - return self.constant(num, Type.int_8) + num = BitArray(bin=self.data['I']) + return self.constant(num.uint, Type.int_8) def get_optional_func7(self): return self.data['i']