diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2014-10-01 20:44:39 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2014-10-01 20:44:39 (GMT) |
commit | ada6b756efd6ca109f6c46aa4d3eb11c17ad6b84 (patch) | |
tree | ef182c00ffb3881f6537e96dfa07acb875ac0846 /src/arch/arm/instruction.h | |
parent | 15c0cc127f0f4551c88de6c0d46b7d38f4b3ed4b (diff) |
Prepared the ground for the ARMv7 architecture.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@408 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/arch/arm/instruction.h')
-rw-r--r-- | src/arch/arm/instruction.h | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/src/arch/arm/instruction.h b/src/arch/arm/instruction.h index 0725726..0736015 100644 --- a/src/arch/arm/instruction.h +++ b/src/arch/arm/instruction.h @@ -25,37 +25,37 @@ #define _ARCH_ARM_INSTRUCTION_H -#include "../instruction.h" +#include <glib-object.h> +#include <stdint.h> +#include "cond.h" -#define G_TYPE_ARM_INSTRUCTION g_arm_instruction_get_type() -#define G_ARM_INSTRUCTION(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), g_arm_instruction_get_type(), GArmInstruction)) -#define G_IS_ARM_INSTRUCTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), g_arm_instruction_get_type())) -#define G_ARM_INSTRUCTION_GET_IFACE(inst) (G_TYPE_INSTANCE_GET_INTERFACE((inst), g_arm_instruction_get_type(), GArmInstructionIface)) -/* Définition générique d'une instruction d'architecture ARM (instance) */ +#define G_TYPE_ARM_INSTRUCTION g_arm_instruction_get_type() +#define G_ARM_INSTRUCTION(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), g_arm_instruction_get_type(), GArmInstruction)) +#define G_IS_ARM_INSTRUCTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), g_arm_instruction_get_type())) +#define G_ARM_INSTRUCTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), G_TYPE_ARM_INSTRUCTION, GArmInstructionClass)) +#define G_IS_ARM_INSTRUCTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), G_TYPE_ARM_INSTRUCTION)) +#define G_ARM_INSTRUCTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), G_TYPE_ARM_INSTRUCTION, GArmInstructionClass)) + + +/* Définition d'une instruction d'architecture ARM (instance) */ typedef struct _GArmInstruction GArmInstruction; -/* Définition générique d'une instruction d'architecture ARM (classe) */ +/* Définition d'une instruction d'architecture ARM (classe) */ typedef struct _GArmInstructionClass GArmInstructionClass; -/* Indique le type défini pour une instruction d'architecture ARM. */ +/* Indique le type défini pour une représentation d'une instruction ARM. */ GType g_arm_instruction_get_type(void); +/* Définit les conditions d'exécution d'une instruction ARM. */ +void g_armv7_instruction_set_cond(GArmInstruction *, ArmCondCode); - -/* --------------------- AIDE A LA MISE EN PLACE D'INSTRUCTIONS --------------------- */ - - -/* Recherche l'identifiant de la prochaine instruction. */ -//ArmOpcodes arm_guess_next_instruction(const bin_t *, off_t, off_t); - - - -/* ------------------------ AIDE A LA PHASE DE DECOMPILATION ------------------------ */ +/* Indique les conditions d'exécution d'une instruction ARM. */ +ArmCondCode g_armv7_instruction_get_cond(const GArmInstruction *); |