diff options
| author | Ajax <commial@gmail.com> | 2016-03-23 12:53:31 +0100 |
|---|---|---|
| committer | Ajax <commial@gmail.com> | 2016-03-23 12:53:31 +0100 |
| commit | d42abdc674907076fd3cab75e5cdc6e246d83880 (patch) | |
| tree | b4da00be35af4036806533f8cd6ec561ff538100 | |
| parent | 00c4f9f0a9d9ba321f848b04e6fa17713db668c3 (diff) | |
| download | miasm-d42abdc674907076fd3cab75e5cdc6e246d83880.tar.gz miasm-d42abdc674907076fd3cab75e5cdc6e246d83880.zip | |
JitCore: update disbloc signature (and docstring)
| -rw-r--r-- | miasm2/jitter/jitcore.py | 9 |
1 files 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) |