Revision 7267c094 hw/tc58128.c
b/hw/tc58128.c | ||
---|---|---|
30 | 30 |
int ret, blocks; |
31 | 31 |
|
32 | 32 |
dev->state = WAIT; |
33 |
dev->flash_contents = qemu_mallocz(FLASH_SIZE);
|
|
33 |
dev->flash_contents = g_malloc0(FLASH_SIZE);
|
|
34 | 34 |
memset(dev->flash_contents, 0xff, FLASH_SIZE); |
35 | 35 |
if (!dev->flash_contents) { |
36 | 36 |
fprintf(stderr, "could not alloc memory for flash\n"); |
Also available in: Unified diff