summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorBALATON Zoltan2019-01-03 17:27:24 +0100
committerDavid Gibson2019-02-04 08:44:17 +0100
commit7d8ccf58d5ee83b140220e34b58ac7d4b5dc6a21 (patch)
treec35393c7a215774efb1cf61793c0ca210de62c81 /include
parentsam460ex: Clean up SPD EEPROM creation (diff)
downloadqemu-7d8ccf58d5ee83b140220e34b58ac7d4b5dc6a21.tar.gz
qemu-7d8ccf58d5ee83b140220e34b58ac7d4b5dc6a21.tar.xz
qemu-7d8ccf58d5ee83b140220e34b58ac7d4b5dc6a21.zip
ppc4xx: Use ram_addr_t in ppc4xx_sdram_adjust()
To avoid overflow if larger values are added later use ram_addr_t for the sdram_bank_sizes parameter to match ram_size to which it is compared. Signed-off-by: BALATON Zoltan <balaton@eik.bme.hu> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'include')
-rw-r--r--include/hw/ppc/ppc4xx.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/hw/ppc/ppc4xx.h b/include/hw/ppc/ppc4xx.h
index 3a2a04c8ce..39a7ba1ce6 100644
--- a/include/hw/ppc/ppc4xx.h
+++ b/include/hw/ppc/ppc4xx.h
@@ -43,7 +43,7 @@ ram_addr_t ppc4xx_sdram_adjust(ram_addr_t ram_size, int nr_banks,
MemoryRegion ram_memories[],
hwaddr ram_bases[],
hwaddr ram_sizes[],
- const unsigned int sdram_bank_sizes[]);
+ const ram_addr_t sdram_bank_sizes[]);
void ppc4xx_sdram_init (CPUPPCState *env, qemu_irq irq, int nbanks,
MemoryRegion ram_memories[],