diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2009-06-08 12:46:23 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2009-06-08 12:46:23 (GMT) |
commit | fc8324b66dee0abf0a5e5e3cc570e1aed96b80c8 (patch) | |
tree | 04b9220e34b8bdc3449cd73e54a32c5037be5f0c /src/arch/processor.h | |
parent | dd75712aac8f70d18f07787d5d484d426600edeb (diff) |
Refreshed the panel dealing with found symbols.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@72 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/arch/processor.h')
-rw-r--r-- | src/arch/processor.h | 29 |
1 files changed, 7 insertions, 22 deletions
diff --git a/src/arch/processor.h b/src/arch/processor.h index 5726197..8529d50 100644 --- a/src/arch/processor.h +++ b/src/arch/processor.h @@ -25,31 +25,10 @@ #define _ARCH_PROCESSOR_H -#include <sys/types.h> - - -#include "operand.h" /* AsmSyntax */ -#include "instruction.h" - - - -/* FIXME : lieu de définition temporaire */ - -/* Mode d'adressage à utiliser */ -typedef enum _AdressMode -{ - ADM_32BITS, /* Adresses sur 32 bits */ - ADM_64BITS /* Adresses sur 64 bits */ - -} AdressMode; - - - - - #include <glib-object.h> +#include "instruction.h" #include "../common/endianness.h" @@ -73,6 +52,9 @@ GType g_arch_processor_get_type(void); /* Fournit le boustime du processeur d'une architecture. */ SourceEndian g_arch_processor_get_endianness(const GArchProcessor *); +/* Fournit la taille de l'espace mémoire d'une architecture. */ +MemoryDataSize g_arch_processor_get_memory_size(const GArchProcessor *); + /* Décode une instruction dans un flux de données. */ GArchInstruction *g_arch_processor_decode_instruction(const GArchProcessor *, const bin_t *, off_t *, off_t, off_t, vmpa_t); @@ -99,6 +81,9 @@ bool init_all_processors(void); /* Fournit le processeur d'architecture correspondant à un type. */ GArchProcessor *get_arch_processor_for_type(ArchProcessorType); +/* Fournit le processeur d'architecture lié à un format. */ +GArchProcessor *get_arch_processor_from_format(const exe_format *); + #endif /* _ARCH_PROCESSOR_H */ |