diff options
author | Omar Sandoval <osandov@osandov.com> | 2024-06-18 22:00:12 -0700 |
---|---|---|
committer | Thomas Huth <thuth@redhat.com> | 2024-06-24 08:13:58 +0200 |
commit | 87c9d801a60c0003e1b570d47a91921f49c6006f (patch) | |
tree | fb11595d553b2cc15f11901d6bf2ecef8faa999e /target/s390x | |
parent | 7c66540db45a726029e5165f6e5c34008f08edec (diff) | |
download | qemu-87c9d801a60c0003e1b570d47a91921f49c6006f.zip qemu-87c9d801a60c0003e1b570d47a91921f49c6006f.tar.gz qemu-87c9d801a60c0003e1b570d47a91921f49c6006f.tar.bz2 |
target/s390x/arch_dump: use correct byte order for pid
The pid field of prstatus needs to be big endian like all of the other
fields.
Fixes: f738f296eaae ("s390x/arch_dump: pass cpuid into notes sections")
Signed-off-by: Omar Sandoval <osandov@osandov.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Message-ID: <5929f76d536d355afd04af51bf293695a1065118.1718771802.git.osandov@osandov.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
Diffstat (limited to 'target/s390x')
-rw-r--r-- | target/s390x/arch_dump.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target/s390x/arch_dump.c b/target/s390x/arch_dump.c index 7e8a1b4..029d91d 100644 --- a/target/s390x/arch_dump.c +++ b/target/s390x/arch_dump.c @@ -102,7 +102,7 @@ static void s390x_write_elf64_prstatus(Note *note, S390CPU *cpu, int id) regs->acrs[i] = cpu_to_be32(cpu->env.aregs[i]); regs->gprs[i] = cpu_to_be64(cpu->env.regs[i]); } - note->contents.prstatus.pid = id; + note->contents.prstatus.pid = cpu_to_be32(id); } static void s390x_write_elf64_fpregset(Note *note, S390CPU *cpu, int id) |