[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 09/11] target/s390x/arch_dump: use correct byte order for pid
From: |
Thomas Huth |
Subject: |
[PULL 09/11] target/s390x/arch_dump: use correct byte order for pid |
Date: |
Mon, 24 Jun 2024 11:10:41 +0200 |
From: Omar Sandoval <osandov@osandov.com>
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>
---
target/s390x/arch_dump.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/target/s390x/arch_dump.c b/target/s390x/arch_dump.c
index 7e8a1b4fc0..029d91d93a 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)
--
2.45.2
- [PULL 00/11] s390x and qtest patches 2024-06-24, Thomas Huth, 2024/06/24
- [PULL 01/11] hw/s390x/ccw: Make s390_ccw_get_dev_info() return a bool, Thomas Huth, 2024/06/24
- [PULL 02/11] s390x/css: Make CCWDeviceClass::realize return bool, Thomas Huth, 2024/06/24
- [PULL 04/11] s390x/css: Make S390CCWDeviceClass::realize return bool, Thomas Huth, 2024/06/24
- [PULL 06/11] vfio/ccw: Fix the missed unrealize() call in error path, Thomas Huth, 2024/06/24
- [PULL 05/11] vfio/ccw: Use the 'Error **errp' argument of vfio_ccw_realize(), Thomas Huth, 2024/06/24
- [PULL 03/11] hw/s390x/ccw: Remove local Error variable from s390_ccw_realize(), Thomas Huth, 2024/06/24
- [PULL 08/11] tests/qtest/fuzz: fix memleak in qos_fuzz.c, Thomas Huth, 2024/06/24
- [PULL 10/11] MAINTAINERS: Cover all tests/qtest/migration-* files, Thomas Huth, 2024/06/24
- [PULL 09/11] target/s390x/arch_dump: use correct byte order for pid,
Thomas Huth <=
- [PULL 11/11] target/s390x: Add a CONFIG switch to disable legacy CPUs, Thomas Huth, 2024/06/24
- [PULL 07/11] vfio/{ap, ccw}: Use warn_report_err() for IRQ notifier registration errors, Thomas Huth, 2024/06/24
- Re: [PULL 00/11] s390x and qtest patches 2024-06-24, Richard Henderson, 2024/06/24