Only reset counter when needed

git-svn-id: https://mspsim.svn.sourceforge.net/svnroot/mspsim/mspsim@776 23d1a52b-0c3c-0410-b72d-8f29ab48fe35
This commit is contained in:
nifi 2011-01-20 18:36:35 +00:00
parent bc2cf0c9c7
commit 00a8877b74
1 changed files with 1 additions and 1 deletions

View File

@ -748,8 +748,8 @@ public class Timer extends IOUnit {
// Check if up or updwn and reset if counter too high...
if (counter > data && (mode == UPDWN || mode == UP)) {
counter = 0;
resetCounter(cycles);
}
resetCounter(cycles);
}
ccr[index].tccr = data;