Lines Matching full:note
87 } QEMU_PACKED Note; typedef
91 static void s390x_write_elf64_prstatus(Note *note, S390CPU *cpu, int id) in s390x_write_elf64_prstatus() argument
96 note->hdr.n_type = cpu_to_be32(NT_PRSTATUS); in s390x_write_elf64_prstatus()
98 regs = &(note->contents.prstatus.regs); in s390x_write_elf64_prstatus()
105 note->contents.prstatus.pid = cpu_to_be32(id); in s390x_write_elf64_prstatus()
108 static void s390x_write_elf64_fpregset(Note *note, S390CPU *cpu, int id) in s390x_write_elf64_fpregset() argument
113 note->hdr.n_type = cpu_to_be32(NT_FPREGSET); in s390x_write_elf64_fpregset()
114 note->contents.fpregset.fpc = cpu_to_be32(cpu->env.fpc); in s390x_write_elf64_fpregset()
116 note->contents.fpregset.fprs[i] = cpu_to_be64(*get_freg(cs, i)); in s390x_write_elf64_fpregset()
120 static void s390x_write_elf64_vregslo(Note *note, S390CPU *cpu, int id) in s390x_write_elf64_vregslo() argument
124 note->hdr.n_type = cpu_to_be32(NT_S390_VXRS_LOW); in s390x_write_elf64_vregslo()
126 note->contents.vregslo.vregs[i] = cpu_to_be64(cpu->env.vregs[i][1]); in s390x_write_elf64_vregslo()
130 static void s390x_write_elf64_vregshi(Note *note, S390CPU *cpu, int id) in s390x_write_elf64_vregshi() argument
135 temp_vregshi = ¬e->contents.vregshi; in s390x_write_elf64_vregshi()
137 note->hdr.n_type = cpu_to_be32(NT_S390_VXRS_HIGH); in s390x_write_elf64_vregshi()
144 static void s390x_write_elf64_gscb(Note *note, S390CPU *cpu, int id) in s390x_write_elf64_gscb() argument
148 note->hdr.n_type = cpu_to_be32(NT_S390_GS_CB); in s390x_write_elf64_gscb()
150 note->contents.gscb.gsregs[i] = cpu_to_be64(cpu->env.gscb[i]); in s390x_write_elf64_gscb()
154 static void s390x_write_elf64_timer(Note *note, S390CPU *cpu, int id) in s390x_write_elf64_timer() argument
156 note->hdr.n_type = cpu_to_be32(NT_S390_TIMER); in s390x_write_elf64_timer()
157 note->contents.timer = cpu_to_be64((uint64_t)(cpu->env.cputm)); in s390x_write_elf64_timer()
160 static void s390x_write_elf64_todcmp(Note *note, S390CPU *cpu, int id) in s390x_write_elf64_todcmp() argument
162 note->hdr.n_type = cpu_to_be32(NT_S390_TODCMP); in s390x_write_elf64_todcmp()
163 note->contents.todcmp = cpu_to_be64((uint64_t)(cpu->env.ckc)); in s390x_write_elf64_todcmp()
166 static void s390x_write_elf64_todpreg(Note *note, S390CPU *cpu, int id) in s390x_write_elf64_todpreg() argument
168 note->hdr.n_type = cpu_to_be32(NT_S390_TODPREG); in s390x_write_elf64_todpreg()
169 note->contents.todpreg = cpu_to_be32((uint32_t)(cpu->env.todpr)); in s390x_write_elf64_todpreg()
172 static void s390x_write_elf64_ctrs(Note *note, S390CPU *cpu, int id) in s390x_write_elf64_ctrs() argument
176 note->hdr.n_type = cpu_to_be32(NT_S390_CTRS); in s390x_write_elf64_ctrs()
179 note->contents.ctrs[i] = cpu_to_be64(cpu->env.cregs[i]); in s390x_write_elf64_ctrs()
183 static void s390x_write_elf64_prefix(Note *note, S390CPU *cpu, int id) in s390x_write_elf64_prefix() argument
185 note->hdr.n_type = cpu_to_be32(NT_S390_PREFIX); in s390x_write_elf64_prefix()
186 note->contents.prefix = cpu_to_be32((uint32_t)(cpu->env.psa)); in s390x_write_elf64_prefix()
189 static void s390x_write_elf64_pv(Note *note, S390CPU *cpu, int id) in s390x_write_elf64_pv() argument
191 note->hdr.n_type = cpu_to_be32(NT_S390_PV_CPU_DATA); in s390x_write_elf64_pv()
195 kvm_s390_dump_cpu(cpu, ¬e->contents.dynamic); in s390x_write_elf64_pv()
201 void (*note_contents_func)(Note *note, S390CPU *cpu, int id);
206 {sizeof_field(Note, contents.prstatus), NULL, s390x_write_elf64_prstatus, false},
207 {sizeof_field(Note, contents.fpregset), NULL, s390x_write_elf64_fpregset, false},
212 {sizeof_field(Note, contents.prefix), NULL, s390x_write_elf64_prefix, false},
213 {sizeof_field(Note, contents.ctrs), NULL, s390x_write_elf64_ctrs, false},
214 {sizeof_field(Note, contents.timer), NULL, s390x_write_elf64_timer, false},
215 {sizeof_field(Note, contents.todcmp), NULL, s390x_write_elf64_todcmp, false},
216 {sizeof_field(Note, contents.todpreg), NULL, s390x_write_elf64_todpreg, false},
217 {sizeof_field(Note, contents.vregslo), NULL, s390x_write_elf64_vregslo, false},
218 {sizeof_field(Note, contents.vregshi), NULL, s390x_write_elf64_vregshi, false},
219 {sizeof_field(Note, contents.gscb), NULL, s390x_write_elf64_gscb, false},
230 g_autofree Note *notep = NULL; in s390x_write_elf64_notes()
243 note_size = sizeof(Note) - sizeof(notep->contents) + content_size; in s390x_write_elf64_notes()
253 /* Setup note header data */ in s390x_write_elf64_notes()