about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorserpilliere <serpilliere@users.noreply.github.com>2020-04-15 14:54:27 +0200
committerGitHub <noreply@github.com>2020-04-15 14:54:27 +0200
commitcdb64fcd6bb2db4b9e70812a66f01b321a74738c (patch)
tree33ec7a3bc8f3917587f81abe395e2bfbb41230fc
parent5b33db2100c1c3cad3be9fbe12c2e9286d007323 (diff)
parent99fe136826465389c87dec99d9a8d1b727e4ed71 (diff)
downloadmiasm-cdb64fcd6bb2db4b9e70812a66f01b321a74738c.tar.gz
miasm-cdb64fcd6bb2db4b9e70812a66f01b321a74738c.zip
Merge pull request #1184 from WilliamBruneau/cpu_set_mem
Fix cpu.set_mem() -> vm.set_mem()
-rw-r--r--miasm/os_dep/linux/syscall.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/miasm/os_dep/linux/syscall.py b/miasm/os_dep/linux/syscall.py
index c45f4b22..3b1275aa 100644
--- a/miasm/os_dep/linux/syscall.py
+++ b/miasm/os_dep/linux/syscall.py
@@ -401,7 +401,7 @@ def sys_x86_64_arch_prctl(jitter, linux_env):
         jitter.cpu.set_segm_base(jitter.cpu.FS, addr)
     elif code == 0x3001:
         # CET status (disabled)
-        jitter.cpu.set_mem(addr, pck64(0))
+        jitter.vm.set_mem(addr, pck64(0))
     else:
         raise RuntimeError("Not implemented")
     jitter.cpu.RAX = 0