This commit is contained in:
lazymio 2022-05-10 23:06:14 +02:00
parent aab035e8c3
commit 15aa4ed53a
No known key found for this signature in database
GPG Key ID: DFF27E34A47CB873
1 changed files with 2 additions and 0 deletions

View File

@ -696,6 +696,8 @@ class Uc(object):
def _hook_insn_sys_cb(self, handle, reg, pcp_reg, user_data):
cp_reg = ctypes.cast(pcp_reg, ctypes.POINTER(uc_arm64_cp_reg)).contents
uc_arm64_cp_reg_tuple = namedtuple("uc_arm64_cp_reg_tuple", ["crn", "crm", "op0", "op1", "op2", "val"])
(cb, data) = self._callbacks[user_data]
return cb(self, reg, uc_arm64_cp_reg_tuple(cp_reg.crn, cp_reg.crm, cp_reg.op0, cp_reg.op1, cp_reg.op2, cp_reg.val), data)