mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 01:33:56 -06:00
s390x: Common access to floating point registers
Provide a routine to access the correct floating point register, to simplify future expansion. Suggested-by: David Hildenbrand <dahi@linux.vnet.ibm.com> Signed-off-by: Eric Farman <farman@linux.vnet.ibm.com> Reviewed-by: David Hildenbrand <dahi@linux.vnet.ibm.com> Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
This commit is contained in:
parent
0915aed584
commit
c498d8e36e
7 changed files with 19 additions and 10 deletions
|
@ -78,11 +78,12 @@ static void s390x_write_elf64_prstatus(Note *note, S390CPU *cpu)
|
|||
static void s390x_write_elf64_fpregset(Note *note, S390CPU *cpu)
|
||||
{
|
||||
int i;
|
||||
CPUS390XState *cs = &cpu->env;
|
||||
|
||||
note->hdr.n_type = cpu_to_be32(NT_FPREGSET);
|
||||
note->contents.fpregset.fpc = cpu_to_be32(cpu->env.fpc);
|
||||
for (i = 0; i <= 15; i++) {
|
||||
note->contents.fpregset.fprs[i] = cpu_to_be64(cpu->env.fregs[i].ll);
|
||||
note->contents.fpregset.fprs[i] = cpu_to_be64(get_freg(cs, i)->ll);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue