diff options
| author | serpilliere <serpilliere@users.noreply.github.com> | 2016-04-26 19:49:09 +0200 |
|---|---|---|
| committer | serpilliere <serpilliere@users.noreply.github.com> | 2016-04-26 19:49:09 +0200 |
| commit | d9b1edbf47f6ab253372286cd3508d30b4339e53 (patch) | |
| tree | 8331223a89590c7caca0180402d81b66c5d6e609 /test/arch/x86/qemu/testqemu.py | |
| parent | 46095b1b68d5edf9c695b5e11bdc84897f966dbe (diff) | |
| parent | f0450aacb0d0c5b229e98d79605e47ec78769b10 (diff) | |
| download | miasm-d9b1edbf47f6ab253372286cd3508d30b4339e53.tar.gz miasm-d9b1edbf47f6ab253372286cd3508d30b4339e53.zip | |
Merge pull request #362 from commial/test-qemu-sse
Test qemu sse
Diffstat (limited to 'test/arch/x86/qemu/testqemu.py')
| -rw-r--r-- | test/arch/x86/qemu/testqemu.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/arch/x86/qemu/testqemu.py b/test/arch/x86/qemu/testqemu.py index a7df4fe4..65d5825a 100644 --- a/test/arch/x86/qemu/testqemu.py +++ b/test/arch/x86/qemu/testqemu.py @@ -6,6 +6,7 @@ from pdb import pm from miasm2.analysis.sandbox import Sandbox_Linux_x86_32 from miasm2.jitter.jitload import log_func +from miasm2.jitter.csts import PAGE_READ, PAGE_WRITE from miasm2.os_dep.win_api_x86_32 import get_str_ansi, upck32 # Utils @@ -126,6 +127,12 @@ except AttributeError: log_func.setLevel(logging.ERROR) +# Segmentation +sb.jitter.cpu.set_segm_base(8, 0x7fff0000) +sb.jitter.cpu.GS = 8 +sb.jitter.vm.add_memory_page(0x7fff0000 + 0x14, PAGE_READ | PAGE_WRITE, "AAAA") + + # Run sb.run(addr) |