about summary refs log tree commit diff stats
path: root/example/test_jit_mips32.py
diff options
context:
space:
mode:
authorFabrice Desclaux <fabrice.desclaux@cea.fr>2014-10-07 17:44:50 +0200
committerFabrice Desclaux <fabrice.desclaux@cea.fr>2014-10-07 17:44:50 +0200
commit809d3738bb845d5b6d08e348e9a8a03e62536121 (patch)
tree8591cb2d9675bc5710ab8bdfe1111f0b93cdd5d5 /example/test_jit_mips32.py
parent10b4c8a8b46b5e247768f6f55bf9a9f006fdd61c (diff)
downloadmiasm-809d3738bb845d5b6d08e348e9a8a03e62536121.tar.gz
miasm-809d3738bb845d5b6d08e348e9a8a03e62536121.zip
Remove vm_ prefix /!\ API MODIF
The jitter cpu/vm modules used an unecessary vm_ prefix for various api.

jitter.cpu.vm_get_gpreg() => jitter.cpu.get_gpreg()
jitter.vm.vm_get_mem... => jitter.vm.get_mem...
Diffstat (limited to 'example/test_jit_mips32.py')
-rw-r--r--example/test_jit_mips32.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/example/test_jit_mips32.py b/example/test_jit_mips32.py
index 5dd9175d..42188ab8 100644
--- a/example/test_jit_mips32.py
+++ b/example/test_jit_mips32.py
@@ -48,12 +48,12 @@ def jit_mips32_binary(args):
     myjit.jit.log_mn = args.log_mn
     myjit.jit.log_newbloc = args.log_newbloc
 
-    myjit.vm.vm_add_memory_page(0, PAGE_READ | PAGE_WRITE, open(filepath).read())
+    myjit.vm.add_memory_page(0, PAGE_READ | PAGE_WRITE, open(filepath).read())
     myjit.add_breakpoint(0x1337BEEF, code_sentinelle)
 
 
     # for stack
-    myjit.vm.vm_add_memory_page(0xF000, PAGE_READ | PAGE_WRITE, "\x00"*0x1000)
+    myjit.vm.add_memory_page(0xF000, PAGE_READ | PAGE_WRITE, "\x00"*0x1000)
 
     myjit.cpu.SP = 0xF800