summaryrefslogtreecommitdiff
path: root/src/arch/processor-int.h
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2014-10-06 20:52:21 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2014-10-06 20:52:21 (GMT)
commit1d5f7f28f92251dc4d3bff8d87b3e3052ab9cab2 (patch)
tree1ad4346a8cbcd8379850f68d04cb8757371c05e1 /src/arch/processor-int.h
parentada6b756efd6ca109f6c46aa4d3eb11c17ad6b84 (diff)
Got prepared to disassemble some ARMv7 instructions.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@409 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/arch/processor-int.h')
-rw-r--r--src/arch/processor-int.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/arch/processor-int.h b/src/arch/processor-int.h
index c8263f7..23a6d60 100644
--- a/src/arch/processor-int.h
+++ b/src/arch/processor-int.h
@@ -55,6 +55,9 @@ typedef GDecContext * (* get_decomp_context_fc) (const GArchProcessor *);
/* Décode une instruction dans un flux de données. */
typedef GArchInstruction * (* decode_instruction_fc) (const GArchProcessor *, GProcContext *, const bin_t *, off_t *, off_t, vmpa_t, GBinFormat *);
+/* Désassemble une instruction dans un flux de données. */
+typedef GArchInstruction * (* disass_instr_fc) (const GArchProcessor *, GProcContext *, const bin_t *, vmpa2t *, phys_t);
+
/* Définition générique d'un processeur d'architecture (instance) */
struct _GArchProcessor
@@ -82,6 +85,7 @@ struct _GArchProcessorClass
GObjectClass parent; /* A laisser en premier */
decode_instruction_fc decode; /* Traduction en instructions */
+ disass_instr_fc disassemble; /* Traduction en instructions */
};