diff options
| author | Fabrice Desclaux <fabrice.desclaux@cea.fr> | 2014-10-07 17:44:50 +0200 |
|---|---|---|
| committer | Fabrice Desclaux <fabrice.desclaux@cea.fr> | 2014-10-07 17:44:50 +0200 |
| commit | 809d3738bb845d5b6d08e348e9a8a03e62536121 (patch) | |
| tree | 8591cb2d9675bc5710ab8bdfe1111f0b93cdd5d5 /example/test_jit_x86_32.py | |
| parent | 10b4c8a8b46b5e247768f6f55bf9a9f006fdd61c (diff) | |
| download | miasm-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_x86_32.py')
| -rw-r--r-- | example/test_jit_x86_32.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/example/test_jit_x86_32.py b/example/test_jit_x86_32.py index 44696c74..8ba39bb3 100644 --- a/example/test_jit_x86_32.py +++ b/example/test_jit_x86_32.py @@ -30,11 +30,11 @@ myjit.init_stack() data = open(args.filename).read() run_addr = 0x40000000 -myjit.vm.vm_add_memory_page(run_addr, PAGE_READ | PAGE_WRITE, data) +myjit.vm.add_memory_page(run_addr, PAGE_READ | PAGE_WRITE, data) myjit.jit.log_regs = True myjit.jit.log_mn = True -myjit.vm_push_uint32_t(0x1337beef) +myjit.push_uint32_t(0x1337beef) myjit.add_breakpoint(0x1337beef, code_sentinelle) |