* Typo fix for tx3904tmr use of configuration parameters.
authorFrank Ch. Eigler <fche@redhat.com>
Wed, 10 Jun 1998 08:58:42 +0000 (08:58 +0000)
committerFrank Ch. Eigler <fche@redhat.com>
Wed, 10 Jun 1998 08:58:42 +0000 (08:58 +0000)
  (ChangeLog entry coming later.)

sim/mips/dv-tx3904tmr.c

index b27e9b0bfbf654d27103d950df32cb82f625c1af..98037936cda19d7b72ba1d640f7b3c6ecdfc4d84 100644 (file)
@@ -537,13 +537,13 @@ deliver_tx3904tmr_tick (struct hw *me,
     {
       /* apply internal clock divider */
       if(GET_TCR_CCDE(controller)) /* divisor circuit enabled? */
-       divisor = controller->ext_ticks * (1 << (1 + GET_CCDR_CDR(controller)));
+       divisor = controller->clock_ticks * (1 << (1 + GET_CCDR_CDR(controller)));
       else
-       divisor = controller->ext_ticks;
+       divisor = controller->clock_ticks;
     }
   else
     {
-      divisor = controller->clock_ticks;
+      divisor = controller->ext_ticks;
     }
 
   /* how many times to increase counter? */