ARM: Fix timer calculations.
The timer calculations were a bit off so time would run faster than it otherwise should
This commit is contained in:
parent
59bf0e7eb4
commit
453dbc772d
1 changed files with 3 additions and 3 deletions
|
@ -178,11 +178,11 @@ Sp804::Timer::restartCounter(uint32_t val)
|
|||
if (!control.timerEnable)
|
||||
return;
|
||||
|
||||
Tick time = clock << power(16, control.timerPrescale);
|
||||
Tick time = clock * power(16, control.timerPrescale);
|
||||
if (control.timerSize)
|
||||
time *= bits(val,15,0);
|
||||
else
|
||||
time *= val;
|
||||
else
|
||||
time *= bits(val,15,0);
|
||||
|
||||
if (zeroEvent.scheduled()) {
|
||||
DPRINTF(Timer, "-- Event was already schedule, de-scheduling\n");
|
||||
|
|
Loading…
Reference in a new issue