Revision 7267c094 hw/omap2.c
b/hw/omap2.c | ||
---|---|---|
591 | 591 |
{ |
592 | 592 |
int iomemtype; |
593 | 593 |
struct omap_eac_s *s = (struct omap_eac_s *) |
594 |
qemu_mallocz(sizeof(struct omap_eac_s));
|
|
594 |
g_malloc0(sizeof(struct omap_eac_s));
|
|
595 | 595 |
|
596 | 596 |
s->irq = irq; |
597 | 597 |
s->codec.rxdrq = *drq ++; |
... | ... | |
777 | 777 |
{ |
778 | 778 |
int iomemtype; |
779 | 779 |
struct omap_sti_s *s = (struct omap_sti_s *) |
780 |
qemu_mallocz(sizeof(struct omap_sti_s));
|
|
780 |
g_malloc0(sizeof(struct omap_sti_s));
|
|
781 | 781 |
|
782 | 782 |
s->irq = irq; |
783 | 783 |
omap_sti_reset(s); |
... | ... | |
1790 | 1790 |
{ |
1791 | 1791 |
int iomemtype; |
1792 | 1792 |
struct omap_prcm_s *s = (struct omap_prcm_s *) |
1793 |
qemu_mallocz(sizeof(struct omap_prcm_s));
|
|
1793 |
g_malloc0(sizeof(struct omap_prcm_s));
|
|
1794 | 1794 |
|
1795 | 1795 |
s->irq[0] = mpu_int; |
1796 | 1796 |
s->irq[1] = dsp_int; |
... | ... | |
2163 | 2163 |
{ |
2164 | 2164 |
int iomemtype; |
2165 | 2165 |
struct omap_sysctl_s *s = (struct omap_sysctl_s *) |
2166 |
qemu_mallocz(sizeof(struct omap_sysctl_s));
|
|
2166 |
g_malloc0(sizeof(struct omap_sysctl_s));
|
|
2167 | 2167 |
|
2168 | 2168 |
s->mpu = mpu; |
2169 | 2169 |
omap_sysctl_reset(s); |
... | ... | |
2228 | 2228 |
const char *core) |
2229 | 2229 |
{ |
2230 | 2230 |
struct omap_mpu_state_s *s = (struct omap_mpu_state_s *) |
2231 |
qemu_mallocz(sizeof(struct omap_mpu_state_s));
|
|
2231 |
g_malloc0(sizeof(struct omap_mpu_state_s));
|
|
2232 | 2232 |
ram_addr_t sram_base, q2_base; |
2233 | 2233 |
qemu_irq *cpu_irq; |
2234 | 2234 |
qemu_irq dma_irqs[4]; |
Also available in: Unified diff