summaryrefslogtreecommitdiff
path: root/src/core/processors.h
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2021-08-12 22:00:35 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2021-08-12 22:00:35 (GMT)
commit0daed1fa6212eb83b65ccd10c9f2c80bf12c6d27 (patch)
tree4b7ba8a882f0bf9c482d7ec64a50e8d4c79a3fc9 /src/core/processors.h
parent35f435585638fdf74377c3a9c7e7c2413995d4a7 (diff)
Connect a factory for operands to all the instructions.
Diffstat (limited to 'src/core/processors.h')
-rw-r--r--src/core/processors.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/core/processors.h b/src/core/processors.h
index f95c6c2..6aa2d1e 100644
--- a/src/core/processors.h
+++ b/src/core/processors.h
@@ -30,12 +30,22 @@
#include "../arch/processor.h"
+#include "../glibext/singleton.h"
/* Assure l'enregistrement de types pour les caches à charger. */
void register_arch_gtypes(void);
+/* Met en place le fournisseur d'instances uniques d'opérandes. */
+void init_operands_factory(void);
+
+/* Fournit l'usine à opérandes pour toutes les instructions. */
+GSingletonFactory *get_operands_factory(void);
+
+/* Supprime le fournisseur d'instances uniques d'opérandes. */
+void exit_operands_factory(void);
+
/* Enregistre un processeur pour une architecture donnée. */
bool register_processor_type(GType);