Revision 7267c094 hw/omap_dma.c
b/hw/omap_dma.c | ||
---|---|---|
1620 | 1620 |
{ |
1621 | 1621 |
int iomemtype, num_irqs, memsize, i; |
1622 | 1622 |
struct omap_dma_s *s = (struct omap_dma_s *) |
1623 |
qemu_mallocz(sizeof(struct omap_dma_s));
|
|
1623 |
g_malloc0(sizeof(struct omap_dma_s));
|
|
1624 | 1624 |
|
1625 | 1625 |
if (model <= omap_dma_3_1) { |
1626 | 1626 |
num_irqs = 6; |
... | ... | |
2039 | 2039 |
{ |
2040 | 2040 |
int iomemtype, i; |
2041 | 2041 |
struct omap_dma_s *s = (struct omap_dma_s *) |
2042 |
qemu_mallocz(sizeof(struct omap_dma_s));
|
|
2042 |
g_malloc0(sizeof(struct omap_dma_s));
|
|
2043 | 2043 |
|
2044 | 2044 |
s->model = omap_dma_4; |
2045 | 2045 |
s->chans = chans; |
Also available in: Unified diff