We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a2d666c commit 7ec987eCopy full SHA for 7ec987e
tests/regress/test_old_ctl.py
@@ -0,0 +1,14 @@
1
+import regress
2
+from unicorn import *
3
+from unicorn.x86_const import *
4
+
5
+# Very basic testing to ensure the old api exists
6
+# and we correctly implement __deprecated
7
+class OldCtl(regress.RegressTest):
8
+ def runTest(self):
9
+ mu = Uc(UC_ARCH_X86, UC_MODE_32)
10
+ mu.ctl_tlb_mode(UC_TLB_CPU)
11
+ mu.ctl_set_tlb_mode(UC_TLB_VIRTUAL)
12
13
+if __name__ == '__main__':
14
+ regress.main()
0 commit comments