diff options
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/arm/v7/processor.c | 9 | ||||
-rw-r--r-- | plugins/dalvik/processor.c | 6 |
2 files changed, 5 insertions, 10 deletions
diff --git a/plugins/arm/v7/processor.c b/plugins/arm/v7/processor.c index 4295b51..5bbe808 100644 --- a/plugins/arm/v7/processor.c +++ b/plugins/arm/v7/processor.c @@ -101,6 +101,8 @@ static void g_armv7_processor_class_init(GArmV7ProcessorClass *klass) object_class->dispose = (GObjectFinalizeFunc/* ! */)g_armv7_processor_dispose; object_class->finalize = (GObjectFinalizeFunc)g_armv7_processor_finalize; + proc->get_ctx = (get_processor_context_fc)g_armv7_processor_get_context; + proc->disassemble = (disass_instr_fc)g_armv7_processor_disassemble; } @@ -120,7 +122,6 @@ static void g_armv7_processor_class_init(GArmV7ProcessorClass *klass) static void g_armv7_processor_init(GArmV7Processor *proc) { - GArchProcessor *parent; /* Instance parente */ parent = G_ARCH_PROCESSOR(proc); @@ -129,12 +130,6 @@ static void g_armv7_processor_init(GArmV7Processor *proc) parent->memsize = MDS_32_BITS; parent->inssize = MDS_32_BITS; - - - - parent->get_ctx = (get_processor_context_fc)g_armv7_processor_get_context; - - } diff --git a/plugins/dalvik/processor.c b/plugins/dalvik/processor.c index 16d6644..ff8b805 100644 --- a/plugins/dalvik/processor.c +++ b/plugins/dalvik/processor.c @@ -110,6 +110,9 @@ static void g_dalvik_processor_class_init(GDalvikProcessorClass *klass) proc = G_ARCH_PROCESSOR_CLASS(klass); + proc->get_ctx = (get_processor_context_fc)g_dalvik_processor_get_context; + //proc->get_dec_ctx = (get_decomp_context_fc)g_dalvik_processor_get_decomp_context; + proc->disassemble = (disass_instr_fc)g_dalvik_processor_disassemble; } @@ -137,9 +140,6 @@ static void g_dalvik_processor_init(GDalvikProcessor *proc) parent->memsize = MDS_32_BITS; parent->inssize = MDS_16_BITS; - parent->get_ctx = (get_processor_context_fc)g_dalvik_processor_get_context; - //parent->get_dec_ctx = (get_decomp_context_fc)g_dalvik_processor_get_decomp_context; - } |