diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2017-07-12 13:07:55 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2017-07-12 13:08:42 (GMT) |
commit | a331ff258895865049bf79bc1629dbc744b7faf5 (patch) | |
tree | c4f649ba21afcacf974cc6536f03aa97663a9acd /src/arch/arm/v7/fetch.c | |
parent | 9b018cede5af54594c0a20847239233153b04ce1 (diff) |
Removed the too complex memory share system.
Diffstat (limited to 'src/arch/arm/v7/fetch.c')
-rw-r--r-- | src/arch/arm/v7/fetch.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/arch/arm/v7/fetch.c b/src/arch/arm/v7/fetch.c index 788d7ab..929c877 100644 --- a/src/arch/arm/v7/fetch.c +++ b/src/arch/arm/v7/fetch.c @@ -34,7 +34,6 @@ #include "operands/offset.h" #include "../register.h" #include "../../raw.h" -#include "../../sharing/container.h" #include "../../../format/format.h" #include "../../../format/preload.h" @@ -91,7 +90,7 @@ void help_fetching_with_instruction_b_with_orig(GArchInstruction *instr, GArchPr op = G_IMM_OPERAND(g_arch_instruction_get_operand(instr, 0)); if (g_imm_operand_get_value(op, MDS_32_BITS_SIGNED, &offset)) - g_imm_operand_set_value(&op, MDS_32_BITS_UNSIGNED, pc + offset, G_SHARE_CONTAINER(instr)); + g_imm_operand_set_value(op, MDS_32_BITS_UNSIGNED, pc + offset); else assert(0); @@ -154,7 +153,7 @@ void help_fetching_with_instruction_bl_with_orig(GArchInstruction *instr, GArchP op = G_IMM_OPERAND(g_arch_instruction_get_operand(instr, 0)); if (g_imm_operand_get_value(op, MDS_32_BITS_SIGNED, &offset)) - g_imm_operand_set_value(&op, MDS_32_BITS_UNSIGNED, pc + offset, G_SHARE_CONTAINER(instr)); + g_imm_operand_set_value(op, MDS_32_BITS_UNSIGNED, pc + offset); else assert(0); @@ -207,7 +206,7 @@ void help_fetching_with_instruction_blx_with_dest(GArchInstruction *instr, GArch op = G_IMM_OPERAND(g_arch_instruction_get_operand(instr, 0)); if (g_imm_operand_get_value(op, MDS_32_BITS_SIGNED, &offset)) - g_imm_operand_set_value(&op, MDS_32_BITS_UNSIGNED, pc + offset, G_SHARE_CONTAINER(instr)); + g_imm_operand_set_value(op, MDS_32_BITS_UNSIGNED, pc + offset); else assert(0); @@ -326,7 +325,7 @@ void help_fetching_with_instruction_cb_n_z(GArchInstruction *instr, GArchProcess op = G_IMM_OPERAND(g_arch_instruction_get_operand(instr, 1)); if (g_imm_operand_get_value(op, MDS_32_BITS_UNSIGNED, &offset)) - g_imm_operand_set_value(&op, MDS_32_BITS_UNSIGNED, pc + offset, G_SHARE_CONTAINER(instr)); + g_imm_operand_set_value(op, MDS_32_BITS_UNSIGNED, pc + offset); else assert(0); |