summaryrefslogtreecommitdiff
path: root/src/arch/instruction-int.h
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2016-10-29 11:37:13 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2016-10-29 11:37:13 (GMT)
commit38e455ebbbbf90ddbf552f95a1dfb3c544907587 (patch)
treec6e2a4763baef01c87dd0954116fb2c457e10c23 /src/arch/instruction-int.h
parent8c71b36d401b2473342daddcb9b7eb4b83ba3295 (diff)
Reduced once again the size of the main instruction structure.
Diffstat (limited to 'src/arch/instruction-int.h')
-rw-r--r--src/arch/instruction-int.h11
1 files changed, 3 insertions, 8 deletions
diff --git a/src/arch/instruction-int.h b/src/arch/instruction-int.h
index 6c9da03..e4d886b 100644
--- a/src/arch/instruction-int.h
+++ b/src/arch/instruction-int.h
@@ -41,8 +41,8 @@ typedef const char * (* get_instruction_encoding_fc) (const GArchInstruction *);
/* Ajoute à un tampon GLib le contenu de l'instance spécifiée. */
typedef GBufferLine * (* print_instruction_fc) (const GArchInstruction *, GCodeBuffer *, MemoryDataSize, const GBinContent *, AsmSyntax);
-/* Reconstruit le cache complet d'une désignation d'instruction. */
-typedef void (* build_instruction_keyword_fc) (const GArchInstruction *, AsmSyntax);
+/* Fournit le nom humain de l'instruction manipulée. */
+typedef const char * (* get_instruction_keyword_fc) (GArchInstruction *, AsmSyntax );
/* Informe sur une éventuelle référence à une autre instruction. */
typedef InstructionLinkType (* get_instruction_link_fc) (const GArchInstruction *, vmpa_t *);
@@ -55,11 +55,6 @@ struct _GArchInstruction
DL_LIST_ITEM(flow); /* Maillon de liste chaînée */
- const char *encoding; /* Encodage de l'instruction */
-
- char *suffix; /* Complément au nom affiché */
- char *cached_keyword; /* Désignation complète */
-
phys_t max_displayed_len; /* Quantité de code affichée */
ArchInstrFlag flags; /* Informations complémentaires*/
@@ -94,9 +89,9 @@ struct _GArchInstructionClass
GObjectClass parent; /* A laisser en premier */
get_instruction_encoding_fc get_encoding; /* Obtention de l'encodage */
+ get_instruction_keyword_fc get_keyword; /* Texte humain équivalent */
print_instruction_fc print; /* Imprime l'ensemble */
- build_instruction_keyword_fc build_key; /* Texte humain équivalent */
};