diff options
Diffstat (limited to 'plugins/dalvik')
-rw-r--r-- | plugins/dalvik/processor.c | 13 | ||||
-rw-r--r-- | plugins/dalvik/v35/core.c | 2 | ||||
-rw-r--r-- | plugins/dalvik/v35/processor.c | 3 |
3 files changed, 9 insertions, 9 deletions
diff --git a/plugins/dalvik/processor.c b/plugins/dalvik/processor.c index 5c5ecb6..429c431 100644 --- a/plugins/dalvik/processor.c +++ b/plugins/dalvik/processor.c @@ -83,6 +83,11 @@ static void g_dalvik_processor_class_init(GDalvikProcessorClass *klass) proc = G_ARCH_PROCESSOR_CLASS(klass); + proc->endianness = SRE_LITTLE; + proc->memsize = MDS_32_BITS; + proc->inssize = MDS_16_BITS; + proc->virt_space = false; + proc->get_ctx = (get_processor_context_fc)g_dalvik_processor_get_context; } @@ -102,14 +107,6 @@ static void g_dalvik_processor_class_init(GDalvikProcessorClass *klass) static void g_dalvik_processor_init(GDalvikProcessor *proc) { - GArchProcessor *parent; /* Instance parente */ - - parent = G_ARCH_PROCESSOR(proc); - - parent->endianness = SRE_LITTLE; - parent->memsize = MDS_32_BITS; - parent->inssize = MDS_16_BITS; - parent->virt_space = false; } diff --git a/plugins/dalvik/v35/core.c b/plugins/dalvik/v35/core.c index 7e36691..1ecaf82 100644 --- a/plugins/dalvik/v35/core.c +++ b/plugins/dalvik/v35/core.c @@ -74,7 +74,7 @@ bool init_dalvik35_core(void) register_dalvik35_gtypes(); - result = register_processor_type("dalvik35", "Dalvik Virtual Machine v35", G_TYPE_DALVIK35_PROCESSOR); + result = register_processor_type(G_TYPE_DALVIK35_PROCESSOR); return result; diff --git a/plugins/dalvik/v35/processor.c b/plugins/dalvik/v35/processor.c index b1c13d2..507373b 100644 --- a/plugins/dalvik/v35/processor.c +++ b/plugins/dalvik/v35/processor.c @@ -97,6 +97,9 @@ static void g_dalvik35_processor_class_init(GDalvik35ProcessorClass *klass) proc = G_ARCH_PROCESSOR_CLASS(klass); + proc->key = "dalvik35"; + proc->desc = "Dalvik Virtual Machine v35"; + proc->disassemble = (disass_instr_fc)g_dalvik35_processor_disassemble; } |