Lines Matching full:note

78 static void loongarch_note_init(struct loongarch_note *note, DumpState *s,  in loongarch_note_init()  argument
82 memset(note, 0, sizeof(*note)); in loongarch_note_init()
84 note->hdr.n_namesz = cpu_to_dump32(s, namesz); in loongarch_note_init()
85 note->hdr.n_descsz = cpu_to_dump32(s, descsz); in loongarch_note_init()
86 note->hdr.n_type = cpu_to_dump32(s, type); in loongarch_note_init()
88 memcpy(note->name, name, namesz); in loongarch_note_init()
95 struct loongarch_note note; in loongarch_write_elf64_fprpreg() local
98 loongarch_note_init(&note, s, "CORE", 5, NT_PRFPREG, sizeof(note.fpu)); in loongarch_write_elf64_fprpreg()
99 note.fpu.fcsr = cpu_to_dump64(s, env->fcsr0); in loongarch_write_elf64_fprpreg()
100 note.fpu.fcc = cpu_to_dump64(s, read_fcc(env)); in loongarch_write_elf64_fprpreg()
103 note.fpu.fpr[i] = cpu_to_dump64(s, env->fpr[i].vreg.UD[0]); in loongarch_write_elf64_fprpreg()
106 ret = f(&note, LOONGARCH_PRFPREG_NOTE_SIZE, s); in loongarch_write_elf64_fprpreg()
117 struct loongarch_note note; in loongarch_cpu_write_elf64_note() local
121 loongarch_note_init(&note, s, "CORE", 5, NT_PRSTATUS, in loongarch_cpu_write_elf64_note()
122 sizeof(note.prstatus)); in loongarch_cpu_write_elf64_note()
123 note.prstatus.pr_pid = cpu_to_dump32(s, cpuid); in loongarch_cpu_write_elf64_note()
124 note.prstatus.pr_fpvalid = cpu_to_dump32(s, 1); in loongarch_cpu_write_elf64_note()
127 note.prstatus.pr_reg.gpr[i] = cpu_to_dump64(s, env->gpr[i]); in loongarch_cpu_write_elf64_note()
129 note.prstatus.pr_reg.csr_era = cpu_to_dump64(s, env->CSR_ERA); in loongarch_cpu_write_elf64_note()
130 note.prstatus.pr_reg.csr_badv = cpu_to_dump64(s, env->CSR_BADV); in loongarch_cpu_write_elf64_note()
131 ret = f(&note, LOONGARCH_PRSTATUS_NOTE_SIZE, s); in loongarch_cpu_write_elf64_note()