diff options
Diffstat (limited to 'src/arch/processor-int.h')
-rw-r--r-- | src/arch/processor-int.h | 27 |
1 files changed, 19 insertions, 8 deletions
diff --git a/src/arch/processor-int.h b/src/arch/processor-int.h index 34ba66a..6187ff0 100644 --- a/src/arch/processor-int.h +++ b/src/arch/processor-int.h @@ -36,6 +36,18 @@ /* Fournit la désignation interne du processeur d'architecture. */ typedef char * (* get_processor_key_fc) (const GArchProcessor *); +/* Fournit le nom humain de l'architecture visée. */ +typedef char * (* get_processor_desc_fc) (const GArchProcessor *); + +/* Fournit la taille de l'espace mémoire d'une architecture. */ +typedef MemoryDataSize (* get_processor_memsize_fc) (const GArchProcessor *); + +/* Fournit la taille min. des instructions d'une architecture. */ +typedef MemoryDataSize (* get_processor_inssize_fc) (const GArchProcessor *); + +/* Indique si l'architecture possède un espace virtuel ou non. */ +typedef bool (* has_processor_vspace_fc) (const GArchProcessor *); + /* Fournit un contexte propre au processeur d'une architecture. */ typedef GProcContext * (* get_processor_context_fc) (const GArchProcessor *); @@ -69,6 +81,8 @@ struct _GArchProcessor { GObject parent; /* A laisser en premier */ + SourceEndian endianness; /* Boutisme de l'architecture */ + GArchInstruction **instructions; /* Instructions désassemblées */ size_t instr_count; /* Taille de la liste aplatie */ unsigned int stamp; /* Marque de suivi des modifs */ @@ -95,16 +109,13 @@ struct _GArchProcessorClass { GObjectClass parent; /* A laisser en premier */ - const char *desc; /* Description humaine liée */ - - SourceEndian endianness; /* Boutisme de l'architecture */ - MemoryDataSize memsize; /* Taille de l'espace mémoire */ - MemoryDataSize inssize; /* Taille min. d'encodage */ - bool virt_space; /* Présence d'espace virtuel ? */ - get_processor_key_fc get_key; /* Code représentant la classe */ - get_processor_context_fc get_ctx; /* Obtention d'un contexte */ + get_processor_desc_fc get_desc; /* Description humaine */ + get_processor_memsize_fc get_memsize; /* Taille d'un mot classique */ + get_processor_inssize_fc get_inssize; /* Taille minimale d'instruct° */ + has_processor_vspace_fc has_vspace; /* Présence d'un espace virtuel*/ + get_processor_context_fc get_ctx; /* Obtention d'un contexte */ disass_instr_fc disassemble; /* Traduction en instructions */ /* Signaux */ |