Search
lxdream.org :: lxdream/src/sh4/timer.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/sh4/timer.c
changeset 422:61a0598e07ff
prev414:fd8e96bc513e
next561:533f6b478071
author nkeynes
date Tue Nov 20 08:31:34 2007 +0000 (16 years ago)
permissions -rw-r--r--
last change Fix TRAPA (translator) and add test case
file annotate diff log raw
1.1 --- a/src/sh4/timer.c Wed Oct 03 08:22:27 2007 +0000
1.2 +++ b/src/sh4/timer.c Tue Nov 20 08:31:34 2007 +0000
1.3 @@ -1,5 +1,5 @@
1.4 /**
1.5 - * $Id: timer.c,v 1.8 2007-10-03 08:22:27 nkeynes Exp $
1.6 + * $Id: timer.c,v 1.9 2007-10-06 09:03:24 nkeynes Exp $
1.7 *
1.8 * SH4 Timer/Clock peripheral modules (CPG, TMU, RTC), combined together to
1.9 * keep things simple (they intertwine a bit).
1.10 @@ -144,7 +144,7 @@
1.11 if( (oldtcr & TCR_UNF) == 0 ) {
1.12 tcr = tcr & (~TCR_UNF);
1.13 } else {
1.14 - if( (oldtcr & TCR_UNIE == 0) &&
1.15 + if( ((oldtcr & TCR_UNIE) == 0) &&
1.16 (tcr & TCR_IRQ_ACTIVE) == TCR_IRQ_ACTIVE ) {
1.17 intc_raise_interrupt( INT_TMU_TUNI0 + timer );
1.18 } else if( (oldtcr & TCR_UNIE) != 0 &&
.