Index: common/ChangeLog
[deliverable/binutils-gdb.git] / sim / mn10300 / dv-mn103tim.c
index 9b1e0d2e7ee37704c71f0c00321b77a5ee8cb415..a6272d8bc3a30139269962b488e60a910786a8b5 100644 (file)
@@ -568,7 +568,7 @@ do_counter_event (struct hw *me,
                  void *data)
 {
   struct mn103tim *timers = hw_data(me);
-  int timer_nr = (int) data;
+  long timer_nr = (long) data;
   int next_timer;
 
   /* Check if counting is still enabled. */
@@ -609,7 +609,7 @@ do_counter6_event (struct hw *me,
                  void *data)
 {
   struct mn103tim *timers = hw_data(me);
-  int timer_nr = (int) data;
+  long timer_nr = (long) data;
   int next_timer;
 
   /* Check if counting is still enabled. */
@@ -705,7 +705,7 @@ write_base_reg (struct hw *me,
 static void
 write_mode_reg (struct hw *me,
                struct mn103tim *timers,
-               int timer_nr,
+               long timer_nr,
                const void *source,
                unsigned nr_bytes)
      /* for timers 0 to 5 */
@@ -716,7 +716,8 @@ write_mode_reg (struct hw *me,
 
   if ( nr_bytes != 1 )
     {
-      hw_abort (me, "bad write size of %d bytes to TM%dMD.", nr_bytes, timer_nr);
+      hw_abort (me, "bad write size of %d bytes to TM%ldMD.", nr_bytes,
+               timer_nr);
     }
 
   mode_val = *(unsigned8 *)source;
@@ -742,7 +743,7 @@ write_mode_reg (struct hw *me,
        {
          if ( timer_nr == 0 || timer_nr == 4 )
            {
-             hw_abort(me, "Timer %d cannot be cascaded.", timer_nr);
+             hw_abort(me, "Timer %ld cannot be cascaded.", timer_nr);
            }
        }
       else
@@ -839,7 +840,7 @@ write_tm6md (struct hw *me,
 {
   unsigned8 mode_val0 = 0x00, mode_val1 = 0x00;
   unsigned32 div_ratio;
-  int timer_nr = 6;
+  long timer_nr = 6;
 
   unsigned_word offset = address - timers->block[0].base;
   
This page took 0.028583 seconds and 4 git commands to generate.