Lines Matching refs:opcode
274 static void decode_ProgCtrl_0(unsigned int opcode) in decode_ProgCtrl_0() argument
276 int poprnd = ((opcode >> ProgCtrl_poprnd_bits) & ProgCtrl_poprnd_mask); in decode_ProgCtrl_0()
277 int prgfunc = ((opcode >> ProgCtrl_prgfunc_bits) & ProgCtrl_prgfunc_mask); in decode_ProgCtrl_0()
316 pr_cont("0x%04x", opcode); in decode_ProgCtrl_0()
330 static void decode_BRCC_0(unsigned int opcode) in decode_BRCC_0() argument
332 int B = ((opcode >> BRCC_B_bits) & BRCC_B_mask); in decode_BRCC_0()
333 int T = ((opcode >> BRCC_T_bits) & BRCC_T_mask); in decode_BRCC_0()
346 static void decode_CALLa_0(unsigned int opcode) in decode_CALLa_0() argument
348 int S = ((opcode >> (CALLa_S_bits - 16)) & CALLa_S_mask); in decode_CALLa_0()
372 static void decode_LoopSetup_0(unsigned int opcode) in decode_LoopSetup_0() argument
374 int c = ((opcode >> LoopSetup_c_bits) & LoopSetup_c_mask); in decode_LoopSetup_0()
375 int reg = ((opcode >> LoopSetup_reg_bits) & LoopSetup_reg_mask); in decode_LoopSetup_0()
376 int rop = ((opcode >> LoopSetup_rop_bits) & LoopSetup_rop_mask); in decode_LoopSetup_0()
399 static void decode_dspLDST_0(unsigned int opcode) in decode_dspLDST_0() argument
401 int i = ((opcode >> DspLDST_i_bits) & DspLDST_i_mask); in decode_dspLDST_0()
402 int m = ((opcode >> DspLDST_m_bits) & DspLDST_m_mask); in decode_dspLDST_0()
403 int W = ((opcode >> DspLDST_W_bits) & DspLDST_W_mask); in decode_dspLDST_0()
404 int aop = ((opcode >> DspLDST_aop_bits) & DspLDST_aop_mask); in decode_dspLDST_0()
405 int reg = ((opcode >> DspLDST_reg_bits) & DspLDST_reg_mask); in decode_dspLDST_0()
462 static void decode_LDST_0(unsigned int opcode) in decode_LDST_0() argument
464 int Z = ((opcode >> LDST_Z_bits) & LDST_Z_mask); in decode_LDST_0()
465 int W = ((opcode >> LDST_W_bits) & LDST_W_mask); in decode_LDST_0()
466 int sz = ((opcode >> LDST_sz_bits) & LDST_sz_mask); in decode_LDST_0()
467 int aop = ((opcode >> LDST_aop_bits) & LDST_aop_mask); in decode_LDST_0()
468 int reg = ((opcode >> LDST_reg_bits) & LDST_reg_mask); in decode_LDST_0()
469 int ptr = ((opcode >> LDST_ptr_bits) & LDST_ptr_mask); in decode_LDST_0()
520 static void decode_LDSTii_0(unsigned int opcode) in decode_LDSTii_0() argument
522 int reg = ((opcode >> LDSTii_reg_bit) & LDSTii_reg_mask); in decode_LDSTii_0()
523 int ptr = ((opcode >> LDSTii_ptr_bit) & LDSTii_ptr_mask); in decode_LDSTii_0()
524 int offset = ((opcode >> LDSTii_offset_bit) & LDSTii_offset_mask); in decode_LDSTii_0()
525 int op = ((opcode >> LDSTii_op_bit) & LDSTii_op_mask); in decode_LDSTii_0()
526 int W = ((opcode >> LDSTii_W_bit) & LDSTii_W_mask); in decode_LDSTii_0()
557 static void decode_LDSTidxI_0(unsigned int opcode) in decode_LDSTidxI_0() argument
559 int Z = ((opcode >> LDSTidxI_Z_bits) & LDSTidxI_Z_mask); in decode_LDSTidxI_0()
560 int W = ((opcode >> LDSTidxI_W_bits) & LDSTidxI_W_mask); in decode_LDSTidxI_0()
561 int sz = ((opcode >> LDSTidxI_sz_bits) & LDSTidxI_sz_mask); in decode_LDSTidxI_0()
562 int reg = ((opcode >> LDSTidxI_reg_bits) & LDSTidxI_reg_mask); in decode_LDSTidxI_0()
563 int ptr = ((opcode >> LDSTidxI_ptr_bits) & LDSTidxI_ptr_mask); in decode_LDSTidxI_0()
564 int offset = ((opcode >> LDSTidxI_offset_bits) & LDSTidxI_offset_mask); in decode_LDSTidxI_0()
589 static void decode_opcode(unsigned int opcode) in decode_opcode() argument
592 if (opcode == BFIN_BUG_OPCODE) in decode_opcode()
596 if ((opcode & 0xffffff00) == ProgCtrl_opcode) in decode_opcode()
597 decode_ProgCtrl_0(opcode); in decode_opcode()
598 else if ((opcode & 0xfffff000) == BRCC_opcode) in decode_opcode()
599 decode_BRCC_0(opcode); in decode_opcode()
600 else if ((opcode & 0xfffff000) == 0x2000) in decode_opcode()
602 else if ((opcode & 0xfe000000) == CALLa_opcode) in decode_opcode()
603 decode_CALLa_0(opcode); in decode_opcode()
604 else if ((opcode & 0xff8000C0) == LoopSetup_opcode) in decode_opcode()
605 decode_LoopSetup_0(opcode); in decode_opcode()
606 else if ((opcode & 0xfffffc00) == DspLDST_opcode) in decode_opcode()
607 decode_dspLDST_0(opcode); in decode_opcode()
608 else if ((opcode & 0xfffff000) == LDST_opcode) in decode_opcode()
609 decode_LDST_0(opcode); in decode_opcode()
610 else if ((opcode & 0xffffe000) == LDSTii_opcode) in decode_opcode()
611 decode_LDSTii_0(opcode); in decode_opcode()
612 else if ((opcode & 0xfc000000) == LDSTidxI_opcode) in decode_opcode()
613 decode_LDSTidxI_0(opcode); in decode_opcode()
614 else if (opcode & 0xffff0000) in decode_opcode()
615 pr_cont("0x%08x", opcode); in decode_opcode()
617 pr_cont("0x%04x", opcode); in decode_opcode()
623 unsigned int opcode; in decode_instruction() local
625 if (!get_instruction(&opcode, address)) in decode_instruction()
628 decode_opcode(opcode); in decode_instruction()
634 if ((opcode & 0xc0000000) == 0xc0000000 && in decode_instruction()
635 (opcode & BIT_MULTI_INS) && in decode_instruction()
636 (opcode & 0xe8000000) != 0xe8000000) { in decode_instruction()
638 if (!get_instruction(&opcode, address + 2)) in decode_instruction()
640 decode_opcode(opcode); in decode_instruction()
642 if (!get_instruction(&opcode, address + 3)) in decode_instruction()
644 decode_opcode(opcode); in decode_instruction()