Home
last modified time | relevance | path

Searched refs:opcode (Results 1 – 25 of 207) sorted by relevance

123456789

/openbmc/qemu/linux-user/arm/nwfpe/
H A Dfpopcode.h201 #define getCoprocessorNumber(opcode) ((opcode & MASK_COPROCESSOR) >> 8) argument
204 #define getOffset(opcode) (opcode & MASK_OFFSET) argument
207 #define TEST_OPCODE(opcode,mask) (((opcode) & (mask)) == (mask)) argument
209 #define LOAD_OP(opcode) TEST_OPCODE((opcode),MASK_CPDT | BIT_LOAD) argument
210 #define STORE_OP(opcode) ((opcode & (MASK_CPDT | BIT_LOAD)) == MASK_CPDT) argument
212 #define LDF_OP(opcode) (LOAD_OP(opcode) && (getCoprocessorNumber(opcode) == 1)) argument
213 #define LFM_OP(opcode) (LOAD_OP(opcode) && (getCoprocessorNumber(opcode) == 2)) argument
214 #define STF_OP(opcode) (STORE_OP(opcode) && (getCoprocessorNumber(opcode) == 1)) argument
215 #define SFM_OP(opcode) (STORE_OP(opcode) && (getCoprocessorNumber(opcode) == 2)) argument
217 #define PREINDEXED(opcode) ((opcode & BIT_PREINDEX) != 0) argument
[all …]
H A Dfpa11_cpdt.c215 static unsigned int PerformLDF(const unsigned int opcode) in PerformLDF() argument
219 write_back = WRITE_BACK(opcode); in PerformLDF()
223 pBase = readRegister(getRn(opcode)); in PerformLDF()
224 if (ARM_REG_PC == getRn(opcode)) in PerformLDF()
231 if (BIT_UP_SET(opcode)) in PerformLDF()
232 pFinal += getOffset(opcode) * 4; in PerformLDF()
234 pFinal -= getOffset(opcode) * 4; in PerformLDF()
236 if (PREINDEXED(opcode)) pAddress = pFinal; else pAddress = pBase; in PerformLDF()
238 switch (opcode & MASK_TRANSFER_LENGTH) in PerformLDF()
240 case TRANSFER_SINGLE : loadSingle(getFd(opcode),pAddress); break; in PerformLDF()
[all …]
H A Dfpa11_cprt.c30 unsigned int PerformFLT(const unsigned int opcode);
31 unsigned int PerformFIX(const unsigned int opcode);
34 PerformComparison(const unsigned int opcode);
36 unsigned int EmulateCPRT(const unsigned int opcode) in EmulateCPRT() argument
42 if (opcode & 0x800000) in EmulateCPRT()
48 return PerformComparison(opcode); in EmulateCPRT()
52 switch ((opcode & 0x700000) >> 20) in EmulateCPRT()
54 case FLT_CODE >> 20: nRc = PerformFLT(opcode); break; in EmulateCPRT()
55 case FIX_CODE >> 20: nRc = PerformFIX(opcode); break; in EmulateCPRT()
57 case WFS_CODE >> 20: writeFPSR(readRegister(getRd(opcode))); break; in EmulateCPRT()
[all …]
H A Dfpa11.c79 void SetRoundingMode(const unsigned int opcode) in SetRoundingMode() argument
87 switch (opcode & MASK_ROUNDING_MODE) in SetRoundingMode()
121 void SetRoundingPrecision(const unsigned int opcode) in SetRoundingPrecision() argument
128 switch (opcode & MASK_ROUNDING_PRECISION) { in SetRoundingPrecision()
159 unsigned int EmulateAll(unsigned int opcode, FPA11* qfpa, CPUARMState* qregs) in EmulateAll() argument
170 cp = (opcode >> 8) & 0xf; in EmulateAll()
180 opcode, qregs[ARM_REG_PC]); in EmulateAll()
194 if (TEST_OPCODE(opcode,MASK_CPRT)) in EmulateAll()
200 nRc = EmulateCPRT(opcode); in EmulateAll()
202 else if (TEST_OPCODE(opcode,MASK_CPDO)) in EmulateAll()
[all …]
H A Dfpa11_cpdo.c25 unsigned int EmulateCPDO(const unsigned int opcode) in EmulateCPDO() argument
34 nDest = getDestinationSize(opcode); in EmulateCPDO()
37 SetRoundingMode(opcode); in EmulateCPDO()
44 if (MONADIC_INSTRUCTION(opcode)) in EmulateCPDO()
47 nType = fpa11->fType[getFn(opcode)]; in EmulateCPDO()
49 if (!CONSTANT_FM(opcode)) in EmulateCPDO()
51 register unsigned int Fm = getFm(opcode); in EmulateCPDO()
60 case typeSingle : nRc = SingleCPDO(opcode); break; in EmulateCPDO()
61 case typeDouble : nRc = DoubleCPDO(opcode); break; in EmulateCPDO()
62 case typeExtended : nRc = ExtendedCPDO(opcode); break; in EmulateCPDO()
[all …]
H A Dfpopcode.c62 unsigned int getRegisterCount(const unsigned int opcode) in getRegisterCount() argument
66 switch (opcode & MASK_REGISTER_COUNT) in getRegisterCount()
78 unsigned int getDestinationSize(const unsigned int opcode) in getDestinationSize() argument
82 switch (opcode & MASK_DESTINATION_SIZE) in getDestinationSize()
/openbmc/qemu/target/hexagon/
H A Diclass.c32 SlotMask find_iclass_slots(Opcode opcode, int itype) in find_iclass_slots() argument
35 if (GET_ATTRIB(opcode, A_ICOP)) { in find_iclass_slots()
37 } else if (GET_ATTRIB(opcode, A_RESTRICT_SLOT0ONLY)) { in find_iclass_slots()
39 } else if (GET_ATTRIB(opcode, A_RESTRICT_SLOT1ONLY)) { in find_iclass_slots()
41 } else if (GET_ATTRIB(opcode, A_RESTRICT_SLOT2ONLY)) { in find_iclass_slots()
43 } else if (GET_ATTRIB(opcode, A_RESTRICT_SLOT3ONLY)) { in find_iclass_slots()
45 } else if (GET_ATTRIB(opcode, A_COF) && in find_iclass_slots()
46 GET_ATTRIB(opcode, A_INDIRECT) && in find_iclass_slots()
47 !GET_ATTRIB(opcode, A_MEMLIKE) && in find_iclass_slots()
48 !GET_ATTRIB(opcode, A_MEMLIKE_PACKET_RULES)) { in find_iclass_slots()
[all …]
H A Ddecode.c120 if (GET_ATTRIB(packet->insn[i].opcode, A_DOTNEWVALUE) && in decode_fill_newvalue_regno()
121 !GET_ATTRIB(packet->insn[i].opcode, A_EXTENSION)) { in decode_fill_newvalue_regno()
134 if (GET_ATTRIB(packet->insn[i - j - 1].opcode, A_IT_EXTENDER)) { in decode_fill_newvalue_regno()
174 if (GET_ATTRIB(pkt->insn[i].opcode, A_NEWCMPJUMP)) { in decode_split_cmpjump()
191 static bool decode_opcode_can_jump(int opcode) in decode_opcode_can_jump() argument
193 if ((GET_ATTRIB(opcode, A_JUMP)) || in decode_opcode_can_jump()
194 (GET_ATTRIB(opcode, A_CALL)) || in decode_opcode_can_jump()
195 (opcode == J2_trap0) || in decode_opcode_can_jump()
196 (opcode == J2_pause)) { in decode_opcode_can_jump()
198 if (opcode == J4_hintjumpr) { in decode_opcode_can_jump()
[all …]
H A Dprintinsn.c41 switch (insn->opcode) { in snprintinsn()
66 if (pkt->insn[i].opcode == J2_endloop0) { in snprint_a_pkt_disas()
70 if (pkt->insn[i].opcode == J2_endloop1) { in snprint_a_pkt_disas()
74 if (pkt->insn[i].opcode == J2_endloop01) { in snprint_a_pkt_disas()
93 if (GET_ATTRIB(pkt->insn[i].opcode, A_SUBINSN)) { in snprint_a_pkt_disas()
97 } else if (pkt->insn[i + 1].opcode != J2_endloop0 && in snprint_a_pkt_disas()
98 pkt->insn[i + 1].opcode != J2_endloop1 && in snprint_a_pkt_disas()
99 pkt->insn[i + 1].opcode != J2_endloop01) { in snprint_a_pkt_disas()
119 int slot, opcode; in snprint_a_pkt_debug() local
132 if (GET_ATTRIB(pkt->insn[i].opcode, A_SUBINSN)) { in snprint_a_pkt_debug()
[all …]
/openbmc/u-boot/post/lib_powerpc/
H A Dcpu_asm.h112 #define ASM_0(opcode) (opcode) argument
113 #define ASM_1(opcode, rd) ((opcode) + \ argument
115 #define ASM_1C(opcode, cr) ((opcode) + \ argument
117 #define ASM_11(opcode, rd, rs) ((opcode) + \ argument
120 #define ASM_11C(opcode, cd, cs) ((opcode) + \ argument
123 #define ASM_11X(opcode, rd, rs) ((opcode) + \ argument
126 #define ASM_11I(opcode, rd, rs, simm) ((opcode) + \ argument
130 #define ASM_11IF(opcode, rd, rs, simm) ((opcode) + \ argument
134 #define ASM_11S(opcode, rd, rs, sh) ((opcode) + \ argument
138 #define ASM_11IX(opcode, rd, rs, imm) ((opcode) + \ argument
[all …]
/openbmc/qemu/target/hexagon/mmvec/
H A Ddecode_ext_mmvec.c34 uint16_t use_opcode = pkt->insn[i].opcode; in check_new_value()
49 if (!GET_ATTRIB(pkt->insn[j].opcode, A_CVI)) { in check_new_value()
66 def_opcode = pkt->insn[def_idx].opcode; in check_new_value()
103 if (GET_ATTRIB(pkt->insn[i].opcode, A_CVI)) { in decode_mmvec_move_cvi_to_end()
105 uint16_t last_opcode = pkt->insn[last_inst].opcode; in decode_mmvec_move_cvi_to_end()
132 uint16_t opcode = pkt->insn[i].opcode; in decode_shuffle_for_execution_vops() local
133 if ((GET_ATTRIB(opcode, A_LOAD) && in decode_shuffle_for_execution_vops()
134 GET_ATTRIB(opcode, A_CVI_NEW)) || in decode_shuffle_for_execution_vops()
135 GET_ATTRIB(opcode, A_CVI_TMP)) { in decode_shuffle_for_execution_vops()
147 uint16_t opcode = pkt->insn[i].opcode; in decode_shuffle_for_execution_vops() local
[all …]
/openbmc/qemu/target/ppc/translate/
H A Dspe-impl.c.inc21 tcg_gen_concat_tl_i64(tmp, cpu_gpr[rA(ctx->opcode)],
22 cpu_gprh[rA(ctx->opcode)]);
28 tcg_gen_mov_tl(cpu_gpr[rD(ctx->opcode)], cpu_gpr[rA(ctx->opcode)]);
29 tcg_gen_mov_tl(cpu_gprh[rD(ctx->opcode)], cpu_gprh[rA(ctx->opcode)]);
45 if (Rc(ctx->opcode)) \
65 tcg_op(cpu_gpr[rD(ctx->opcode)], cpu_gpr[rA(ctx->opcode)], \
66 cpu_gpr[rB(ctx->opcode)]); \
67 tcg_op(cpu_gprh[rD(ctx->opcode)], cpu_gprh[rA(ctx->opcode)], \
68 cpu_gprh[rB(ctx->opcode)]); \
91 tcg_gen_trunc_tl_i32(t0, cpu_gpr[rA(ctx->opcode)]); \
[all …]
H A Dfp-impl.c.inc113 get_fpr(t0, rB(ctx->opcode)); \
115 set_fpr(rD(ctx->opcode), t1); \
120 if (unlikely(Rc(ctx->opcode) != 0)) { \
291 crf = tcg_constant_i32(crfD(ctx->opcode));
292 get_fpr(t0, rA(ctx->opcode));
293 get_fpr(t1, rB(ctx->opcode));
311 crf = tcg_constant_i32(crfD(ctx->opcode));
312 get_fpr(t0, rA(ctx->opcode));
313 get_fpr(t1, rB(ctx->opcode));
331 get_fpr(t0, rB(ctx->opcode));
[all …]
/openbmc/qemu/target/mips/tcg/
H A Dmxu_translate.c679 XRa = extract32(ctx->opcode, 6, 5); in gen_mxu_s32i2m()
680 Rb = extract32(ctx->opcode, 16, 5); in gen_mxu_s32i2m()
700 XRa = extract32(ctx->opcode, 6, 5); in gen_mxu_s32m2i()
701 Rb = extract32(ctx->opcode, 16, 5); in gen_mxu_s32m2i()
726 XRa = extract32(ctx->opcode, 6, 4); in gen_mxu_s8ldd()
727 s8 = extract32(ctx->opcode, 10, 8); in gen_mxu_s8ldd()
728 optn3 = extract32(ctx->opcode, 18, 3); in gen_mxu_s8ldd()
729 Rb = extract32(ctx->opcode, 21, 5); in gen_mxu_s8ldd()
806 XRa = extract32(ctx->opcode, 6, 4); in gen_mxu_s8std()
807 s8 = extract32(ctx->opcode, 10, 8); in gen_mxu_s8std()
[all …]
H A Dmips16e_translate.c.inc413 offset = extended ? offset : (ctx->opcode & 0xff) << 3;
419 offset = extended ? offset : ((int8_t)ctx->opcode) << 3;
460 ctx->opcode = (ctx->opcode << 16) | extend;
461 op = (ctx->opcode >> 11) & 0x1f;
462 sa = (ctx->opcode >> 22) & 0x1f;
463 funct = (ctx->opcode >> 8) & 0x7;
464 rx = xlat((ctx->opcode >> 8) & 0x7);
465 ry = xlat((ctx->opcode >> 5) & 0x7);
466 offset = imm = (int16_t) (((ctx->opcode >> 16) & 0x1f) << 11
467 | ((ctx->opcode >> 21) & 0x3f) << 5
[all …]
H A Dnanomips_translate.c.inc1230 int rt = decode_gpr_gpr3(NANOMIPS_EXTRACT_RT3(ctx->opcode));
1231 int rs = decode_gpr_gpr3(NANOMIPS_EXTRACT_RS3(ctx->opcode));
1233 switch (extract32(ctx->opcode, 2, 2)) {
1251 int rt = extract32(ctx->opcode, 21, 5);
1252 int rs = extract32(ctx->opcode, 16, 5);
1253 int rd = extract32(ctx->opcode, 11, 5);
1255 switch (extract32(ctx->opcode, 3, 7)) {
1257 switch (extract32(ctx->opcode, 10, 1)) {
1270 gen_rdhwr(ctx, rt, rs, extract32(ctx->opcode, 11, 3));
1305 switch (extract32(ctx->opcode, 10, 1)) {
[all …]
H A Dmicromips_translate.c.inc148 /* POOL32A encoding of minor opcode field */
201 /* POOL32AXF encoding of minor opcode field extension */
321 /* POOL32B encoding of minor opcode field (bits 15..12) */
337 /* POOL32C encoding of minor opcode field (bits 15..12) */
358 /* POOL32C LD-EVA encoding of minor opcode field (bits 11..9) */
371 /* POOL32C ST-EVA encoding of minor opcode field (bits 11..9) */
384 /* POOL32F encoding of minor opcode field (bits 5..0) */
462 /* POOL32Fxf encoding of minor opcode extension field */
500 /* POOL32I encoding of minor opcode field (bits 25..21) */
537 /* POOL16A encoding of minor opcode field */
[all …]
/openbmc/u-boot/include/dt-bindings/sound/
H A Dazalia.h25 #define AZALIA_SET_BYTE(codec, nid, opcode, val, byte) \ argument
28 ((opcode) + (byte)) << AZALIA_VERB_SHIFT | \
32 #define AZALIA_WORD(codec, nid, opcode, val) \ argument
33 (AZALIA_SET_BYTE(codec, nid, opcode, val, 0) | \
34 AZALIA_SET_BYTE(codec, nid, opcode, val, 1) | \
35 AZALIA_SET_BYTE(codec, nid, opcode, val, 2) | \
36 AZALIA_SET_BYTE(codec, nid, opcode, val, 3))
/openbmc/qemu/target/ppc/
H A Dinternal.h67 static inline uint32_t name(uint32_t opcode) \
69 return extract32(opcode, shift, nb); \
73 static inline int32_t name(uint32_t opcode) \
75 return sextract32(opcode, shift, nb); \
79 static inline uint32_t name(uint32_t opcode) \
81 return extract32(opcode, shift1, nb1) << nb2 | \
82 extract32(opcode, shift2, nb2); \
89 static inline int16_t name(uint32_t opcode) \
92 (((opcode >> (shift_op_d0)) & ((1 << (d0_bits)) - 1)) << (shift_d0)) | \
93 (((opcode >> (shift_op_d1)) & ((1 << (d1_bits)) - 1)) << (shift_d1)) | \
[all …]
H A Dtranslate.c172 uint32_t opcode; member
2002 TCGv t_ra = cpu_gpr[rA(ctx->opcode)]; in gen_rlwimi()
2003 TCGv t_rs = cpu_gpr[rS(ctx->opcode)]; in gen_rlwimi()
2004 uint32_t sh = SH(ctx->opcode); in gen_rlwimi()
2005 uint32_t mb = MB(ctx->opcode); in gen_rlwimi()
2006 uint32_t me = ME(ctx->opcode); in gen_rlwimi()
2045 if (unlikely(Rc(ctx->opcode) != 0)) { in gen_rlwimi()
2053 TCGv t_ra = cpu_gpr[rA(ctx->opcode)]; in gen_rlwinm()
2054 TCGv t_rs = cpu_gpr[rS(ctx->opcode)]; in gen_rlwinm()
2055 int sh = SH(ctx->opcode); in gen_rlwinm()
[all …]
/openbmc/qemu/hw/ppc/
H A Dspapr_hcall.c84 target_ulong opcode, in h_resize_hpt_prepare() argument
167 target_ulong opcode, in h_resize_hpt_commit() argument
207 target_ulong opcode, target_ulong *args) in h_set_sprg0() argument
216 target_ulong opcode, target_ulong *args) in h_set_dabr() argument
234 target_ulong opcode, target_ulong *args) in h_set_xdabr() argument
255 target_ulong opcode, target_ulong *args) in h_page_init() argument
451 target_ulong opcode, target_ulong *args) in h_register_vpa() argument
494 target_ulong opcode, target_ulong *args) in h_cede() argument
541 target_ulong opcode, target_ulong *args) in h_join() argument
577 target_ulong opcode, target_ulong *args) in h_confer() argument
[all …]
/openbmc/qemu/hw/dma/
H A Dpl330.c309 uint8_t opcode; member
316 void (*exec)(PL330Chan *, uint8_t opcode, uint8_t *args, int len);
635 static void pl330_dmaaddh(PL330Chan *ch, uint8_t opcode, uint8_t *args, int len) in pl330_dmaaddh() argument
637 pl330_dmaadxh(ch, args, extract32(opcode, 1, 1), false); in pl330_dmaaddh()
640 static void pl330_dmaadnh(PL330Chan *ch, uint8_t opcode, uint8_t *args, int len) in pl330_dmaadnh() argument
642 pl330_dmaadxh(ch, args, extract32(opcode, 1, 1), true); in pl330_dmaadnh()
645 static void pl330_dmaend(PL330Chan *ch, uint8_t opcode, in pl330_dmaend() argument
667 static void pl330_dmaflushp(PL330Chan *ch, uint8_t opcode, in pl330_dmaflushp() argument
688 static void pl330_dmago(PL330Chan *ch, uint8_t opcode, uint8_t *args, int len) in pl330_dmago() argument
701 ns = !!(opcode & 2); in pl330_dmago()
[all …]
/openbmc/qemu/hw/scsi/
H A Dsrp.h124 uint8_t opcode; member
142 uint8_t opcode; member
154 uint8_t opcode; member
164 uint8_t opcode; member
170 uint8_t opcode; member
182 uint8_t opcode; member
200 uint8_t opcode; member
232 uint8_t opcode; member
/openbmc/u-boot/arch/arm/mach-zynq/
H A Dps7_spl_init.c88 unsigned long opcode; in ps7_config() local
97 opcode = ptr[0]; in ps7_config()
98 if (opcode == OPCODE_EXIT) in ps7_config()
100 addr = (opcode & OPCODE_ADDRESS_MASK); in ps7_config()
102 switch (opcode & ~OPCODE_ADDRESS_MASK) { in ps7_config()
/openbmc/qemu/disas/
H A Dsparc.c356 #define COMMUTEOP(opcode, op3, arch_mask) \ argument
357 { opcode, F3(2, op3, 0), F3(~2, ~op3, ~0)|ASI(~0), "1,2,d", 0, arch_mask }, \
358 { opcode, F3(2, op3, 1), F3(~2, ~op3, ~1), "1,i,d", 0, arch_mask }, \
359 { opcode, F3(2, op3, 1), F3(~2, ~op3, ~1), "i,1,d", 0, arch_mask }
1246 #define br(opcode, mask, lose, flags) \ argument
1247 { opcode, (mask)|ANNUL, (lose), ",a l", (flags), v6 }, \
1248 { opcode, (mask) , (lose)|ANNUL, "l", (flags), v6 }
1250 #define brx(opcode, mask, lose, flags) /* v9 */ \ argument
1251 { opcode, (mask)|(2<<20)|BPRED, ANNUL|(lose), "Z,G", (flags), v9 }, \
1252 { opcode, (mask)|(2<<20)|BPRED, ANNUL|(lose), ",T Z,G", (flags), v9 }, \
[all …]

123456789