aboutsummaryrefslogtreecommitdiff
path: root/hw/tcx.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/tcx.c')
-rw-r--r--hw/tcx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/tcx.c b/hw/tcx.c
index 4aa4b62ad5..f0e8f2fc4d 100644
--- a/hw/tcx.c
+++ b/hw/tcx.c
@@ -506,7 +506,7 @@ void tcx_init(target_phys_addr_t addr, int vram_size, int width, int height,
int size;
uint8_t *vram_base;
- vram_offset = qemu_ram_alloc(vram_size);
+ vram_offset = qemu_ram_alloc(vram_size * (1 + 4 + 4));
vram_base = qemu_get_ram_ptr(vram_offset);
s = qemu_mallocz(sizeof(TCXState));