Lines Matching refs:code
352 u32 code[32]; in test_multi_instruction_patching() local
379 ppc_inst_write(code, inst64); in test_multi_instruction_patching()
380 check(!patch_instructions((u32 *)(addr64 + 1), code, 24, true)); in test_multi_instruction_patching()
392 for (int i = 0; i < ARRAY_SIZE(code); i++) in test_multi_instruction_patching()
393 code[i] = i + 1; in test_multi_instruction_patching()
395 check(!patch_instructions(addr32 + 1, code, sizeof(code), false)); in test_multi_instruction_patching()
398 check(!memcmp(&addr32[1], code, sizeof(code))); in test_multi_instruction_patching()
399 check(addr32[ARRAY_SIZE(code) + 1] == 0); in test_multi_instruction_patching()
416 ppc_inst_write(code, inst64); in test_multi_instruction_patching()
417 check(!patch_instructions((u32 *)(addr64 + 1), code, 24, true)); in test_multi_instruction_patching()
429 for (int i = 0; i < ARRAY_SIZE(code); i++) in test_multi_instruction_patching()
430 code[i] = i + 1; in test_multi_instruction_patching()
432 check(!patch_instructions(addr32 + 1, code, sizeof(code), false)); in test_multi_instruction_patching()
435 check(!memcmp(&addr32[1], code, sizeof(code))); in test_multi_instruction_patching()
436 check(addr32[ARRAY_SIZE(code) + 1] == 0); in test_multi_instruction_patching()