diff options
Diffstat (limited to 'sim/arm/armvirt.c')
-rw-r--r-- | sim/arm/armvirt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sim/arm/armvirt.c b/sim/arm/armvirt.c index b8301f7d32a..969085d24f4 100644 --- a/sim/arm/armvirt.c +++ b/sim/arm/armvirt.c @@ -139,7 +139,7 @@ ARMul_MemoryInit (ARMul_State * state, unsigned long initmemsize) if (initmemsize) state->MemSize = initmemsize; - pagetable = (ARMword **) malloc (sizeof (ARMword) * NUMPAGES); + pagetable = (ARMword **) malloc (sizeof (ARMword *) * NUMPAGES); if (pagetable == NULL) return FALSE; |