-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
More accurately emulate MIPS Count register.
The MIPS Count register is incremented every 2 cycles, not every cycle (according to sys/mips/include/clock.h). Also, instead of using muldiv64() to convert from ticks to nanoseconds: y = muldiv64(x, get_ticks_per_sec(), TIMER_FREQ) where y = number of system ticks and x = device ticks we can just do: y = x * 10ns (for 100Mhz clock)
- Loading branch information
Showing
1 changed file
with
10 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
b79c3d9
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This breaks the time in two different ways: #55 and #54.