about summary refs log tree commit diff stats
path: root/miasm2/arch/mep/jit.py
diff options
context:
space:
mode:
authorCamille Mougey <commial@gmail.com>2018-11-11 14:55:58 +0100
committerGitHub <noreply@github.com>2018-11-11 14:55:58 +0100
commitea9faf29639542b219b0343e2a87de3a81c9df4b (patch)
tree19ed391598d9e6a9098279f2f736abebc5a1e5b9 /miasm2/arch/mep/jit.py
parent8d0f34b3049e31a9b789491d468cee0b72bfe24e (diff)
parent329f058141844a2e499140d61887324c824a2d5e (diff)
downloadmiasm-ea9faf29639542b219b0343e2a87de3a81c9df4b.tar.gz
miasm-ea9faf29639542b219b0343e2a87de3a81c9df4b.zip
Merge pull request #867 from serpilliere/vm_get_int
Vm get int
Diffstat (limited to 'miasm2/arch/mep/jit.py')
-rw-r--r--miasm2/arch/mep/jit.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/miasm2/arch/mep/jit.py b/miasm2/arch/mep/jit.py
index 33eb5c3c..913d508f 100644
--- a/miasm2/arch/mep/jit.py
+++ b/miasm2/arch/mep/jit.py
@@ -91,14 +91,14 @@ class jitter_mepl(Jitter):
 
     def pop_uint16_t(self):
         regs = self.cpu.get_gpreg()
-        x = upck16(self.vm.get_mem(regs["SP"], 2))
+        x = self.vm.get_u16(regs["SP"])
         regs["SP"] += 2
         self.cpu.set_gpreg(regs)
         return x
 
     def get_stack_arg(self, n):
         regs = self.cpu.get_gpreg()
-        x = upck16(self.vm.get_mem(regs["SP"] + 2 * n, 2))
+        x = self.vm.get_u16(regs["SP"] + 2 * n)
         return x
 
     def init_run(self, *args, **kwargs):