summaryrefslogtreecommitdiff
path: root/plugins/arm/v7/operands/maccess.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/arm/v7/operands/maccess.c')
-rw-r--r--plugins/arm/v7/operands/maccess.c24
1 files changed, 16 insertions, 8 deletions
diff --git a/plugins/arm/v7/operands/maccess.c b/plugins/arm/v7/operands/maccess.c
index 043d801..24d5393 100644
--- a/plugins/arm/v7/operands/maccess.c
+++ b/plugins/arm/v7/operands/maccess.c
@@ -36,8 +36,8 @@ struct _GArmV7MAccessOperand
GArchOperand *base; /* Base de l'accès en mémoire */
GArchOperand *offset; /* Décalage pour l'adresse */
- GArchOperand *shift; /* Décalage pour le décalage */
- bool not_post_indexed; /* Positio du décalage */
+ GArchOperand *shift; /* Décalage pour le décallage */
+ bool post_indexed; /* Position du décalage */
bool write_back; /* Mise à jour de la base */
};
@@ -194,7 +194,7 @@ static int g_armv7_maccess_operand_compare(const GArmV7MAccessOperand *a, const
result = sort_pointer(a->shift, b->shift, (__compar_fn_t)g_arch_operand_compare);
if (result != 0) goto gamoc_done;
- result = sort_boolean(a->not_post_indexed, b->not_post_indexed);
+ result = sort_boolean(a->post_indexed, b->post_indexed);
if (result != 0) goto gamoc_done;
result = sort_boolean(a->write_back, b->write_back);
@@ -226,7 +226,7 @@ static void g_armv7_maccess_operand_print(const GArmV7MAccessOperand *operand, G
g_arch_operand_print(operand->base, line, syntax);
- if (!operand->not_post_indexed)
+ if (operand->post_indexed)
g_buffer_line_append_text(line, BLC_ASSEMBLY, "]", 1, RTT_HOOK, NULL);
if (operand->offset != NULL)
@@ -247,7 +247,7 @@ static void g_armv7_maccess_operand_print(const GArmV7MAccessOperand *operand, G
}
- if (operand->not_post_indexed)
+ if (!operand->post_indexed)
g_buffer_line_append_text(line, BLC_ASSEMBLY, "]", 1, RTT_HOOK, NULL);
if (operand->write_back)
@@ -258,11 +258,19 @@ static void g_armv7_maccess_operand_print(const GArmV7MAccessOperand *operand, G
/******************************************************************************
* *
+<<<<<<< HEAD
* Paramètres : base = représente le registre de la base d'accès. *
* offset = détermine le décalage entre l'adresse et la base. *
* shift = opération de décalage pour jouer sur le décalage. *
* indexed = précise la forme donnée au décalage à appliquer. *
* wback = indique une mise à jour de la base après usage. *
+=======
+* Paramètres : base = représente le registre de la base d'accès. *
+* offset = détermine le décallage entre l'adresse et la base. *
+* shift = opération de décallage pour jouer sur le décallage. *
+* post = précise la forme donnée au décallage à appliquer. *
+* wback = indique une mise à jour de la base après usage. *
+>>>>>>> Rewritten the whole instruction definition format.
* *
* Description : Crée un accès à la mémoire depuis une base et un décalage. *
* *
@@ -272,7 +280,7 @@ static void g_armv7_maccess_operand_print(const GArmV7MAccessOperand *operand, G
* *
******************************************************************************/
-GArchOperand *g_armv7_maccess_operand_new(GArchOperand *base, GArchOperand *offset, GArchOperand *shift, bool indexed, bool wback)
+GArchOperand *g_armv7_maccess_operand_new(GArchOperand *base, GArchOperand *offset, GArchOperand *shift, bool post, bool wback)
{
GArmV7MAccessOperand *result; /* Structure à retourner */
@@ -282,7 +290,7 @@ GArchOperand *g_armv7_maccess_operand_new(GArchOperand *base, GArchOperand *offs
result->offset = offset;
result->shift = shift;
- result->not_post_indexed = indexed;
+ result->post_indexed = post;
result->write_back = wback;
return G_ARCH_OPERAND(result);
@@ -361,7 +369,7 @@ GArchOperand *g_armv7_maccess_operand_get_shift(const GArmV7MAccessOperand *oper
bool g_armv7_maccess_operand_is_post_indexed(const GArmV7MAccessOperand *operand)
{
- return !operand->not_post_indexed;
+ return operand->post_indexed;
}