diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2016-05-22 15:43:43 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2016-05-22 15:43:43 (GMT) |
commit | 7577eadd4e871d467f747c4927a1b1984d6a7606 (patch) | |
tree | e72a2fd5c1619e60402a678b0559079ed267eab0 /src/arch/arm/v7/opcodes | |
parent | 33aa90b022e7d711a733ca7eb62c0b285f974317 (diff) |
Extended the compiler to transform all the new ARMv7 encoding definitions.
Diffstat (limited to 'src/arch/arm/v7/opcodes')
-rw-r--r-- | src/arch/arm/v7/opcodes/opcodes_tmp_arm.h | 122 | ||||
-rw-r--r-- | src/arch/arm/v7/opcodes/opcodes_tmp_thumb_16.h | 18 | ||||
-rw-r--r-- | src/arch/arm/v7/opcodes/opcodes_tmp_thumb_32.h | 102 |
3 files changed, 0 insertions, 242 deletions
diff --git a/src/arch/arm/v7/opcodes/opcodes_tmp_arm.h b/src/arch/arm/v7/opcodes/opcodes_tmp_arm.h index c4cf3b2..ec8372a 100644 --- a/src/arch/arm/v7/opcodes/opcodes_tmp_arm.h +++ b/src/arch/arm/v7/opcodes/opcodes_tmp_arm.h @@ -1,24 +1,7 @@ #ifndef arm_def_tmp_h #define arm_def_tmp_h -#define armv7_read_arm_instr_adc_register_shifted_register(r) NULL -#define armv7_read_arm_instr_add_register_shifted_register(r) NULL -#define armv7_read_arm_instr_and_register_shifted_register(r) NULL -#define armv7_read_arm_instr_asr_register(r) NULL -#define armv7_read_arm_instr_bfc(r) NULL -#define armv7_read_arm_instr_bfi(r) NULL -#define armv7_read_arm_instr_bic_register_shifted_register(r) NULL -#define armv7_read_arm_instr_bkpt(r) NULL -#define armv7_read_arm_instr_bxj(r) NULL -#define armv7_read_arm_instr_cdp_cdp2(r) NULL -#define armv7_read_arm_instr_clrex(r) NULL -#define armv7_read_arm_instr_clz(r) NULL -#define armv7_read_arm_instr_cmn_register_shifted_register(r) NULL -#define armv7_read_arm_instr_cmp_register_shifted_register(r) NULL #define armv7_read_arm_instr_cps_arm(r) NULL -#define armv7_read_arm_instr_dbg(r) NULL #define armv7_read_arm_instr_dmd(r) NULL -#define armv7_read_arm_instr_dsb(r) NULL -#define armv7_read_arm_instr_eor_register_shifted_register(r) NULL #define armv7_read_arm_instr_eret(r) NULL #define armv7_read_arm_instr_hvc(r) NULL #define armv7_read_arm_instr_isb(r) NULL @@ -30,35 +13,7 @@ #define armv7_read_arm_instr_ldmib_ldmed(r) NULL #define armv7_read_arm_instr_ldm_ldmia_ldmfd_arm(r) NULL #define armv7_read_arm_instr_ldm_user_registers(r) NULL -#define armv7_read_arm_instr_ldrb_literal(r) NULL -#define armv7_read_arm_instr_ldrbt(r) NULL -#define armv7_read_arm_instr_ldrd_immediate(r) NULL -#define armv7_read_arm_instr_ldrd_literal(r) NULL -#define armv7_read_arm_instr_ldrd_register(r) NULL -#define armv7_read_arm_instr_ldrex(r) NULL -#define armv7_read_arm_instr_ldrexb(r) NULL -#define armv7_read_arm_instr_ldrexd(r) NULL -#define armv7_read_arm_instr_ldrexh(r) NULL -#define armv7_read_arm_instr_ldrh_immediate_arm(r) NULL -#define armv7_read_arm_instr_ldrh_literal(r) NULL -#define armv7_read_arm_instr_ldrh_register(r) NULL -#define armv7_read_arm_instr_ldrht(r) NULL #define armv7_read_arm_instr_ldr_register(r) NULL -#define armv7_read_arm_instr_ldrsb_immediate(r) NULL -#define armv7_read_arm_instr_ldrsb_literal(r) NULL -#define armv7_read_arm_instr_ldrsb_register(r) NULL -#define armv7_read_arm_instr_ldrsbt(r) NULL -#define armv7_read_arm_instr_ldrsh_immediate(r) NULL -#define armv7_read_arm_instr_ldrsh_literal(r) NULL -#define armv7_read_arm_instr_ldrsh_register(r) NULL -#define armv7_read_arm_instr_ldrsht(r) NULL -#define armv7_read_arm_instr_ldrt(r) NULL -#define armv7_read_arm_instr_lsl_register(r) NULL -#define armv7_read_arm_instr_lsr_register(r) NULL -#define armv7_read_arm_instr_mcr_mcr2(r) NULL -#define armv7_read_arm_instr_mcrr_mcrr2(r) NULL -#define armv7_read_arm_instr_mrc_mrc2(r) NULL -#define armv7_read_arm_instr_mrrc_mrrc2(r) NULL #define armv7_read_arm_instr_mrs(r) NULL #define armv7_read_arm_instr_mrs_banked_register(r) NULL #define armv7_read_arm_instr_msr_banked_register(r) NULL @@ -66,60 +21,17 @@ #define armv7_read_arm_instr_msr_immediate_b9(r) NULL #define armv7_read_arm_instr_msr_register_a8(r) NULL #define armv7_read_arm_instr_msr_register_b9(r) NULL -#define armv7_read_arm_instr_mvn_register_shifted_register(r) NULL -#define armv7_read_arm_instr_orr_register_shifted_register(r) NULL #define armv7_read_arm_instr_pkh(r) NULL #define armv7_read_arm_instr_pld_literal(r) NULL #define armv7_read_arm_instr_pld_pldw_immediate(r) NULL #define armv7_read_arm_instr_pld_pldw_register(r) NULL #define armv7_read_arm_instr_pli_immediate_literal(r) NULL #define armv7_read_arm_instr_pli_register(r) NULL -#define armv7_read_arm_instr_qadd(r) NULL -#define armv7_read_arm_instr_qadd16(r) NULL -#define armv7_read_arm_instr_qadd8(r) NULL -#define armv7_read_arm_instr_qasx(r) NULL -#define armv7_read_arm_instr_qdadd(r) NULL -#define armv7_read_arm_instr_qdsub(r) NULL -#define armv7_read_arm_instr_qsax(r) NULL -#define armv7_read_arm_instr_qsub(r) NULL -#define armv7_read_arm_instr_qsub16(r) NULL -#define armv7_read_arm_instr_qsub8(r) NULL -#define armv7_read_arm_instr_rbit(r) NULL -#define armv7_read_arm_instr_rev(r) NULL -#define armv7_read_arm_instr_rev16(r) NULL -#define armv7_read_arm_instr_revsh(r) NULL #define armv7_read_arm_instr_rfe(r) NULL -#define armv7_read_arm_instr_ror_immediate(r) NULL -#define armv7_read_arm_instr_ror_register(r) NULL -#define armv7_read_arm_instr_rrx(r) NULL -#define armv7_read_arm_instr_rsb_register_shifted_register(r) NULL -#define armv7_read_arm_instr_rsc_register_shifted_register(r) NULL -#define armv7_read_arm_instr_sadd16(r) NULL -#define armv7_read_arm_instr_sadd8(r) NULL -#define armv7_read_arm_instr_sasx(r) NULL -#define armv7_read_arm_instr_sbc_register_shifted_register(r) NULL -#define armv7_read_arm_instr_sbfx(r) NULL -#define armv7_read_arm_instr_sdiv(r) NULL -#define armv7_read_arm_instr_sel(r) NULL -#define armv7_read_arm_instr_sev(r) NULL -#define armv7_read_arm_instr_shadd16(r) NULL -#define armv7_read_arm_instr_shadd8(r) NULL -#define armv7_read_arm_instr_shasx(r) NULL -#define armv7_read_arm_instr_shsax(r) NULL -#define armv7_read_arm_instr_shsub16(r) NULL -#define armv7_read_arm_instr_shsub8(r) NULL #define armv7_read_arm_instr_smc_previously_smi(r) NULL #define armv7_read_arm_instr_smlabb_smlabt_smlatb_smlatt(r) NULL -#define armv7_read_arm_instr_smlad(r) NULL #define armv7_read_arm_instr_smlalbb_smlalbt_smlaltb_smlaltt(r) NULL -#define armv7_read_arm_instr_smlald(r) NULL #define armv7_read_arm_instr_smlawb_smlawt(r) NULL -#define armv7_read_arm_instr_smlsd(r) NULL -#define armv7_read_arm_instr_smlsld(r) NULL -#define armv7_read_arm_instr_smmla(r) NULL -#define armv7_read_arm_instr_smmls(r) NULL -#define armv7_read_arm_instr_smmul(r) NULL -#define armv7_read_arm_instr_smuad(r) NULL #define armv7_read_arm_instr_smulbb_smulbt_smultb_smultt(r) NULL #define armv7_read_arm_instr_smulwb_smulwt(r) NULL #define armv7_read_arm_instr_smusd(r) NULL @@ -148,45 +60,11 @@ #define armv7_read_arm_instr_str_register(r) NULL #define armv7_read_arm_instr_strt(r) NULL #define armv7_read_arm_instr_sub_register_shifted_register(r) NULL -#define armv7_read_arm_instr_svc_previously_swi(r) NULL -#define armv7_read_arm_instr_swp_swpb(r) NULL #define armv7_read_arm_instr_sxtab(r) NULL #define armv7_read_arm_instr_sxtab16(r) NULL #define armv7_read_arm_instr_sxtah(r) NULL #define armv7_read_arm_instr_sxtb(r) NULL #define armv7_read_arm_instr_sxtb16(r) NULL #define armv7_read_arm_instr_sxth(r) NULL -#define armv7_read_arm_instr_teq_register_shifted_register(r) NULL -#define armv7_read_arm_instr_tst_register_shifted_register(r) NULL -#define armv7_read_arm_instr_uadd16(r) NULL -#define armv7_read_arm_instr_uadd8(r) NULL -#define armv7_read_arm_instr_uasx(r) NULL -#define armv7_read_arm_instr_ubfx(r) NULL -#define armv7_read_arm_instr_udiv(r) NULL -#define armv7_read_arm_instr_uhadd16(r) NULL -#define armv7_read_arm_instr_uhadd8(r) NULL -#define armv7_read_arm_instr_uhasx(r) NULL -#define armv7_read_arm_instr_uhsax(r) NULL -#define armv7_read_arm_instr_uhsub16(r) NULL -#define armv7_read_arm_instr_uhsub8(r) NULL -#define armv7_read_arm_instr_uqadd16(r) NULL -#define armv7_read_arm_instr_uqadd8(r) NULL -#define armv7_read_arm_instr_uqasx(r) NULL -#define armv7_read_arm_instr_uqsax(r) NULL -#define armv7_read_arm_instr_uqsub16(r) NULL -#define armv7_read_arm_instr_uqsub8(r) NULL -#define armv7_read_arm_instr_usad8(r) NULL -#define armv7_read_arm_instr_usada8(r) NULL -#define armv7_read_arm_instr_usat(r) NULL -#define armv7_read_arm_instr_usat16(r) NULL -#define armv7_read_arm_instr_usax(r) NULL -#define armv7_read_arm_instr_usub16(r) NULL -#define armv7_read_arm_instr_usub8(r) NULL -#define armv7_read_arm_instr_uxtab(r) NULL -#define armv7_read_arm_instr_uxtab16(r) NULL -#define armv7_read_arm_instr_uxtah(r) NULL -#define armv7_read_arm_instr_uxtb16(r) NULL -#define armv7_read_arm_instr_uxth(r) NULL #define armv7_read_arm_instr_wfe(r) NULL -#define armv7_read_arm_instr_wfi(r) NULL #endif diff --git a/src/arch/arm/v7/opcodes/opcodes_tmp_thumb_16.h b/src/arch/arm/v7/opcodes/opcodes_tmp_thumb_16.h index 8e8572d..1a62c43 100644 --- a/src/arch/arm/v7/opcodes/opcodes_tmp_thumb_16.h +++ b/src/arch/arm/v7/opcodes/opcodes_tmp_thumb_16.h @@ -1,31 +1,13 @@ #ifndef thumb_16_def_tmp_h #define thumb_16_def_tmp_h -#define armv7_read_thumb_16_instr_asr_register(r) NULL -#define armv7_read_thumb_16_instr_bkpt(r) NULL #define armv7_read_thumb_16_instr_cps_thumb(r) NULL #define armv7_read_thumb_16_instr_it(r) NULL #define armv7_read_thumb_16_instr_ldm_ldmia_ldmfd_thumb(r) NULL -#define armv7_read_thumb_16_instr_ldrh_immediate_thumb(r) NULL -#define armv7_read_thumb_16_instr_ldrh_register(r) NULL -#define armv7_read_thumb_16_instr_ldrsb_register(r) NULL -#define armv7_read_thumb_16_instr_ldrsh_register(r) NULL -#define armv7_read_thumb_16_instr_lsl_register(r) NULL -#define armv7_read_thumb_16_instr_lsr_register(r) NULL -#define armv7_read_thumb_16_instr_rev(r) NULL -#define armv7_read_thumb_16_instr_rev16(r) NULL -#define armv7_read_thumb_16_instr_revsh(r) NULL -#define armv7_read_thumb_16_instr_ror_register(r) NULL -#define armv7_read_thumb_16_instr_setend(r) NULL -#define armv7_read_thumb_16_instr_sev(r) NULL #define armv7_read_thumb_16_instr_stm_stmia_stmea(r) NULL #define armv7_read_thumb_16_instr_strh_immediate_thumb(r) NULL #define armv7_read_thumb_16_instr_strh_register(r) NULL #define armv7_read_thumb_16_instr_str_register(r) NULL -#define armv7_read_thumb_16_instr_svc_previously_swi(r) NULL #define armv7_read_thumb_16_instr_sxtb(r) NULL #define armv7_read_thumb_16_instr_sxth(r) NULL -#define armv7_read_thumb_16_instr_udf(r) NULL -#define armv7_read_thumb_16_instr_uxth(r) NULL #define armv7_read_thumb_16_instr_wfe(r) NULL -#define armv7_read_thumb_16_instr_wfi(r) NULL #endif diff --git a/src/arch/arm/v7/opcodes/opcodes_tmp_thumb_32.h b/src/arch/arm/v7/opcodes/opcodes_tmp_thumb_32.h index 1970369..c74ab49 100644 --- a/src/arch/arm/v7/opcodes/opcodes_tmp_thumb_32.h +++ b/src/arch/arm/v7/opcodes/opcodes_tmp_thumb_32.h @@ -1,18 +1,8 @@ #ifndef thumb_32_def_tmp_h #define thumb_32_def_tmp_h -#define armv7_read_thumb_32_instr_asr_register(r) NULL -#define armv7_read_thumb_32_instr_bfc(r) NULL -#define armv7_read_thumb_32_instr_bfi(r) NULL #define armv7_read_thumb_32_instr_b_mrs(r) NULL #define armv7_read_thumb_32_instr_b_msr_register(r) NULL -#define armv7_read_thumb_32_instr_bxj(r) NULL -#define armv7_read_thumb_32_instr_cdp_cdp2(r) NULL -#define armv7_read_thumb_32_instr_clrex(r) NULL -#define armv7_read_thumb_32_instr_clz(r) NULL #define armv7_read_thumb_32_instr_cps_thumb(r) NULL -#define armv7_read_thumb_32_instr_dbg(r) NULL -#define armv7_read_thumb_32_instr_dmb(r) NULL -#define armv7_read_thumb_32_instr_dsb(r) NULL #define armv7_read_thumb_32_instr_enterx_leavex(r) NULL #define armv7_read_thumb_32_instr_eret(r) NULL #define armv7_read_thumb_32_instr_hvc(r) NULL @@ -21,39 +11,10 @@ #define armv7_read_thumb_32_instr_ldc_ldc2_literal(r) NULL #define armv7_read_thumb_32_instr_ldmdb_ldmea(r) NULL #define armv7_read_thumb_32_instr_ldm_ldmia_ldmfd_thumb(r) NULL -#define armv7_read_thumb_32_instr_ldrb_literal(r) NULL -#define armv7_read_thumb_32_instr_ldrbt(r) NULL -#define armv7_read_thumb_32_instr_ldrd_immediate(r) NULL -#define armv7_read_thumb_32_instr_ldrd_literal(r) NULL -#define armv7_read_thumb_32_instr_ldrex(r) NULL -#define armv7_read_thumb_32_instr_ldrexb(r) NULL -#define armv7_read_thumb_32_instr_ldrexd(r) NULL -#define armv7_read_thumb_32_instr_ldrexh(r) NULL -#define armv7_read_thumb_32_instr_ldrh_immediate_thumb(r) NULL -#define armv7_read_thumb_32_instr_ldrh_literal(r) NULL -#define armv7_read_thumb_32_instr_ldrh_register(r) NULL -#define armv7_read_thumb_32_instr_ldrht(r) NULL -#define armv7_read_thumb_32_instr_ldrsb_immediate(r) NULL -#define armv7_read_thumb_32_instr_ldrsb_literal(r) NULL -#define armv7_read_thumb_32_instr_ldrsb_register(r) NULL -#define armv7_read_thumb_32_instr_ldrsbt(r) NULL -#define armv7_read_thumb_32_instr_ldrsh_immediate(r) NULL -#define armv7_read_thumb_32_instr_ldrsh_literal(r) NULL -#define armv7_read_thumb_32_instr_ldrsh_register(r) NULL -#define armv7_read_thumb_32_instr_ldrsht(r) NULL -#define armv7_read_thumb_32_instr_ldrt(r) NULL -#define armv7_read_thumb_32_instr_lsl_register(r) NULL -#define armv7_read_thumb_32_instr_lsr_register(r) NULL -#define armv7_read_thumb_32_instr_mcr_mcr2(r) NULL -#define armv7_read_thumb_32_instr_mcrr_mcrr2(r) NULL -#define armv7_read_thumb_32_instr_mrc_mrc2(r) NULL -#define armv7_read_thumb_32_instr_mrrc_mrrc2(r) NULL #define armv7_read_thumb_32_instr_mrs(r) NULL #define armv7_read_thumb_32_instr_mrs_banked_register(r) NULL #define armv7_read_thumb_32_instr_msr_banked_register(r) NULL #define armv7_read_thumb_32_instr_msr_register(r) NULL -#define armv7_read_thumb_32_instr_orn_immediate(r) NULL -#define armv7_read_thumb_32_instr_orn_register(r) NULL #define armv7_read_thumb_32_instr_pkh(r) NULL #define armv7_read_thumb_32_instr_pld_immediate(r) NULL #define armv7_read_thumb_32_instr_pld_literal(r) NULL @@ -62,43 +23,11 @@ #define armv7_read_thumb_32_instr_pld_register(r) NULL #define armv7_read_thumb_32_instr_pli_immediate_literal(r) NULL #define armv7_read_thumb_32_instr_pli_register(r) NULL -#define armv7_read_thumb_32_instr_qadd(r) NULL -#define armv7_read_thumb_32_instr_qdadd(r) NULL -#define armv7_read_thumb_32_instr_qdsub(r) NULL -#define armv7_read_thumb_32_instr_qsub(r) NULL -#define armv7_read_thumb_32_instr_rbit(r) NULL -#define armv7_read_thumb_32_instr_rev(r) NULL -#define armv7_read_thumb_32_instr_rev16(r) NULL -#define armv7_read_thumb_32_instr_revsh(r) NULL #define armv7_read_thumb_32_instr_rfe(r) NULL -#define armv7_read_thumb_32_instr_ror_immediate(r) NULL -#define armv7_read_thumb_32_instr_ror_register(r) NULL -#define armv7_read_thumb_32_instr_rrx(r) NULL -#define armv7_read_thumb_32_instr_sadd16(r) NULL -#define armv7_read_thumb_32_instr_sadd8(r) NULL -#define armv7_read_thumb_32_instr_sasx(r) NULL -#define armv7_read_thumb_32_instr_sbfx(r) NULL -#define armv7_read_thumb_32_instr_sdiv(r) NULL -#define armv7_read_thumb_32_instr_sel(r) NULL -#define armv7_read_thumb_32_instr_sev(r) NULL -#define armv7_read_thumb_32_instr_shadd16(r) NULL -#define armv7_read_thumb_32_instr_shadd8(r) NULL -#define armv7_read_thumb_32_instr_shasx(r) NULL -#define armv7_read_thumb_32_instr_shsax(r) NULL -#define armv7_read_thumb_32_instr_shsub16(r) NULL -#define armv7_read_thumb_32_instr_shsub8(r) NULL #define armv7_read_thumb_32_instr_smc_previously_smi(r) NULL #define armv7_read_thumb_32_instr_smlabb_smlabt_smlatb_smlatt(r) NULL -#define armv7_read_thumb_32_instr_smlad(r) NULL #define armv7_read_thumb_32_instr_smlalbb_smlalbt_smlaltb_smlaltt(r) NULL -#define armv7_read_thumb_32_instr_smlald(r) NULL #define armv7_read_thumb_32_instr_smlawb_smlawt(r) NULL -#define armv7_read_thumb_32_instr_smlsd(r) NULL -#define armv7_read_thumb_32_instr_smlsld(r) NULL -#define armv7_read_thumb_32_instr_smmla(r) NULL -#define armv7_read_thumb_32_instr_smmls(r) NULL -#define armv7_read_thumb_32_instr_smmul(r) NULL -#define armv7_read_thumb_32_instr_smuad(r) NULL #define armv7_read_thumb_32_instr_smulbb_smulbt_smultb_smultt(r) NULL #define armv7_read_thumb_32_instr_smulwb_smulwt(r) NULL #define armv7_read_thumb_32_instr_smusd(r) NULL @@ -137,36 +66,5 @@ #define armv7_read_thumb_32_instr_sxtb16(r) NULL #define armv7_read_thumb_32_instr_sxth(r) NULL #define armv7_read_thumb_32_instr_tbb_tbh(r) NULL -#define armv7_read_thumb_32_instr_uadd16(r) NULL -#define armv7_read_thumb_32_instr_uadd8(r) NULL -#define armv7_read_thumb_32_instr_uasx(r) NULL -#define armv7_read_thumb_32_instr_ubfx(r) NULL -#define armv7_read_thumb_32_instr_udf(r) NULL -#define armv7_read_thumb_32_instr_udiv(r) NULL -#define armv7_read_thumb_32_instr_uhadd16(r) NULL -#define armv7_read_thumb_32_instr_uhadd8(r) NULL -#define armv7_read_thumb_32_instr_uhasx(r) NULL -#define armv7_read_thumb_32_instr_uhsax(r) NULL -#define armv7_read_thumb_32_instr_uhsub16(r) NULL -#define armv7_read_thumb_32_instr_uhsub8(r) NULL -#define armv7_read_thumb_32_instr_uqadd16(r) NULL -#define armv7_read_thumb_32_instr_uqadd8(r) NULL -#define armv7_read_thumb_32_instr_uqasx(r) NULL -#define armv7_read_thumb_32_instr_uqsax(r) NULL -#define armv7_read_thumb_32_instr_uqsub16(r) NULL -#define armv7_read_thumb_32_instr_uqsub8(r) NULL -#define armv7_read_thumb_32_instr_usad8(r) NULL -#define armv7_read_thumb_32_instr_usada8(r) NULL -#define armv7_read_thumb_32_instr_usat(r) NULL -#define armv7_read_thumb_32_instr_usat16(r) NULL -#define armv7_read_thumb_32_instr_usax(r) NULL -#define armv7_read_thumb_32_instr_usub16(r) NULL -#define armv7_read_thumb_32_instr_usub8(r) NULL -#define armv7_read_thumb_32_instr_uxtab(r) NULL -#define armv7_read_thumb_32_instr_uxtab16(r) NULL -#define armv7_read_thumb_32_instr_uxtah(r) NULL -#define armv7_read_thumb_32_instr_uxtb16(r) NULL -#define armv7_read_thumb_32_instr_uxth(r) NULL #define armv7_read_thumb_32_instr_wfe(r) NULL -#define armv7_read_thumb_32_instr_wfi(r) NULL #endif |