Lines Matching full:note

94 static void aarch64_note_init(struct aarch64_note *note, DumpState *s,  in aarch64_note_init()  argument
98 memset(note, 0, sizeof(*note)); in aarch64_note_init()
100 note->hdr.n_namesz = cpu_to_dump32(s, namesz); in aarch64_note_init()
101 note->hdr.n_descsz = cpu_to_dump32(s, descsz); in aarch64_note_init()
102 note->hdr.n_type = cpu_to_dump32(s, type); in aarch64_note_init()
104 memcpy(note->name, name, namesz); in aarch64_note_init()
111 struct aarch64_note note; in aarch64_write_elf64_prfpreg() local
114 aarch64_note_init(&note, s, "CORE", 5, NT_PRFPREG, sizeof(note.vfp)); in aarch64_write_elf64_prfpreg()
118 note.vfp.vregs[2 * i + 0] = cpu_to_dump64(s, q[0]); in aarch64_write_elf64_prfpreg()
119 note.vfp.vregs[2 * i + 1] = cpu_to_dump64(s, q[1]); in aarch64_write_elf64_prfpreg()
128 uint64_t tmp = note.vfp.vregs[2*i]; in aarch64_write_elf64_prfpreg()
129 note.vfp.vregs[2 * i] = note.vfp.vregs[2 * i + 1]; in aarch64_write_elf64_prfpreg()
130 note.vfp.vregs[2 * i + 1] = tmp; in aarch64_write_elf64_prfpreg()
134 note.vfp.fpsr = cpu_to_dump32(s, vfp_get_fpsr(env)); in aarch64_write_elf64_prfpreg()
135 note.vfp.fpcr = cpu_to_dump32(s, vfp_get_fpcr(env)); in aarch64_write_elf64_prfpreg()
137 ret = f(&note, AARCH64_PRFPREG_NOTE_SIZE, s); in aarch64_write_elf64_prfpreg()
188 struct aarch64_note *note; in aarch64_write_elf64_sve() local
196 note = g_malloc0(AARCH64_SVE_NOTE_SIZE(env)); in aarch64_write_elf64_sve()
197 buf = (uint8_t *)&note->sve; in aarch64_write_elf64_sve()
199 aarch64_note_init(note, s, "LINUX", 6, NT_ARM_SVE, sve_size_vq(vq)); in aarch64_write_elf64_sve()
201 note->sve.size = cpu_to_dump32(s, sve_size_vq(vq)); in aarch64_write_elf64_sve()
202 note->sve.max_size = cpu_to_dump32(s, sve_size_vq(cpu->sve_max_vq)); in aarch64_write_elf64_sve()
203 note->sve.vl = cpu_to_dump16(s, vq * 16); in aarch64_write_elf64_sve()
204 note->sve.max_vl = cpu_to_dump16(s, cpu->sve_max_vq * 16); in aarch64_write_elf64_sve()
205 note->sve.flags = cpu_to_dump16(s, 1); in aarch64_write_elf64_sve()
224 ret = f(note, AARCH64_SVE_NOTE_SIZE(env), s); in aarch64_write_elf64_sve()
225 g_free(note); in aarch64_write_elf64_sve()
238 struct aarch64_note note; in arm_cpu_write_elf64_note() local
244 aarch64_note_init(&note, s, "CORE", 5, NT_PRSTATUS, sizeof(note.prstatus)); in arm_cpu_write_elf64_note()
246 note.prstatus.pr_pid = cpu_to_dump32(s, cpuid); in arm_cpu_write_elf64_note()
247 note.prstatus.pr_fpvalid = cpu_to_dump32(s, 1); in arm_cpu_write_elf64_note()
259 note.prstatus.pr_reg.regs[i] = cpu_to_dump64(s, env->xregs[i]); in arm_cpu_write_elf64_note()
261 note.prstatus.pr_reg.sp = cpu_to_dump64(s, sp); in arm_cpu_write_elf64_note()
262 note.prstatus.pr_reg.pc = cpu_to_dump64(s, env->pc); in arm_cpu_write_elf64_note()
263 note.prstatus.pr_reg.pstate = cpu_to_dump64(s, pstate); in arm_cpu_write_elf64_note()
265 ret = f(&note, AARCH64_PRSTATUS_NOTE_SIZE, s); in arm_cpu_write_elf64_note()
327 static void arm_note_init(struct arm_note *note, DumpState *s, in arm_note_init() argument
331 memset(note, 0, sizeof(*note)); in arm_note_init()
333 note->hdr.n_namesz = cpu_to_dump32(s, namesz); in arm_note_init()
334 note->hdr.n_descsz = cpu_to_dump32(s, descsz); in arm_note_init()
335 note->hdr.n_type = cpu_to_dump32(s, type); in arm_note_init()
337 memcpy(note->name, name, namesz); in arm_note_init()
343 struct arm_note note; in arm_write_elf32_vfp() local
346 arm_note_init(&note, s, "LINUX", 6, NT_ARM_VFP, sizeof(note.vfp)); in arm_write_elf32_vfp()
349 note.vfp.vregs[i] = cpu_to_dump64(s, *aa32_vfp_dreg(env, i)); in arm_write_elf32_vfp()
352 note.vfp.fpscr = cpu_to_dump32(s, vfp_get_fpscr(env)); in arm_write_elf32_vfp()
354 ret = f(&note, ARM_VFP_NOTE_SIZE, s); in arm_write_elf32_vfp()
365 struct arm_note note; in arm_cpu_write_elf32_note() local
371 arm_note_init(&note, s, "CORE", 5, NT_PRSTATUS, sizeof(note.prstatus)); in arm_cpu_write_elf32_note()
373 note.prstatus.pr_pid = cpu_to_dump32(s, cpuid); in arm_cpu_write_elf32_note()
374 note.prstatus.pr_fpvalid = cpu_to_dump32(s, fpvalid); in arm_cpu_write_elf32_note()
377 note.prstatus.pr_reg.regs[i] = cpu_to_dump32(s, env->regs[i]); in arm_cpu_write_elf32_note()
379 note.prstatus.pr_reg.regs[16] = cpu_to_dump32(s, cpsr_read(env)); in arm_cpu_write_elf32_note()
381 ret = f(&note, ARM_PRSTATUS_NOTE_SIZE, s); in arm_cpu_write_elf32_note()