diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2020-02-17 09:59:45 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2020-02-17 09:59:45 (GMT) |
commit | 838ed83634c445e4ba1b15998f4ad50d1e7503c9 (patch) | |
tree | dfd7a6b5be9217723d69742da868df8404da1ff1 /plugins/arm/v7/arm.c | |
parent | 5108aad8eb7b20a14c1e7d9e084af2272035192d (diff) |
Relocated the undefined instructions.
Diffstat (limited to 'plugins/arm/v7/arm.c')
-rw-r--r-- | plugins/arm/v7/arm.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/plugins/arm/v7/arm.c b/plugins/arm/v7/arm.c index 3081f89..6cd40bb 100644 --- a/plugins/arm/v7/arm.c +++ b/plugins/arm/v7/arm.c @@ -27,7 +27,7 @@ #include <stdint.h> -#include <arch/undefined.h> +#include <arch/instructions/undefined.h> #include <common/bconst.h> @@ -2060,7 +2060,7 @@ static GArchInstruction *process_armv7_arm_coprocessor_instructions_and_supervis op = (raw >> 4) & 0x1; if ((op1 & b111110) == b000000) - result = g_undef_instruction_new(IBS_UNDEFINED); + result = g_undef_instruction_new(IEB_UNDEFINED); else if ((op1 & b110000) == b110000) result = armv7_read_arm_instr_a8_svc_previously_swi(raw); @@ -2246,20 +2246,20 @@ static GArchInstruction *process_armv7_arm_memory_hints_advanced_simd_instructio result = process_armv7_arm_advanced_simd_element_or_structure_load_store_instructions(raw); else if ((op1 & b1110111) == b1000001) - result = g_undef_instruction_new(IBS_NOP); + result = g_undef_instruction_new(IEB_NOP); else if ((op1 & b1110111) == b1000101) result = armv7_read_arm_instr_a8_pli_immediate_literal(raw); else if ((op1 & b1110011) == b1000011) - result = g_undef_instruction_new(IBS_UNPREDICTABLE); + result = g_undef_instruction_new(IEB_UNPREDICTABLE); else if ((op1 & b1110111) == b1010101) { if (rn != b1111) result = armv7_read_arm_instr_a8_pld_pldw_immediate(raw); else - result = g_undef_instruction_new(IBS_UNPREDICTABLE); + result = g_undef_instruction_new(IEB_UNPREDICTABLE); } @@ -2273,18 +2273,18 @@ static GArchInstruction *process_armv7_arm_memory_hints_advanced_simd_instructio } else if (op1 == b1010011) - result = g_undef_instruction_new(IBS_UNPREDICTABLE); + result = g_undef_instruction_new(IEB_UNPREDICTABLE); else if (op1 == b1010111) { if (op2 == b0000) - result = g_undef_instruction_new(IBS_UNPREDICTABLE); + result = g_undef_instruction_new(IEB_UNPREDICTABLE); else if (op2 == b0001) result = armv7_read_arm_instr_a8_clrex(raw); else if ((op2 & b1110) == b0010) - result = g_undef_instruction_new(IBS_UNPREDICTABLE); + result = g_undef_instruction_new(IEB_UNPREDICTABLE); else if (op2 == b0100) result = armv7_read_arm_instr_a8_dsb(raw); @@ -2296,18 +2296,18 @@ static GArchInstruction *process_armv7_arm_memory_hints_advanced_simd_instructio result = armv7_read_arm_instr_a8_isb(raw); else if (op2 == b0111) - result = g_undef_instruction_new(IBS_UNPREDICTABLE); + result = g_undef_instruction_new(IEB_UNPREDICTABLE); else if ((op2 & b1000) == b1000) - result = g_undef_instruction_new(IBS_UNPREDICTABLE); + result = g_undef_instruction_new(IEB_UNPREDICTABLE); } else if ((op1 & b1111011) == b1011011) - result = g_undef_instruction_new(IBS_UNPREDICTABLE); + result = g_undef_instruction_new(IEB_UNPREDICTABLE); else if ((op1 & b1110111) == b1100001 && (op2 & b0001) == b0000) - result = g_undef_instruction_new(IBS_NOP); + result = g_undef_instruction_new(IEB_NOP); else if ((op1 & b1110111) == b1100101 && (op2 & b0001) == b0000) result = armv7_read_arm_instr_a8_pli_register(raw); @@ -3157,7 +3157,7 @@ static GArchInstruction *process_armv7_arm_one_register_and_a_modified_immediate result = armv7_read_arm_instr_a8_vmov_immediate(raw); else if (cmode == b1111) - result = g_undef_instruction_new(IBS_UNDEFINED); + result = g_undef_instruction_new(IEB_UNDEFINED); } |