Search
lxdream.org :: lxdream :: r326:0c107e0d0fe0
lxdream 0.9.1
released Jun 29
Download Now
changeset326:0c107e0d0fe0
parent325:5717ae5d4746
child327:00d55a462af3
authornkeynes
dateThu Jan 25 10:18:42 2007 +0000 (12 years ago)
Increase SH4 speed to 100Mips
src/sh4/timer.c
1.1 --- a/src/sh4/timer.c Thu Jan 25 10:16:32 2007 +0000
1.2 +++ b/src/sh4/timer.c Thu Jan 25 10:18:42 2007 +0000
1.3 @@ -1,5 +1,5 @@
1.4 /**
1.5 - * $Id: timer.c,v 1.6 2007-01-06 04:05:32 nkeynes Exp $
1.6 + * $Id: timer.c,v 1.7 2007-01-25 10:18:42 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 @@ -53,7 +53,7 @@
1.11 case FRQCR: /* Frequency control */
1.12 div = ifc_divider[(val >> 6) & 0x07];
1.13 sh4_cpu_freq = sh4_input_freq / div;
1.14 - sh4_cpu_period = 4000 * div / sh4_input_freq;
1.15 + sh4_cpu_period = 2000 * div / sh4_input_freq;
1.16 div = ifc_divider[(val >> 3) & 0x07];
1.17 sh4_bus_freq = sh4_input_freq / div;
1.18 sh4_bus_period = 1000 * div / sh4_input_freq;
.