summaryrefslogtreecommitdiff
path: root/src/arch/processor.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/arch/processor.h')
-rw-r--r--src/arch/processor.h18
1 files changed, 16 insertions, 2 deletions
diff --git a/src/arch/processor.h b/src/arch/processor.h
index f0f9b55..02b3533 100644
--- a/src/arch/processor.h
+++ b/src/arch/processor.h
@@ -44,10 +44,10 @@
-/* Ligne de représentation générique (instance) */
+/* Définition générique d'un processeur d'architecture (instance) */
typedef struct _GArchProcessor GArchProcessor;
-/* Ligne de représentation générique (classe) */
+/* Définition générique d'un processeur d'architecture (classe) */
typedef struct _GArchProcessorClass GArchProcessorClass;
@@ -74,6 +74,20 @@ GArchInstruction *g_arch_processor_disassemble(const GArchProcessor *, GProcCont
+/* ------------------ RASSEMBLEMENT DES INSTRUCTIONS DESASSEMBLEES ------------------ */
+
+
+/* Protège ou lève la protection de l'accès aux instructions. */
+void g_arch_processor_lock_unlock(GArchProcessor *, bool);
+
+#define g_arch_processor_lock(p) g_arch_processor_lock_unlock(p, true)
+#define g_arch_processor_unlock(p) g_arch_processor_lock_unlock(p, false)
+
+/* Fournit la marque de dernière modification des instructions. */
+unsigned int g_arch_processor_get_stamp(const GArchProcessor *);
+
+
+
/* ------------------ MANIPULATIONS DES INSTRUCTIONS DESASSEMBLEES ------------------ */