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 /src/arch/processor-int.h | |
| parent | 9da8f8b37e3edebc917b4e223dd2447cd7cbc818 (diff) | |
Cleaned the definition of architecture processors.
Diffstat (limited to 'src/arch/processor-int.h')
| -rw-r--r-- | src/arch/processor-int.h | 36 | 
1 files changed, 3 insertions, 33 deletions
| diff --git a/src/arch/processor-int.h b/src/arch/processor-int.h index a308bb8..00152c7 100644 --- a/src/arch/processor-int.h +++ b/src/arch/processor-int.h @@ -25,29 +25,14 @@  #define _ARCH_PROCESSOR_INT_H - - - - -/* TODO : nettoyer ! */ - -#include <stdint.h> -#include <sys/types.h> - - -#include "operand.h"        /* TODO: AsmSyntax ? */ -#include "instruction.h"  #include "processor.h" - -  /* Taille des pré-allocations pour les instructions */  #define COV_ALLOC_BLOCK 100 -  /* Fournit un contexte propre au processeur d'une architecture. */  typedef GProcContext * (* get_processor_context_fc) (const GArchProcessor *); @@ -58,7 +43,6 @@ typedef GProcContext * (* get_processor_context_fc) (const GArchProcessor *);  typedef GArchInstruction * (* disass_instr_fc) (const GArchProcessor *, GProcContext *, const GBinContent *, vmpa2t *, GExeFormat *); -  /* Description d'une erreur */  typedef struct _proc_error  { @@ -89,9 +73,6 @@ 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 #1  */ -    //get_decomp_context_fc get_dec_ctx;      /* Obtention d'un contexte #2  */ -      GArchInstruction **instructions;        /* Instructions désassemblées  */      size_t instr_count;                     /* Taille de la liste aplatie  */      unsigned int stamp;                     /* Marque de suivi des modifs  */ @@ -113,29 +94,18 @@ struct _GArchProcessor  }; - - - - - -  /* Définition générique d'un processeur d'architecture (classe) */  struct _GArchProcessorClass  {      GObjectClass parent;                    /* A laisser en premier        */ +    get_processor_context_fc get_ctx;       /* Obtention d'un contexte #1  */ +    //get_decomp_context_fc get_dec_ctx;      /* Obtention d'un contexte #2  */ +      disass_instr_fc disassemble;            /* Traduction en instructions  */  }; - -#define SKIPPED_INSTR ((void *)-1) - - - - - -  #endif  /* _ARCH_PROCESSOR_INT_H */ | 
