diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2014-10-07 22:07:27 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2014-10-07 22:07:27 (GMT) |
commit | a5e162d47a574f334b172dfee3128a40e8d52fb3 (patch) | |
tree | 5816a46365d196f40ac39fed884a9ee20fb44194 /src/arch/register-int.h | |
parent | 1d5f7f28f92251dc4d3bff8d87b3e3052ab9cab2 (diff) |
Created a compiler for architecture instruction definitions.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@410 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/arch/register-int.h')
-rw-r--r-- | src/arch/register-int.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/src/arch/register-int.h b/src/arch/register-int.h index fe9db8c..bf2ad75 100644 --- a/src/arch/register-int.h +++ b/src/arch/register-int.h @@ -28,6 +28,12 @@ #include "register.h" +#include "operand-int.h" + + + +/* ---------------------------- PUR REGISTRE DU MATERIEL ---------------------------- */ + /* Produit une empreinte à partir d'un registre. */ typedef guint (* reg_hash_fc) (const GArchRegister *); @@ -69,4 +75,27 @@ struct _GArchRegisterClass +/* ------------------------- REGISTRE SOUS FORME D'OPERANDE ------------------------- */ + + +/* Définition d'un opérande visant un registre (instance) */ +struct _GRegisterOperand +{ + GArchOperand parent; /* Instance parente */ + + GArchRegister *reg; /* Registre représenté */ + bool is_written; /* Changement de contenu */ + +}; + + +/* Définition d'un opérande visant un registre (classe) */ +struct _GRegisterOperandClass +{ + GArchOperandClass parent; /* Classe parente */ + +}; + + + #endif /* _ARCH_REGISTER_INT_H */ |