Skip to content

Commit

Permalink
Fix small typo
Browse files Browse the repository at this point in the history
  • Loading branch information
wtdcode committed Oct 19, 2024
1 parent 28ff8d8 commit 16916b2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bindings/python/unicorn/unicorn_py3/unicorn.py
Original file line number Diff line number Diff line change
Expand Up @@ -1104,7 +1104,7 @@ def __hook_tcg_op_cb(uc: Uc, address: int, arg1: int, arg2: int, size: int, key:

return (__hook_tcg_op_cb, opcode, flags)

def __hok_tlb_fill():
def __hook_tlb_fill():
@uccallback(self, HOOK_TLB_FILL_CFUNC)
def __hook_tlb_fill_cb(uc: Uc, vaddr: int, access: int, entry: ctypes._Pointer[uc_tlb_entry], key: int):
callback(uc, vaddr, access, entry.contents, user_data)
Expand All @@ -1129,7 +1129,7 @@ def __hook_tlb_fill_cb(uc: Uc, vaddr: int, access: int, entry: ctypes._Pointer[u
uc.UC_HOOK_INSN_INVALID : __hook_invalid_insn,
uc.UC_HOOK_EDGE_GENERATED : __hook_edge_gen,
uc.UC_HOOK_TCG_OPCODE : __hook_tcg_opcode,
uc.UC_HOOK_TLB_FILL : __hok_tlb_fill
uc.UC_HOOK_TLB_FILL : __hook_tlb_fill
}

# the same callback may be registered for multiple hook types if they
Expand Down

0 comments on commit 16916b2

Please sign in to comment.