diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2018-01-17 20:13:15 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2018-01-17 20:13:15 (GMT) |
commit | 2dd2099b9f4d238aa7804e07bc594b5fba06e813 (patch) | |
tree | c2eb4b8d10ff7717cd48c2d831112dc5b1e65494 /plugins/arm/v7 | |
parent | 9da8f8b37e3edebc917b4e223dd2447cd7cbc818 (diff) |
Cleaned the definition of architecture processors.
Diffstat (limited to 'plugins/arm/v7')
-rw-r--r-- | plugins/arm/v7/processor.c | 9 |
1 files changed, 2 insertions, 7 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; - - } |