Revision 2137b4cc hw/soc_dma.c

b/hw/soc_dma.c
50 50
void transfer_fifo2fifo(struct soc_dma_ch_s *ch)
51 51
{
52 52
    if (ch->bytes > fifo_size)
53
        fifo_buf = realloc(fifo_buf, fifo_size = ch->bytes);
53
        fifo_buf = qemu_realloc(fifo_buf, fifo_size = ch->bytes);
54 54

  
55 55
    /* Implement as transfer_fifo2linear + transfer_linear2fifo.  */
56 56
    ch->io_fn[0](ch->io_opaque[0], fifo_buf, ch->bytes);
......
262 262
    struct memmap_entry_s *entry;
263 263
    struct dma_s *dma = (struct dma_s *) soc;
264 264

  
265
    dma->memmap = realloc(dma->memmap, sizeof(*entry) *
265
    dma->memmap = qemu_realloc(dma->memmap, sizeof(*entry) *
266 266
                    (dma->memmap_size + 1));
267 267
    entry = soc_dma_lookup(dma, virt_base);
268 268

  
......
314 314
    struct memmap_entry_s *entry;
315 315
    struct dma_s *dma = (struct dma_s *) soc;
316 316

  
317
    dma->memmap = realloc(dma->memmap, sizeof(*entry) *
317
    dma->memmap = qemu_realloc(dma->memmap, sizeof(*entry) *
318 318
                    (dma->memmap_size + 1));
319 319
    entry = soc_dma_lookup(dma, virt_base);
320 320

  

Also available in: Unified diff