]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
sim: bfin: make the core timer output port an edge
authorMike Frysinger <vapier@gentoo.org>
Tue, 26 Apr 2011 02:15:32 +0000 (22:15 -0400)
committerMike Frysinger <vapier@gentoo.org>
Mon, 1 Jan 2024 23:23:25 +0000 (18:23 -0500)
The output port of the core timer is currently always high and never goes
low, so make sure we lower the level after sending it out.  This way the
other side (the CEC) knows when to delatch things.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2011-04-26  Mike Frysinger  <vapier@gentoo.org>

* dv-bfin_ctimer.c (bfin_ctimer_expire): Call hw_port_event a 2nd
time with a level of 0.

sim/bfin/dv-bfin_ctimer.c

index 349f7c27f23a0da77fc12523b1d608287e44a6f1..cba7373d15237626a8d1cd960f5cb544adc16f3f 100644 (file)
@@ -77,7 +77,9 @@ bfin_ctimer_expire (struct hw *me, void *data)
       ctimer->handler = NULL;
     }
 
+  /* This is an edge interrupt.  */
   hw_port_event (me, IVG_IVTMR, 1);
+  hw_port_event (me, IVG_IVTMR, 0);
 }
 
 static void