filename | src/sh4/timer.c |
changeset | 1127:4b8194e3974c |
prev | 1124:aacaae9812ea |
author | nkeynes |
date | Fri Aug 24 08:53:50 2012 +1000 (11 years ago) |
permissions | -rw-r--r-- |
last change | Move the generated prologue/epilogue code out into a common entry stub (reduces space requirements) and pre-save all saved registers. Change FASTCALL to use 3 regs instead of 2 since we can now keep everything in regs. |
file | annotate | diff | log | raw |
1.1 --- a/src/sh4/timer.c Sat Sep 11 09:58:22 2010 +10001.2 +++ b/src/sh4/timer.c Fri Aug 24 08:53:50 2012 +10001.3 @@ -283,13 +283,16 @@1.4 reg &= 0xFFF;1.5 switch( reg ) {1.6 case TCNT0:1.7 - TMU_count( 0, sh4r.slice_cycle );1.8 + if( TMU_IS_RUNNING(0) )1.9 + TMU_count( 0, sh4r.slice_cycle );1.10 break;1.11 case TCNT1:1.12 - TMU_count( 1, sh4r.slice_cycle );1.13 + if( TMU_IS_RUNNING(1) )1.14 + TMU_count( 1, sh4r.slice_cycle );1.15 break;1.16 case TCNT2:1.17 - TMU_count( 2, sh4r.slice_cycle );1.18 + if( TMU_IS_RUNNING(2) )1.19 + TMU_count( 2, sh4r.slice_cycle );1.20 break;1.21 }1.22 return MMIO_READ( TMU, reg );
.