summaryrefslogtreecommitdiff
path: root/src/arch/instruction-int.h
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2009-05-17 22:59:55 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2009-05-17 22:59:55 (GMT)
commit4d0ff0c23862c242d533d9b2d34e8812ef99ad61 (patch)
tree3b8504b8d3946a8bc9a702b819138ab1e5501be6 /src/arch/instruction-int.h
parent96cb6971ee3ca529958b8cb1e8e55a6eb4e60eae (diff)
Used only the new format of processor/instructions/operands for x86.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@64 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/arch/instruction-int.h')
-rw-r--r--src/arch/instruction-int.h73
1 files changed, 1 insertions, 72 deletions
diff --git a/src/arch/instruction-int.h b/src/arch/instruction-int.h
index c80c20a..f61485f 100644
--- a/src/arch/instruction-int.h
+++ b/src/arch/instruction-int.h
@@ -25,64 +25,8 @@
#define _ARCH_INSTRUCTION_INT_H
-#include "instruction.h"
-
-
-#include "operand-int.h" /* TODO: remove me */
-
-
-
-
-#define MAX_OPERANDS 4
-
-
-#define DB_OPCODE 0x00
-
-
-#if 0
-/* Typage des instructions rencontrées */
-typedef enum _AsmInstrType
-{
- AIT_OTHER, /* Instruction inintéressante */
-
- AIT_DB, /* Instruction non décodée */
-
- AIT_PUSH, /* Empilement de valeur */
- AIT_POP, /* Dépilement de valeur */
- AIT_JUMP, /* Saut à une adresse */
-
- AIT_CALL /* Appel d'une fonction */
-
-} AsmInstrType;
-#endif
-
-
-/* Définition générique d'une instruction */
-struct _asm_instr
-{
- uint8_t opcode;
-
- uint64_t vaddress; /* Adresse virtuelle associée */
-
- off_t offset; /* Position physique de départ */
- off_t length; /* Taille de l'instruction */
-
- int/*AsmInstrType*/ type; /* Type d'instruction */
-
- asm_operand **operands; /* Liste des opérandes */
- size_t operands_count; /* Nbre. d'opérandes utilisées */
-
-
-};
-
-#define ASM_INSTRUCTION(instr) ((asm_instr *)instr)
-
-
-
-
-
-
#include "archbase.h"
+#include "instruction.h"
@@ -110,9 +54,6 @@ struct _GArchInstruction
};
-
-
-
/* Définition générique d'une instruction d'architecture (classe) */
struct _GArchInstructionClass
{
@@ -122,16 +63,4 @@ struct _GArchInstructionClass
-
-
-
-
-
-
-
-
-
-
-
-
#endif /* _ARCH_INSTRUCTION_INT_H */