aboutsummaryrefslogtreecommitdiff
path: root/sim/ppc/corefile.c
diff options
context:
space:
mode:
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;
}