From 0ba69d6b2fbc90193d8fe196099350f712c8aa04 Mon Sep 17 00:00:00 2001 From: Mio Date: Tue, 28 Mar 2023 15:12:01 +0800 Subject: [PATCH] Add tlb_mode for python --- bindings/python/unicorn/unicorn.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bindings/python/unicorn/unicorn.py b/bindings/python/unicorn/unicorn.py index 0aacfb13..e893d6fe 100644 --- a/bindings/python/unicorn/unicorn.py +++ b/bindings/python/unicorn/unicorn.py @@ -806,6 +806,9 @@ class Uc(object): def ctl_flush_tb(self): self.ctl(self.__ctl_w(uc.UC_CTL_TB_FLUSH, 0)) + def ctl_tlb_mode(self, mode: int): + self.__ctl_w_1_arg(uc.UC_CTL_TLB_TYPE, mode, ctypes.c_int) + # add a hook 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): _h2 = uc_hook_h()