Skip to content

Commit 0ba69d6

Browse files
wtdcodePhilippTakacs
authored andcommittedMar 28, 2023
Add tlb_mode for python
1 parent 9c01d23 commit 0ba69d6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed
 

‎bindings/python/unicorn/unicorn.py

+3
Original file line numberDiff line numberDiff line change
@@ -806,6 +806,9 @@ def ctl_request_cache(self, addr: int):
806806
def ctl_flush_tb(self):
807807
self.ctl(self.__ctl_w(uc.UC_CTL_TB_FLUSH, 0))
808808

809+
def ctl_tlb_mode(self, mode: int):
810+
self.__ctl_w_1_arg(uc.UC_CTL_TLB_TYPE, mode, ctypes.c_int)
811+
809812
# add a hook
810813
def hook_add(self, htype: int, callback: UC_HOOK_CALLBACK_TYPE , user_data: Any=None, begin: int=1, end: int=0, arg1: int=0, arg2: int=0):
811814
_h2 = uc_hook_h()

0 commit comments

Comments
 (0)
Please sign in to comment.