projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
run copyright.sh for 2011.
[deliverable/binutils-gdb.git]
/
sim
/
mn10300
/
dv-mn103tim.c
diff --git
a/sim/mn10300/dv-mn103tim.c
b/sim/mn10300/dv-mn103tim.c
index cd79f918fbf7b56fafad2fee7c9a3cd5393919d5..9b71cd22ad1f7c346d4894093f950aa95019357f 100644
(file)
--- a/
sim/mn10300/dv-mn103tim.c
+++ b/
sim/mn10300/dv-mn103tim.c
@@
-1,21
+1,21
@@
/* This file is part of the program GDB, the GNU debugger.
/* This file is part of the program GDB, the GNU debugger.
- Copyright (C) 1998 Free Software Foundation, Inc.
+ Copyright (C) 1998, 2003, 2007, 2008, 2009, 2010, 2011
+ Free Software Foundation, Inc.
Contributed by Cygnus Solutions.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
Contributed by Cygnus Solutions.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version
2
of the License, or
+ the Free Software Foundation; either version
3
of the License, or
(at your option) any later version.
(at your option) any later version.
-
+
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
-
+
You should have received a copy of the GNU General Public License
You should have received a copy of the GNU General Public License
- along with this program; if not, write to the Free Software
- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
*/
@@
-495,6
+495,7
@@
read_special_timer6_reg (struct hw *me,
break;
default:
break;
default:
+ break;
}
break;
}
}
break;
}
@@
-567,7
+568,7
@@
do_counter_event (struct hw *me,
void *data)
{
struct mn103tim *timers = hw_data(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. */
int next_timer;
/* Check if counting is still enabled. */
@@
-608,7
+609,7
@@
do_counter6_event (struct hw *me,
void *data)
{
struct mn103tim *timers = hw_data(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. */
int next_timer;
/* Check if counting is still enabled. */
@@
-704,7
+705,7
@@
write_base_reg (struct hw *me,
static void
write_mode_reg (struct hw *me,
struct mn103tim *timers,
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 */
const void *source,
unsigned nr_bytes)
/* for timers 0 to 5 */
@@
-715,7
+716,8
@@
write_mode_reg (struct hw *me,
if ( nr_bytes != 1 )
{
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;
}
mode_val = *(unsigned8 *)source;
@@
-741,7
+743,7
@@
write_mode_reg (struct hw *me,
{
if ( timer_nr == 0 || timer_nr == 4 )
{
{
if ( timer_nr == 0 || timer_nr == 4 )
{
- hw_abort(me, "Timer %d cannot be cascaded.", timer_nr);
+ hw_abort(me, "Timer %
l
d cannot be cascaded.", timer_nr);
}
}
else
}
}
else
@@
-838,7
+840,7
@@
write_tm6md (struct hw *me,
{
unsigned8 mode_val0 = 0x00, mode_val1 = 0x00;
unsigned32 div_ratio;
{
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;
unsigned_word offset = address - timers->block[0].base;
@@
-950,6
+952,7
@@
write_special_timer6_reg (struct hw *me,
break;
default:
break;
default:
+ break;
}
break;
}
}
break;
}
This page took
0.036877 seconds
and
4
git commands to generate.