dev, arm: Refactor and clean up the generic timer model
Review Request #2762 - Created May 7, 2015 and submitted
| Information | |
|---|---|
| Andreas Sandberg | |
| gem5 | |
| default | |
| Reviewers | |
| Default | |
Changeset 10839:97a0dceec537 --------------------------- dev, arm: Refactor and clean up the generic timer model This changeset cleans up the generic timer a bit and moves most of the register juggling from the ISA code into a separate class in the same source file as the rest of the generic timer. It also removes the assumption that there is always 8 or fewer CPUs in the system. Instead of having a fixed limit, we now instantiate per-core timers as they are requested. This is all in preparation for other patches that add support for virtual timers and a memory mapped interface.
ARM regressions pass. All backends build.
Posted (May 19, 2015, 3:37 p.m.)
-
src/dev/arm/generic_timer.hh (Diff revision 1) -
Would it be possible to change the name to something a bit simpler?
Now I see where GIC can be useful, neat\!
