changeset ea26ba576891 in /z/repo/gem5
details: http://repo.gem5.org/gem5?cmd=changeset;node=ea26ba576891
description:
        dev: Clarify why updates are delayed when the MC14818 is activated

diffstat:

 src/dev/mc146818.cc |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (16 lines):

diff -r 304a37519d11 -r ea26ba576891 src/dev/mc146818.cc
--- a/src/dev/mc146818.cc       Mon Jun 03 13:55:41 2013 +0200
+++ b/src/dev/mc146818.cc       Tue Jun 04 10:08:21 2013 +0200
@@ -163,8 +163,10 @@
                   if (tickEvent.scheduled())
                       deschedule(tickEvent);
               } else if (rega_dv_disabled(old_rega))  {
-                  // If the divider chain goes from reset to active, we
-                  // need to schedule a tick after precisely 0.5s.
+                  // According to the specification, the next tick
+                  // happens after 0.5s when the divider chain goes
+                  // from reset to active. So, we simply schedule the
+                  // tick after 0.5s.
                   assert(!tickEvent.scheduled());
                   schedule(tickEvent, curTick() + SimClock::Int::s / 2);
               }
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev

Reply via email to