qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Andrzej Zaborowski <balrogg@gmail.com>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] [4922] Fix a bad comparison, spotted by Paul Brook.
Date: Tue, 22 Jul 2008 01:57:43 +0000	[thread overview]
Message-ID: <E1KL78J-0007Ia-6B@cvs.savannah.gnu.org> (raw)

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;
 }

                 reply	other threads:[~2008-07-22  1:57 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E1KL78J-0007Ia-6B@cvs.savannah.gnu.org \
    --to=balrogg@gmail.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).