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_msp430.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_msp430.py')
| -rw-r--r-- | example/test_jit_msp430.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/example/test_jit_msp430.py b/example/test_jit_msp430.py index d725951a..00174eec 100644 --- a/example/test_jit_msp430.py +++ b/example/test_jit_msp430.py @@ -42,16 +42,16 @@ def jit_msp430_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(0x1337, lambda _: exit(0)) # 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 - myjit.vm_push_uint16_t(0x1337) + myjit.push_uint16_t(0x1337) myjit.init_run(entryp) |