Lines Matching refs:instword
1209 static int emulate_string_inst(struct pt_regs *regs, u32 instword) in emulate_string_inst() argument
1211 u8 rT = (instword >> 21) & 0x1f; in emulate_string_inst()
1212 u8 rA = (instword >> 16) & 0x1f; in emulate_string_inst()
1213 u8 NB_RB = (instword >> 11) & 0x1f; in emulate_string_inst()
1219 if ((instword & PPC_INST_STRING_MASK) == PPC_INST_LSWX) in emulate_string_inst()
1225 switch (instword & PPC_INST_STRING_MASK) { in emulate_string_inst()
1248 switch ((instword & PPC_INST_STRING_MASK)) { in emulate_string_inst()
1281 static int emulate_popcntb_inst(struct pt_regs *regs, u32 instword) in emulate_popcntb_inst() argument
1286 ra = (instword >> 16) & 0x1f; in emulate_popcntb_inst()
1287 rs = (instword >> 21) & 0x1f; in emulate_popcntb_inst()
1298 static int emulate_isel(struct pt_regs *regs, u32 instword) in emulate_isel() argument
1300 u8 rT = (instword >> 21) & 0x1f; in emulate_isel()
1301 u8 rA = (instword >> 16) & 0x1f; in emulate_isel()
1302 u8 rB = (instword >> 11) & 0x1f; in emulate_isel()
1303 u8 BC = (instword >> 6) & 0x1f; in emulate_isel()
1339 u32 instword; in emulate_instruction() local
1346 if (get_user(instword, (u32 __user *)(regs->nip))) in emulate_instruction()
1350 if ((instword & PPC_INST_MFSPR_PVR_MASK) == PPC_INST_MFSPR_PVR) { in emulate_instruction()
1352 rd = (instword >> 21) & 0x1f; in emulate_instruction()
1358 if ((instword & PPC_INST_DCBA_MASK) == PPC_INST_DCBA) { in emulate_instruction()
1364 if ((instword & PPC_INST_MCRXR_MASK) == PPC_INST_MCRXR) { in emulate_instruction()
1365 int shift = (instword >> 21) & 0x1c; in emulate_instruction()
1375 if ((instword & PPC_INST_STRING_GEN_MASK) == PPC_INST_STRING) { in emulate_instruction()
1380 return emulate_string_inst(regs, instword); in emulate_instruction()
1384 if ((instword & PPC_INST_POPCNTB_MASK) == PPC_INST_POPCNTB) { in emulate_instruction()
1386 return emulate_popcntb_inst(regs, instword); in emulate_instruction()
1390 if ((instword & PPC_INST_ISEL_MASK) == PPC_INST_ISEL) { in emulate_instruction()
1392 return emulate_isel(regs, instword); in emulate_instruction()
1396 if ((instword & PPC_INST_SYNC_MASK) == PPC_INST_SYNC) { in emulate_instruction()
1404 if ((((instword & PPC_INST_MFSPR_DSCR_USER_MASK) == in emulate_instruction()
1406 ((instword & PPC_INST_MFSPR_DSCR_MASK) == in emulate_instruction()
1410 rd = (instword >> 21) & 0x1f; in emulate_instruction()
1415 if ((((instword & PPC_INST_MTSPR_DSCR_USER_MASK) == in emulate_instruction()
1417 ((instword & PPC_INST_MTSPR_DSCR_MASK) == in emulate_instruction()
1421 rd = (instword >> 21) & 0x1f; in emulate_instruction()
1746 u32 instword, rd; in facility_unavailable_exception() local
1790 if (get_user(instword, (u32 __user *)(regs->nip))) { in facility_unavailable_exception()
1796 if ((instword & PPC_INST_MTSPR_DSCR_USER_MASK) in facility_unavailable_exception()
1798 rd = (instword >> 21) & 0x1f; in facility_unavailable_exception()
1806 if ((instword & PPC_INST_MFSPR_DSCR_USER_MASK) in facility_unavailable_exception()