Lines Matching refs:instrs

124 	unsigned int instrs[3], *dest;
131 instrs[0] = 0x60000000; /* nop */
132 instrs[1] = 0x60000000; /* nop */
133 instrs[2] = 0x60000000; /* nop */
137 instrs[i++] = 0x7d4802a6; /* mflr r10 */
138 instrs[i++] = 0x60000000; /* branch patched below */
139 instrs[i++] = 0x7d4803a6; /* mtlr r10 */
141 instrs[i++] = 0x7e0006ac; /* eieio + bit 6 hint */
143 instrs[i++] = 0x7c0004ac; /* hwsync */
144 instrs[i++] = 0xe94d0000; /* ld r10,0(r13) */
145 instrs[i++] = 0x63ff0000; /* ori 31,31,0 speculation barrier */
153 patch_instruction((struct ppc_inst *)dest, ppc_inst(instrs[0]));
161 ppc_inst(instrs[1]));
163 patch_instruction((struct ppc_inst *)(dest + 2), ppc_inst(instrs[2]));
176 unsigned int instrs[6], *dest;
183 instrs[0] = 0x60000000; /* nop */
184 instrs[1] = 0x60000000; /* nop */
185 instrs[2] = 0x60000000; /* nop */
186 instrs[3] = 0x60000000; /* nop */
187 instrs[4] = 0x60000000; /* nop */
188 instrs[5] = 0x60000000; /* nop */
193 instrs[i++] = 0x7db14ba6; /* mtspr 0x131, r13 (HSPRG1) */
194 instrs[i++] = 0x7db04aa6; /* mfspr r13, 0x130 (HSPRG0) */
196 instrs[i++] = 0x7db243a6; /* mtsprg 2,r13 */
197 instrs[i++] = 0x7db142a6; /* mfsprg r13,1 */
199 instrs[i++] = 0x7c0004ac; /* hwsync */
200 instrs[i++] = 0xe9ad0000; /* ld r13,0(r13) */
201 instrs[i++] = 0x63ff0000; /* ori 31,31,0 speculation barrier */
203 instrs[i++] = 0x7db14aa6; /* mfspr r13, 0x131 (HSPRG1) */
205 instrs[i++] = 0x7db242a6; /* mfsprg r13,2 */
208 instrs[i++] = 0x7e0006ac; /* eieio + bit 6 hint */
216 patch_instruction((struct ppc_inst *)dest, ppc_inst(instrs[0]));
217 patch_instruction((struct ppc_inst *)(dest + 1), ppc_inst(instrs[1]));
218 patch_instruction((struct ppc_inst *)(dest + 2), ppc_inst(instrs[2]));
219 patch_instruction((struct ppc_inst *)(dest + 3), ppc_inst(instrs[3]));
220 patch_instruction((struct ppc_inst *)(dest + 4), ppc_inst(instrs[4]));
221 patch_instruction((struct ppc_inst *)(dest + 5), ppc_inst(instrs[5]));
254 unsigned int instrs[4], *dest;
261 instrs[0] = 0x60000000; /* nop */
262 instrs[1] = 0x60000000; /* nop */
263 instrs[2] = 0x60000000; /* nop */
264 instrs[3] = 0x4e800020; /* blr */
268 instrs[3] = 0x60000000; /* nop */
273 instrs[i++] = 0x63ff0000; /* ori 31,31,0 speculation barrier */
274 instrs[i++] = 0x63de0000; /* ori 30,30,0 L1d flush*/
278 instrs[i++] = 0x7c12dba6; /* mtspr TRIG2,r0 (SPR #882) */
285 patch_instruction((struct ppc_inst *)dest, ppc_inst(instrs[0]));
287 patch_instruction((struct ppc_inst *)(dest + 1), ppc_inst(instrs[1]));
288 patch_instruction((struct ppc_inst *)(dest + 2), ppc_inst(instrs[2]));
289 patch_instruction((struct ppc_inst *)(dest + 3), ppc_inst(instrs[3]));
305 unsigned int instrs[3], *dest;
309 instrs[0] = 0x60000000; /* nop */
310 instrs[1] = 0x60000000; /* nop */
311 instrs[2] = 0x60000000; /* nop */
315 instrs[i++] = 0x7d4802a6; /* mflr r10 */
316 instrs[i++] = 0x60000000; /* branch patched below */
317 instrs[i++] = 0x7d4803a6; /* mtlr r10 */
321 instrs[i++] = 0x63ff0000; /* ori 31,31,0 speculation barrier */
322 instrs[i++] = 0x63de0000; /* ori 30,30,0 L1d flush*/
326 instrs[i++] = 0x7c12dba6; /* mtspr TRIG2,r0 (SPR #882) */
335 patch_instruction((struct ppc_inst *)dest, ppc_inst(instrs[0]));
341 patch_instruction((struct ppc_inst *)(dest + 1), ppc_inst(instrs[1]));
343 patch_instruction((struct ppc_inst *)(dest + 2), ppc_inst(instrs[2]));
353 patch_instruction((struct ppc_inst *)dest, ppc_inst(instrs[0]));
359 patch_instruction((struct ppc_inst *)(dest + 1), ppc_inst(instrs[1]));
361 patch_instruction((struct ppc_inst *)(dest + 2), ppc_inst(instrs[2]));
390 unsigned int instrs[3], *dest;
397 instrs[0] = 0x60000000; /* nop */
398 instrs[1] = 0x60000000; /* nop */
399 instrs[2] = 0x60000000; /* nop */
403 instrs[0] = 0x48000010;
407 instrs[i++] = 0x63ff0000; /* ori 31,31,0 speculation barrier */
408 instrs[i++] = 0x63de0000; /* ori 30,30,0 L1d flush*/
412 instrs[i++] = 0x7c12dba6; /* mtspr TRIG2,r0 (SPR #882) */
419 patch_instruction((struct ppc_inst *)dest, ppc_inst(instrs[0]));
420 patch_instruction((struct ppc_inst *)(dest + 1), ppc_inst(instrs[1]));
421 patch_instruction((struct ppc_inst *)(dest + 2), ppc_inst(instrs[2]));