[4922] Fix a bad comparison, spotted by Paul Brook.
Revision: 4922
http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=4922 Author: balrog Date: 2008-07-22 01:57:42 +0000 (Tue, 22 Jul 2008)
Log Message:
-----------
Fix a bad comparison, spotted by Paul Brook.
Modified Paths:
--------------
trunk/hw/omap_dma.c
trunk/hw/soc_dma.c
Modified: trunk/hw/omap_dma.c
===================================================================
hw/omap_dma.c +3 -0
@@ -668,6 +668,9 @@/* If the channel is async, update cpc */ if (!ch->sync && frames) ch->cpc = a->dest &0xffff ; + +/* TODO: if the destination port is IMIF or EMIFF, set the dirty +* bits on it. */ }omap_dma_interrupts_update (s);
Modified: trunk/hw/soc_dma.c
===================================================================
hw/soc_dma.c +2 -1
@@ -49,7 +49,7 @@static int fifo_size;void transfer_fifo2fifo (struct soc_dma_ch_s *ch) { -if (ch->bytes < fifo_size) +if (ch->bytes > fifo_size) fifo_buf =realloc (fifo_buf, fifo_size = ch->bytes);/* Implement as transfer_fifo2linear + transfer_linear2fifo. */
@@ -251,6 +251,7 @@ }soc_dma_reset (&s->soc); + fifo_size =0 ;return &s->soc; }