diff options
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) + |