Lines Matching refs:words
56 state->words[0] = (word1 << 16) | word0; in disasm_instr()
59 state->words[0] = word1; in disasm_instr()
65 state->words[1] = (word1 << 16) | word0; in disasm_instr()
72 fieldA = (IS_BIT(state->words[0], 16)) ? in disasm_instr()
73 FIELD_s25(state->words[0]) : in disasm_instr()
74 FIELD_s21(state->words[0]); in disasm_instr()
76 state->delay_slot = IS_BIT(state->words[0], 5); in disasm_instr()
82 if (IS_BIT(state->words[0], 16)) { in disasm_instr()
85 fieldA = (IS_BIT(state->words[0], 17)) ? in disasm_instr()
86 (FIELD_s25(state->words[0]) & ~0x3) : in disasm_instr()
87 FIELD_s21(state->words[0]); in disasm_instr()
92 fieldA = FIELD_s9(state->words[0]) & ~0x3; in disasm_instr()
96 state->delay_slot = IS_BIT(state->words[0], 5); in disasm_instr()
103 state->di = BITS(state->words[0], 11, 11); in disasm_instr()
106 state->x = BITS(state->words[0], 6, 6); in disasm_instr()
107 state->zz = BITS(state->words[0], 7, 8); in disasm_instr()
108 state->aa = BITS(state->words[0], 9, 10); in disasm_instr()
109 state->wb_reg = FIELD_B(state->words[0]); in disasm_instr()
113 state->src1 = state->words[1]; in disasm_instr()
117 state->src2 = FIELD_s9(state->words[0]); in disasm_instr()
118 state->dest = FIELD_A(state->words[0]); in disasm_instr()
124 state->di = BITS(state->words[0], 5, 5); in disasm_instr()
127 state->aa = BITS(state->words[0], 3, 4); in disasm_instr()
128 state->zz = BITS(state->words[0], 1, 2); in disasm_instr()
129 state->src1 = FIELD_C(state->words[0]); in disasm_instr()
132 state->src1 = state->words[1]; in disasm_instr()
136 state->wb_reg = FIELD_B(state->words[0]); in disasm_instr()
140 state->src2 = state->words[1]; in disasm_instr()
144 state->src3 = FIELD_s9(state->words[0]); in disasm_instr()
148 subopcode = MINOR_OPCODE(state->words[0]); in disasm_instr()
163 op_format = BITS(state->words[0], 22, 23); in disasm_instr()
165 (!IS_BIT(state->words[0], 5)))) { in disasm_instr()
166 fieldC = FIELD_C(state->words[0]); in disasm_instr()
169 fieldC = state->words[1]; in disasm_instr()
175 && (IS_BIT(state->words[0], 5)))) { in disasm_instr()
176 fieldC = FIELD_C(state->words[0]); in disasm_instr()
179 fieldC = FIELD_s12(state->words[0]); in disasm_instr()
195 if (BITS(state->words[0], 22, 23) == 3) { in disasm_instr()
197 fieldC = FIELD_C(state->words[0]); in disasm_instr()
210 state->di = BITS(state->words[0], 15, 15); in disasm_instr()
213 state->x = BITS(state->words[0], 16, 16); in disasm_instr()
214 state->zz = BITS(state->words[0], 17, 18); in disasm_instr()
215 state->aa = BITS(state->words[0], 22, 23); in disasm_instr()
216 state->wb_reg = FIELD_B(state->words[0]); in disasm_instr()
219 state->src1 = state->words[1]; in disasm_instr()
224 state->src2 = FIELD_C(state->words[0]); in disasm_instr()
227 state->src2 = state->words[1]; in disasm_instr()
232 state->dest = FIELD_A(state->words[0]); in disasm_instr()
240 switch (BITS(state->words[0], 22, 23)) { in disasm_instr()
242 if (FIELD_C(state->words[0]) == REG_LIMM) in disasm_instr()
250 if ((!IS_BIT(state->words[0], 5)) && in disasm_instr()
251 (FIELD_C(state->words[0]) == REG_LIMM)) in disasm_instr()
261 switch (BITS(state->words[0], 22, 23)) { in disasm_instr()
263 if ((FIELD_B(state->words[0]) == REG_LIMM) || in disasm_instr()
264 (FIELD_C(state->words[0]) == REG_LIMM)) in disasm_instr()
272 if ((!IS_BIT(state->words[0], 5)) && in disasm_instr()
273 ((FIELD_B(state->words[0]) == REG_LIMM) || in disasm_instr()
274 (FIELD_C(state->words[0]) == REG_LIMM))) in disasm_instr()
284 state->zz = BITS(state->words[0], 3, 4); in disasm_instr()
285 state->src1 = get_reg(FIELD_S_B(state->words[0]), regs, cregs); in disasm_instr()
286 state->src2 = get_reg(FIELD_S_C(state->words[0]), regs, cregs); in disasm_instr()
287 state->dest = FIELD_S_A(state->words[0]); in disasm_instr()
292 if ((BITS(state->words[0], 3, 4) < 3) && in disasm_instr()
293 (FIELD_S_H(state->words[0]) == REG_LIMM)) in disasm_instr()
298 subopcode = BITS(state->words[0], 5, 7); in disasm_instr()
304 state->target = get_reg(FIELD_S_B(state->words[0]), in disasm_instr()
311 switch (BITS(state->words[0], 8, 10)) { in disasm_instr()
328 state->src1 = get_reg(FIELD_S_B(state->words[0]), regs, cregs); in disasm_instr()
329 state->src2 = FIELD_S_u7(state->words[0]); in disasm_instr()
330 state->dest = FIELD_S_C(state->words[0]); in disasm_instr()
346 state->src1 = get_reg(FIELD_S_B(state->words[0]), regs, cregs); in disasm_instr()
347 state->src2 = FIELD_S_u6(state->words[0]); in disasm_instr()
348 state->dest = FIELD_S_C(state->words[0]); in disasm_instr()
353 state->src1 = get_reg(FIELD_S_C(state->words[0]), regs, cregs); in disasm_instr()
354 state->src2 = get_reg(FIELD_S_B(state->words[0]), regs, cregs); in disasm_instr()
355 state->src3 = FIELD_S_u7(state->words[0]); in disasm_instr()
361 state->src1 = get_reg(FIELD_S_C(state->words[0]), regs, cregs); in disasm_instr()
362 state->src2 = get_reg(FIELD_S_B(state->words[0]), regs, cregs); in disasm_instr()
363 state->src3 = FIELD_S_u6(state->words[0]); in disasm_instr()
370 state->write = BITS(state->words[0], 6, 6); in disasm_instr()
371 state->zz = BITS(state->words[0], 5, 5); in disasm_instr()
376 state->src2 = FIELD_S_u7(state->words[0]); in disasm_instr()
377 state->dest = FIELD_S_B(state->words[0]); in disasm_instr()
379 state->src1 = get_reg(FIELD_S_B(state->words[0]), regs, in disasm_instr()
382 state->src3 = FIELD_S_u7(state->words[0]); in disasm_instr()
388 state->zz = BITS(state->words[0], 9, 10); in disasm_instr()
390 state->src2 = state->zz ? FIELD_S_s10(state->words[0]) : in disasm_instr()
391 FIELD_S_s11(state->words[0]); in disasm_instr()
397 state->src2 = FIELD_S_u10(state->words[0]); in disasm_instr()
398 state->dest = FIELD_S_B(state->words[0]); in disasm_instr()
402 state->target = FIELD_S_s8(state->words[0]) + (addr & ~0x03); in disasm_instr()
408 fieldA = (BITS(state->words[0], 9, 10) == 3) ? in disasm_instr()
409 FIELD_S_s7(state->words[0]) : in disasm_instr()
410 FIELD_S_s10(state->words[0]); in disasm_instr()
417 state->target = FIELD_S_s13(state->words[0]) + (addr & ~0x03); in disasm_instr()