From 72a54ca05979bc38e79b1cdc90ed49fcae03cc04 Mon Sep 17 00:00:00 2001 From: Maksim Kozlov Date: Tue, 26 Jun 2012 20:50:40 +0400 Subject: [PATCH] exynos4210_cmu: Fix size of registers array --- hw/exynos4210_cmu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/exynos4210_cmu.c b/hw/exynos4210_cmu.c index 1ea9d7a3ba..0a887ecef1 100644 --- a/hw/exynos4210_cmu.c +++ b/hw/exynos4210_cmu.c @@ -527,7 +527,7 @@ typedef struct { MemoryRegion iomem; /* registers values */ - uint32_t reg[EXYNOS4210_CMU_REGS_MEM_SIZE]; + uint32_t reg[EXYNOS4210_CMU_REGS_MEM_SIZE / sizeof(uint32_t)]; /* which CMU it is */ Exynos4210Cmu cmu_id; @@ -1360,7 +1360,7 @@ static const VMStateDescription vmstate_exynos4210_cmu = { * TODO: Maybe we should save Exynos4210ClockState structs as well */ VMSTATE_UINT32_ARRAY(reg, Exynos4210CmuState, - EXYNOS4210_CMU_REGS_MEM_SIZE), + EXYNOS4210_CMU_REGS_MEM_SIZE / sizeof(uint32_t)), VMSTATE_END_OF_LIST() } }; -- 2.34.1