diff options
| author | serpilliere <fabrice.desclaux@cea.fr> | 2015-04-19 00:24:32 +0200 |
|---|---|---|
| committer | serpilliere <fabrice.desclaux@cea.fr> | 2015-04-22 18:37:56 +0200 |
| commit | 5699ee60b9052a936fa1e511a4cc455cfe8b8dc4 (patch) | |
| tree | 68f6d538a9ef16edc7aa5730320796d550c5cd91 /miasm2/jitter/Jittcc.c | |
| parent | 49343533ce23277187d526f1b86f84307b77200a (diff) | |
| download | miasm-5699ee60b9052a936fa1e511a4cc455cfe8b8dc4.tar.gz miasm-5699ee60b9052a936fa1e511a4cc455cfe8b8dc4.zip | |
Jitter: Factorize common cpu attributes in JitCpu; Update APIs in consequence
Diffstat (limited to 'miasm2/jitter/Jittcc.c')
| -rw-r--r-- | miasm2/jitter/Jittcc.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/miasm2/jitter/Jittcc.c b/miasm2/jitter/Jittcc.c index 49035fc4..d146aaf4 100644 --- a/miasm2/jitter/Jittcc.c +++ b/miasm2/jitter/Jittcc.c @@ -127,14 +127,13 @@ typedef struct { PyObject* tcc_exec_bloc(PyObject* self, PyObject* args) { - void (*func)(block_id*, void*, void*); - uint64_t vm; - uint64_t cpu; + void (*func)(block_id*, PyObject*); + PyObject* jitcpu; block_id BlockDst = {0, 0}; - if (!PyArg_ParseTuple(args, "KKK", &func, &cpu, &vm)) + if (!PyArg_ParseTuple(args, "KO", &func, &jitcpu)) return NULL; - func(&BlockDst, (void*)cpu, (void*)vm); + func(&BlockDst, jitcpu); if (BlockDst.is_local == 1) { fprintf(stderr, "return on local label!\n"); |