Skip to content

Commit

Permalink
Don't treat rMSR r value as a vex offset, treat it as a register
Browse files Browse the repository at this point in the history
  • Loading branch information
twizmwazin committed Nov 30, 2023
1 parent 2eed255 commit bc8e5a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyvex/lifting/gym/arm_spotter.py
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ class Instruction_tMSR(ThumbInstruction):

def compute_result(self): # pylint: disable=arguments-differ
dest_spec_reg = int(self.data["x"], 2)
src_reg = int(self.data["r"], 2)
src_reg = f"r{int(self.data['r'], 2)}"

# If 0, do not write the SPSR
if self.data["R"] == "0":
Expand Down

0 comments on commit bc8e5a2

Please sign in to comment.