Revision 7267c094 hw/pxa2xx.c
b/hw/pxa2xx.c | ||
---|---|---|
1764 | 1764 |
{ |
1765 | 1765 |
int iomemtype; |
1766 | 1766 |
PXA2xxI2SState *s = (PXA2xxI2SState *) |
1767 |
qemu_mallocz(sizeof(PXA2xxI2SState));
|
|
1767 |
g_malloc0(sizeof(PXA2xxI2SState));
|
|
1768 | 1768 |
|
1769 | 1769 |
s->irq = irq; |
1770 | 1770 |
s->rx_dma = rx_dma; |
... | ... | |
2025 | 2025 |
{ |
2026 | 2026 |
int iomemtype; |
2027 | 2027 |
PXA2xxFIrState *s = (PXA2xxFIrState *) |
2028 |
qemu_mallocz(sizeof(PXA2xxFIrState));
|
|
2028 |
g_malloc0(sizeof(PXA2xxFIrState));
|
|
2029 | 2029 |
|
2030 | 2030 |
s->irq = irq; |
2031 | 2031 |
s->rx_dma = rx_dma; |
... | ... | |
2064 | 2064 |
PXA2xxState *s; |
2065 | 2065 |
int iomemtype, i; |
2066 | 2066 |
DriveInfo *dinfo; |
2067 |
s = (PXA2xxState *) qemu_mallocz(sizeof(PXA2xxState));
|
|
2067 |
s = (PXA2xxState *) g_malloc0(sizeof(PXA2xxState));
|
|
2068 | 2068 |
|
2069 | 2069 |
if (revision && strncmp(revision, "pxa27", 5)) { |
2070 | 2070 |
fprintf(stderr, "Machine requires a PXA27x processor.\n"); |
... | ... | |
2162 | 2162 |
vmstate_register(NULL, 0, &vmstate_pxa2xx_pm, s); |
2163 | 2163 |
|
2164 | 2164 |
for (i = 0; pxa27x_ssp[i].io_base; i ++); |
2165 |
s->ssp = (SSIBus **)qemu_mallocz(sizeof(SSIBus *) * i);
|
|
2165 |
s->ssp = (SSIBus **)g_malloc0(sizeof(SSIBus *) * i);
|
|
2166 | 2166 |
for (i = 0; pxa27x_ssp[i].io_base; i ++) { |
2167 | 2167 |
DeviceState *dev; |
2168 | 2168 |
dev = sysbus_create_simple("pxa2xx-ssp", pxa27x_ssp[i].io_base, |
... | ... | |
2207 | 2207 |
int iomemtype, i; |
2208 | 2208 |
DriveInfo *dinfo; |
2209 | 2209 |
|
2210 |
s = (PXA2xxState *) qemu_mallocz(sizeof(PXA2xxState));
|
|
2210 |
s = (PXA2xxState *) g_malloc0(sizeof(PXA2xxState));
|
|
2211 | 2211 |
|
2212 | 2212 |
s->env = cpu_init("pxa255"); |
2213 | 2213 |
if (!s->env) { |
... | ... | |
2298 | 2298 |
vmstate_register(NULL, 0, &vmstate_pxa2xx_pm, s); |
2299 | 2299 |
|
2300 | 2300 |
for (i = 0; pxa255_ssp[i].io_base; i ++); |
2301 |
s->ssp = (SSIBus **)qemu_mallocz(sizeof(SSIBus *) * i);
|
|
2301 |
s->ssp = (SSIBus **)g_malloc0(sizeof(SSIBus *) * i);
|
|
2302 | 2302 |
for (i = 0; pxa255_ssp[i].io_base; i ++) { |
2303 | 2303 |
DeviceState *dev; |
2304 | 2304 |
dev = sysbus_create_simple("pxa2xx-ssp", pxa255_ssp[i].io_base, |
Also available in: Unified diff