aboutsummaryrefslogtreecommitdiff
path: root/sim/ppc/corefile.c
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2021-12-06 02:42:00 -0500
committerMike Frysinger <vapier@gentoo.org>2022-01-06 01:17:39 -0500
commit95e40d770e95c0d5317c2566a7976bd3421f380a (patch)
treeee409c8b3279492f88f1b3b5e675e86d254b899d /sim/ppc/corefile.c
parente4c803f5bb08e946f0550260b39f71eff0192262 (diff)
downloadgdb-95e40d770e95c0d5317c2566a7976bd3421f380a.zip
gdb-95e40d770e95c0d5317c2566a7976bd3421f380a.tar.gz
gdb-95e40d770e95c0d5317c2566a7976bd3421f380a.tar.bz2
sim: ppc: migrate to standard uintXX_t types
Drop the sim-specific unsignedXX types and move to the standard uintXX_t types that C11 provides.
Diffstat (limited to 'sim/ppc/corefile.c')
-rw-r--r--sim/ppc/corefile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sim/ppc/corefile.c b/sim/ppc/corefile.c
index ac8aa5d..1b3eeef 100644
--- a/sim/ppc/corefile.c
+++ b/sim/ppc/corefile.c
@@ -227,7 +227,7 @@ core_attach(core *memory,
if (attach == attach_raw_memory) {
/* Padd out the raw buffer to ensure that ADDR starts on a
correctly aligned boundary */
- int padding = (addr % sizeof (unsigned64));
+ int padding = (addr % sizeof (uint64_t));
free_buffer = zalloc(nr_bytes + padding);
buffer = (char*)free_buffer + padding;
}