diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2014-12-01 22:57:10 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2014-12-01 22:57:10 (GMT) |
commit | 5b5b36dc862a3c7bcfa3e0db74efcf2806988706 (patch) | |
tree | 0c631ee484f2325ad182a5e527f1a6508ddf2d9a /src/arch/arm/v7/opcodes | |
parent | 97d1cc10210cf4ec237e1d9a8b23b120ddef47c5 (diff) |
Recognized Thumb 16 instructions and most of the Thumb 32 ones.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@430 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/arch/arm/v7/opcodes')
-rw-r--r-- | src/arch/arm/v7/opcodes/opcodes_tmp_thumb_16.h | 73 | ||||
-rw-r--r-- | src/arch/arm/v7/opcodes/opcodes_tmp_thumb_32.h | 179 |
2 files changed, 252 insertions, 0 deletions
diff --git a/src/arch/arm/v7/opcodes/opcodes_tmp_thumb_16.h b/src/arch/arm/v7/opcodes/opcodes_tmp_thumb_16.h new file mode 100644 index 0000000..402e083 --- /dev/null +++ b/src/arch/arm/v7/opcodes/opcodes_tmp_thumb_16.h @@ -0,0 +1,73 @@ +#ifndef thumb_16_def_tmp_h +#define thumb_16_def_tmp_h +#define armv7_read_thumb_16_instr_adc_register(r) NULL +#define armv7_read_thumb_16_instr_add_immediate_thumb(r) NULL +#define armv7_read_thumb_16_instr_add_register_thumb(r) NULL +#define armv7_read_thumb_16_instr_add_sp_plus_immediate(r) NULL +#define armv7_read_thumb_16_instr_adr(r) NULL +#define armv7_read_thumb_16_instr_and_register(r) NULL +#define armv7_read_thumb_16_instr_asr_immediate(r) NULL +#define armv7_read_thumb_16_instr_asr_register(r) NULL +#define armv7_read_thumb_16_instr_b(r) NULL +#define armv7_read_thumb_16_instr_bic_register(r) NULL +#define armv7_read_thumb_16_instr_bkpt(r) NULL +#define armv7_read_thumb_16_instr_blx_register(r) NULL +#define armv7_read_thumb_16_instr_bx(r) NULL +#define armv7_read_thumb_16_instr_cbnz_cbz(r) NULL +#define armv7_read_thumb_16_instr_cmn_register(r) NULL +#define armv7_read_thumb_16_instr_cmp_immediate(r) NULL +#define armv7_read_thumb_16_instr_cmp_register(r) NULL +#define armv7_read_thumb_16_instr_cps_thumb(r) NULL +#define armv7_read_thumb_16_instr_eor_register(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_ldrb_immediate_thumb(r) NULL +#define armv7_read_thumb_16_instr_ldrb_register(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_ldr_immediate_thumb(r) NULL +#define armv7_read_thumb_16_instr_ldr_literal(r) NULL +#define armv7_read_thumb_16_instr_ldr_register_thumb(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_immediate(r) NULL +#define armv7_read_thumb_16_instr_lsl_register(r) NULL +#define armv7_read_thumb_16_instr_lsr_immediate(r) NULL +#define armv7_read_thumb_16_instr_lsr_register(r) NULL +#define armv7_read_thumb_16_instr_mov_immediate(r) NULL +#define armv7_read_thumb_16_instr_mov_register_thumb(r) NULL +#define armv7_read_thumb_16_instr_mul(r) NULL +#define armv7_read_thumb_16_instr_mvn_register(r) NULL +#define armv7_read_thumb_16_instr_nop(r) NULL +#define armv7_read_thumb_16_instr_orr_register(r) NULL +#define armv7_read_thumb_16_instr_pop_thumb(r) NULL +#define armv7_read_thumb_16_instr_push(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_rsb_immediate(r) NULL +#define armv7_read_thumb_16_instr_sbc_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_strb_immediate_thumb(r) NULL +#define armv7_read_thumb_16_instr_strb_register(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_immediate_thumb(r) NULL +#define armv7_read_thumb_16_instr_str_register(r) NULL +#define armv7_read_thumb_16_instr_sub_immediate_thumb(r) NULL +#define armv7_read_thumb_16_instr_sub_register(r) NULL +#define armv7_read_thumb_16_instr_sub_sp_minus_immediate(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_tst_register(r) NULL +#define armv7_read_thumb_16_instr_udf(r) NULL +#define armv7_read_thumb_16_instr_uxtb(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 +#define armv7_read_thumb_16_instr_yield(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 new file mode 100644 index 0000000..016b7d3 --- /dev/null +++ b/src/arch/arm/v7/opcodes/opcodes_tmp_thumb_32.h @@ -0,0 +1,179 @@ +#ifndef thumb_32_def_tmp_h +#define thumb_32_def_tmp_h +#define armv7_read_thumb_32_instr_(r) NULL +#define armv7_read_thumb_32_instr_adc_immediate(r) NULL +#define armv7_read_thumb_32_instr_adc_register(r) NULL +#define armv7_read_thumb_32_instr_add_immediate_thumb(r) NULL +#define armv7_read_thumb_32_instr_add_register_thumb(r) NULL +#define armv7_read_thumb_32_instr_adr(r) NULL +#define armv7_read_thumb_32_instr_and_immediate(r) NULL +#define armv7_read_thumb_32_instr_and_register(r) NULL +#define armv7_read_thumb_32_instr_asr_register(r) NULL +#define armv7_read_thumb_32_instr_b(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_bic_immediate(r) NULL +#define armv7_read_thumb_32_instr_bic_register(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_clrex(r) NULL +#define armv7_read_thumb_32_instr_clz(r) NULL +#define armv7_read_thumb_32_instr_cmn_immediate(r) NULL +#define armv7_read_thumb_32_instr_cmn_register(r) NULL +#define armv7_read_thumb_32_instr_cmp_immediate(r) NULL +#define armv7_read_thumb_32_instr_cmp_register(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_eor_immediate(r) NULL +#define armv7_read_thumb_32_instr_eor_register(r) NULL +#define armv7_read_thumb_32_instr_eret(r) NULL +#define armv7_read_thumb_32_instr_hvc(r) NULL +#define armv7_read_thumb_32_instr_isb(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_ldr_immediate_thumb(r) NULL +#define armv7_read_thumb_32_instr_ldr_literal(r) NULL +#define armv7_read_thumb_32_instr_ldr_register_thumb(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_mla(r) NULL +#define armv7_read_thumb_32_instr_mls(r) NULL +#define armv7_read_thumb_32_instr_mov_immediate(r) NULL +#define armv7_read_thumb_32_instr_movt(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_mul(r) NULL +#define armv7_read_thumb_32_instr_mvn_immediate(r) NULL +#define armv7_read_thumb_32_instr_mvn_register(r) NULL +#define armv7_read_thumb_32_instr_nop(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_orr_immediate(r) NULL +#define armv7_read_thumb_32_instr_orr_register(r) NULL +#define armv7_read_thumb_32_instr_pkh(r) NULL +#define armv7_read_thumb_32_instr_pop_thumb(r) NULL +#define armv7_read_thumb_32_instr_push(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_register(r) NULL +#define armv7_read_thumb_32_instr_rsb_immediate(r) NULL +#define armv7_read_thumb_32_instr_rsb_register(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_sbc_immediate(r) NULL +#define armv7_read_thumb_32_instr_sbc_register(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_smlal(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_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_smull(r) NULL +#define armv7_read_thumb_32_instr_smulwb_smulwt(r) NULL +#define armv7_read_thumb_32_instr_smusd(r) NULL +#define armv7_read_thumb_32_instr_sqadd16(r) NULL +#define armv7_read_thumb_32_instr_sqadd8(r) NULL +#define armv7_read_thumb_32_instr_sqasx(r) NULL +#define armv7_read_thumb_32_instr_sqsax(r) NULL +#define armv7_read_thumb_32_instr_sqsub16(r) NULL +#define armv7_read_thumb_32_instr_sqsub8(r) NULL +#define armv7_read_thumb_32_instr_srs_thumb(r) NULL +#define armv7_read_thumb_32_instr_ssat(r) NULL +#define armv7_read_thumb_32_instr_ssat16(r) NULL +#define armv7_read_thumb_32_instr_ssax(r) NULL +#define armv7_read_thumb_32_instr_ssub16(r) NULL +#define armv7_read_thumb_32_instr_ssub8(r) NULL +#define armv7_read_thumb_32_instr_stmdb_stmfd(r) NULL +#define armv7_read_thumb_32_instr_stm_stmia_stmea(r) NULL +#define armv7_read_thumb_32_instr_strb_immediate_thumb(r) NULL +#define armv7_read_thumb_32_instr_strb_register(r) NULL +#define armv7_read_thumb_32_instr_strbt(r) NULL +#define armv7_read_thumb_32_instr_strh_immediate_thumb(r) NULL +#define armv7_read_thumb_32_instr_strh_register(r) NULL +#define armv7_read_thumb_32_instr_strht(r) NULL +#define armv7_read_thumb_32_instr_str_immediate_thumb(r) NULL +#define armv7_read_thumb_32_instr_str_register(r) NULL +#define armv7_read_thumb_32_instr_strt(r) NULL +#define armv7_read_thumb_32_instr_sub_immediate_thumb(r) NULL +#define armv7_read_thumb_32_instr_sub_register_thumb(r) NULL +#define armv7_read_thumb_32_instr_subs_pc_lr_thumb(r) NULL +#define armv7_read_thumb_32_instr_sxtab(r) NULL +#define armv7_read_thumb_32_instr_sxtab16(r) NULL +#define armv7_read_thumb_32_instr_sxtah(r) NULL +#define armv7_read_thumb_32_instr_sxtb(r) NULL +#define armv7_read_thumb_32_instr_sxtb16(r) NULL +#define armv7_read_thumb_32_instr_sxth(r) NULL +#define armv7_read_thumb_32_instr_teq_immediate(r) NULL +#define armv7_read_thumb_32_instr_teq_register(r) NULL +#define armv7_read_thumb_32_instr_tst_immediate(r) NULL +#define armv7_read_thumb_32_instr_tst_register(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_umaal(r) NULL +#define armv7_read_thumb_32_instr_umlal(r) NULL +#define armv7_read_thumb_32_instr_umull(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_uxtb(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 +#define armv7_read_thumb_32_instr_yield(r) NULL +#endif |