summaryrefslogtreecommitdiff
path: root/src/arch/arm/instruction.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/arch/arm/instruction.h')
-rw-r--r--src/arch/arm/instruction.h36
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 *);