* [Qemu-devel] [4922] Fix a bad comparison, spotted by Paul Brook.
@ 2008-07-22 1:57 Andrzej Zaborowski
0 siblings, 0 replies; only message in thread
From: Andrzej Zaborowski @ 2008-07-22 1:57 UTC (permalink / raw)
To: qemu-devel
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
===================================================================
--- trunk/hw/omap_dma.c 2008-07-21 21:38:04 UTC (rev 4921)
+++ trunk/hw/omap_dma.c 2008-07-22 01:57:42 UTC (rev 4922)
@@ -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
===================================================================
--- trunk/hw/soc_dma.c 2008-07-21 21:38:04 UTC (rev 4921)
+++ trunk/hw/soc_dma.c 2008-07-22 01:57:42 UTC (rev 4922)
@@ -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;
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-07-22 1:57 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-22 1:57 [Qemu-devel] [4922] Fix a bad comparison, spotted by Paul Brook Andrzej Zaborowski
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).