diff options
Diffstat (limited to 'src/analysis/block.h')
-rw-r--r-- | src/analysis/block.h | 36 |
1 files changed, 3 insertions, 33 deletions
diff --git a/src/analysis/block.h b/src/analysis/block.h index 125ff0e..223649f 100644 --- a/src/analysis/block.h +++ b/src/analysis/block.h @@ -27,40 +27,10 @@ #include <glib.h> #include <glib-object.h> +#include <stdbool.h> -#include "../arch/register.h" - - - - - - - - -/* Note sur le premier accès */ -typedef enum _RegAccessType -{ - RAT_NONE = (0 << 0), /* Registre non rencontré */ - RAT_READ = (1 << 0), /* Lecture */ - RAT_WRITE = (1 << 1) /* Ecriture */ - -} RegAccessType; - -/* Description minimale des accès à un registre */ -typedef struct _reg_access -{ - GArchRegister *reg; /* Register concerné */ - - RegAccessType first_access; /* Type du premier accès */ - vmpa_t last_write; /* Dernière écriture */ - -} reg_access; - - -/* Compare un accès registre avec un autre. */ -int compare_reg_accesses(const reg_access *, const reg_access *); - +#include "../arch/archbase.h" @@ -96,7 +66,7 @@ typedef bool (* instr_block_visitor_cb) (GInstrBlock *, BlockVisitOrder, void *) GType g_instr_block_get_type(void); /* Recherche le bloc contenant une adresse donnée. */ -GInstrBlock *g_instr_block_find_by_addr(const GInstrBlock *, vmpa_t); +GInstrBlock *g_instr_block_find_by_addr(const GInstrBlock *, vmpa_t, bool); /* Parcours tous les blocs d'instructions dans un ordre donné. */ bool g_instr_block_visit(GInstrBlock *, instr_block_visitor_cb, void *); |