From d42abdc674907076fd3cab75e5cdc6e246d83880 Mon Sep 17 00:00:00 2001 From: Ajax Date: Wed, 23 Mar 2016 12:53:31 +0100 Subject: JitCore: update disbloc signature (and docstring) --- miasm2/jitter/jitcore.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/miasm2/jitter/jitcore.py b/miasm2/jitter/jitcore.py index 9cccdeff..74c438a7 100644 --- a/miasm2/jitter/jitcore.py +++ b/miasm2/jitter/jitcore.py @@ -122,8 +122,11 @@ class JitCore(object): b.irblocs = irblocs self.jitirblocs(b.label, irblocs) - def disbloc(self, addr, cpu, vm): - "Disassemble a new bloc and JiT it" + def disbloc(self, addr, vm): + """Disassemble a new bloc and JiT it + @addr: address of the block to disassemble (asm_label or int) + @vm: VmMngr instance + """ # Get the bloc if isinstance(addr, asmbloc.asm_label): @@ -181,7 +184,7 @@ class JitCore(object): if not lbl in self.lbl2jitbloc: # Need to JiT the bloc - self.disbloc(lbl, cpu, vm) + self.disbloc(lbl, vm) # Run the bloc and update cpu/vmmngr state ret = self.jit_call(lbl, cpu, vm, breakpoints) -- cgit 1.4.1