aboutsummaryrefslogtreecommitdiff
path: root/sim/arm/armvirt.c
diff options
context:
space:
mode:
authorPaul Brook <paul@codesourcery.com>2005-09-19 14:21:09 +0000
committerPaul Brook <paul@codesourcery.com>2005-09-19 14:21:09 +0000
commitc4793bacbfaf388c162ba7ec3cad590a83071bdd (patch)
tree9695937e6dea54bd82c7d15bcefe0613f846cd51 /sim/arm/armvirt.c
parent6a8492b56206bf8da71d94d96a76b15f995b8621 (diff)
downloadgdb-c4793bacbfaf388c162ba7ec3cad590a83071bdd.zip
gdb-c4793bacbfaf388c162ba7ec3cad590a83071bdd.tar.gz
gdb-c4793bacbfaf388c162ba7ec3cad590a83071bdd.tar.bz2
2005-09-19 Paul Brook <paul@codesourcery.com>
* armdefs.h: Define ARMsword and ARMsdword. Use stdint.h when available. * armemu.c: Use them. * armvirt.c (ARMul_MemoryInit): Use correct type for size. * configure.ac: Check for stdint.h. * config.in: Regenerate. * configure: Regenerate.
Diffstat (limited to 'sim/arm/armvirt.c')
-rw-r--r--sim/arm/armvirt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sim/arm/armvirt.c b/sim/arm/armvirt.c
index b8301f7..969085d 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;