filename | src/sh4/timer.c |
changeset | 326:0c107e0d0fe0 |
prev | 264:e3b8a3ab32b8 |
next | 414:fd8e96bc513e |
author | nkeynes |
date | Wed Sep 12 11:31:16 2007 +0000 (16 years ago) |
permissions | -rw-r--r-- |
last change | Fix load_spreg/store_spreg Fix PREF Add jump target debug checking |
file | annotate | diff | log | raw |
1.1 --- a/src/sh4/timer.c Sat Jan 06 04:05:32 2007 +00001.2 +++ b/src/sh4/timer.c Wed Sep 12 11:31:16 2007 +00001.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 to1.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;
.