diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2011-10-12 13:31:00 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2011-10-12 13:31:00 (GMT) |
commit | 044b4d6d7ba4de50cd4d05b92621900e929e2231 (patch) | |
tree | 70167cbd5c90d0f8b2fc967add38272d21de1e4f /src/arch/processor-int.h | |
parent | e8d2795d9ec2c8845641863fc42ce39f9e92906b (diff) |
Processed skipped instructions and used contexts.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@212 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/arch/processor-int.h')
-rw-r--r-- | src/arch/processor-int.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/arch/processor-int.h b/src/arch/processor-int.h index ccaaa57..9d067b1 100644 --- a/src/arch/processor-int.h +++ b/src/arch/processor-int.h @@ -46,10 +46,11 @@ - +/* Fournit un contexte propre au processeur d'une architecture. */ +typedef GProcContext * (* get_processor_context_fc) (const GArchProcessor *); /* Décode une instruction dans un flux de données. */ -typedef GArchInstruction * (* decode_instruction_fc) (const GArchProcessor *, const bin_t *, off_t *, off_t, vmpa_t); +typedef GArchInstruction * (* decode_instruction_fc) (const GArchProcessor *, GProcContext *, const bin_t *, off_t *, off_t, vmpa_t); /* Définition générique d'un processeur d'architecture (instance) */ @@ -61,6 +62,7 @@ struct _GArchProcessor MemoryDataSize memsize; /* Taille de l'espace mémoire */ MemoryDataSize inssize; /* Taille min. d'encodage */ + get_processor_context_fc get_ctx; /* Obtention d'un contexte */ decode_instruction_fc decode; /* Traduction en instructions */ }; @@ -81,6 +83,8 @@ struct _GArchProcessorClass +#define SKIPPED_INSTR ((void *)-1) + |