dev: Prevent MC146818 timer RTC events firing before startup
Review Request #2545 - Created Nov. 28, 2014 and submitted
| Information | |
|---|---|
| Cagdas Dirik | |
| gem5 | |
| Reviewers | |
| Default | |
| abardsley, ahansson, ali | |
This change includes edits to MC146818 timer to prevent RTC events firing before startup to comply with SimObject initialization call sequence.
Review request changed
Updated (Nov. 28, 2014, 1:14 p.m.)
Description: |
|
|---|
Posted (Nov. 29, 2014, 2:18 a.m.)
-
src/dev/mc146818.hh (Diff revision 1) -
no need for virtual, perhaps also choose a different name to avoid confusion, schedule()?
-
src/dev/mc146818.hh (Diff revision 1) -
can also do it in the initialisation list
-
src/dev/mc146818.hh (Diff revision 1) -
no need for virtual again, I would suggest to name it schedule() or similar
-
src/dev/mc146818.cc (Diff revision 1) -
An alternative to have methods on the objects would be to simply call schedule(event, curTick() + event.getOffset()); or similar
Overall it looks great. The summary should start with a keyword and be < 65 char. Have a look at http://www.gem5.org/Commit_Access. The list is fairly well hidden. In your case I would suggest dev. Also, the check you do in simulate.py should probably be a patch on its own.
Review request changed
Updated (Dec. 3, 2014, 9:16 a.m.)
Summary: |
|
|---|
Looks good. What about the regressions?
Review request changed
Updated (Dec. 11, 2014, 9:37 p.m.)
Change Summary:
This update is to fix regression failures for alpha and mips.
Diff: |
Revision 7 (+38 -9) |
|---|
Review request changed
Updated (Dec. 11, 2014, 9:50 p.m.)
Ship It!
