History log of /gem5/src/dev/mc146818.cc
Revision Date Author Comments
# 11793:ef606668d247 09-Nov-2016 Brandon Potter <brandon.potter@amd.com>

style: [patch 1/22] use /r/3648/ to reorganize includes


# 11320:42ecb523c64a 06-Feb-2016 Steve Reinhardt <steve.reinhardt@amd.com>

style: remove trailing whitespace

Result of running 'hg m5style --skip-all --fix-white -a'.


# 10905:a6ca6831e775 07-Jul-2015 Andreas Sandberg <andreas.sandberg@arm.com>

sim: Refactor the serialization base class

Objects that are can be serialized are supposed to inherit from the
Serializable class. This class is meant to provide a unified API for
such objects. However, so far it has mainly been used by SimObjects
due to some fundamental design limitations. This changeset redesigns
to the serialization interface to make it more generic and hide the
underlying checkpoint storage. Specifically:

* Add a set of APIs to serialize into a subsection of the current
object. Previously, objects that needed this functionality would
use ad-hoc solutions using nameOut() and section name
generation. In the new world, an object that implements the
interface has the methods serializeSection() and
unserializeSection() that serialize into a named /subsection/ of
the current object. Calling serialize() serializes an object into
the current section.

* Move the name() method from Serializable to SimObject as it is no
longer needed for serialization. The fully qualified section name
is generated by the main serialization code on the fly as objects
serialize sub-objects.

* Add a scoped ScopedCheckpointSection helper class. Some objects
need to serialize data structures, that are not deriving from
Serializable, into subsections. Previously, this was done using
nameOut() and manual section name generation. To simplify this,
this changeset introduces a ScopedCheckpointSection() helper
class. When this class is instantiated, it adds a new /subsection/
and subsequent serialization calls during the lifetime of this
helper class happen inside this section (or a subsection in case
of nested sections).

* The serialize() call is now const which prevents accidental state
manipulation during serialization. Objects that rely on modifying
state can use the serializeOld() call instead. The default
implementation simply calls serialize(). Note: The old-style calls
need to be explicitly called using the
serializeOld()/serializeSectionOld() style APIs. These are used by
default when serializing SimObjects.

* Both the input and output checkpoints now use their own named
types. This hides underlying checkpoint implementation from
objects that need checkpointing and makes it easier to change the
underlying checkpoint storage code.


# 10777:a8a5eb637d72 03-Apr-2015 Nikos Nikoleris <nikos.nikoleris@gmail.com>

dev: (un)serialize fix for the RTC and RTC Timer Interrupt events

Restoring from a checkpoint fails if either the RTC or the RTC Timer
Interrrupt event is disabled. The restored machine tried incorrectly
to schedule the next event with negative offset.

Committed by: Nilay Vaish <nilay@cs.wisc.edu>


# 10631:6d6bfdb036ce 03-Jan-2015 Cagdas Dirik <cdirik@micron.com>

dev: prevent RTC events firing before startup

This change includes edits to MC146818 timer to prevent RTC events
firing before startup to comply with SimObject initialization call sequence.

Committed by: Nilay Vaish <nilay@cs.wisc.edu>


# 9739:ea26ba576891 04-Jun-2013 Andreas Sandberg <andreas@sandberg.pp.se>

dev: Clarify why updates are delayed when the MC14818 is activated


# 9731:16f9d1fd37da 02-Jun-2013 Andreas Sandberg <andreas@sandberg.pp.se>

dev: Add support for disabling ticking and the divider in MC146818

Some Linux versions disable updates (regB.set = 1) to prevent the chip
from updating its internal state while the OS is updating it. Support
for this was already there, this patch merely disables the check in
writeReg that prevented it from being enabled. The patch also includes
support for disabling the divider, which is used to control when clock
updates should start after setting the internal RTC state.

These changes are required to boot most vanilla Linux distributions
that update the RTC settings at boot.


# 9730:f3b53a5a559e 02-Jun-2013 Andreas Sandberg <andreas@sandberg.pp.se>

dev: Clean up MC146818 register (A & B) handling

Rewrite reg A & B handling to use the bitunion stuff instead of bit
masking. Add better error messages when the kernel tries to enable
unsupported stuff.


# 8869:fa8dcdd7e26c 01-Mar-2012 Ali Saidi <Ali.Saidi@ARM.com>

ARM: Add RTC device for ARM platforms.

This change implements a PL031 real time clock.


# 8593:92ba80d63abc 10-Oct-2011 Nilay Vaish<nilay@cs.wisc.edu>

mc146818: Correctly serialize tickEvent
'tickEvent' was not being serialized as in its place 'event' was being used.
This patch rectifies this error.


# 8232:b28d06a175be 15-Apr-2011 Nathan Binkert <nate@binkert.org>

trace: reimplement the DTRACE function so it doesn't use a vector
At the same time, rename the trace flags to debug flags since they
have broader usage than simply tracing. This means that
--trace-flags is now --debug-flags and --trace-help is now --debug-help


# 8229:78bf55f23338 15-Apr-2011 Nathan Binkert <nate@binkert.org>

includes: sort all includes


# 7823:dac01f14f20f 08-Jan-2011 Steve Reinhardt <steve.reinhardt@amd.com>

Replace curTick global variable with accessor functions.
This step makes it easy to replace the accessor functions
(which still access a global variable) with ones that access
per-thread curTick values.


# 7683:f81f5f27592b 16-Sep-2010 Steve Reinhardt <steve.reinhardt@amd.com>

devices: undo cset 017baf09599f that added timer drain functions.
It's not the right fix for the checkpoint deadlock problem
Brad was having, and creates another bug where the system can
deadlock on restore. Brad can't reproduce the original bug
right now, so we'll wait until it arises again and then try
to fix it the right way then.


# 7559:017baf09599f 20-Aug-2010 Brad Beckmann <Brad.Beckmann@amd.com>

devices: Fixed periodic interrupts to work with draining

Added drain functions to the RTC and 8254 timer so that periodic interrupts
stop when the system is draining. This patch is needed to checkpoint in
timing mode. Otherwise under certain situations, the event queue will never
be completely empty.


# 7064:586b0e3a12b3 15-Apr-2010 Nathan Binkert <nate@binkert.org>

tick: rename Clock namespace to SimClock


# 6772:788cdecedf9f 18-Nov-2009 Brad Beckmann <Brad.Beckmann@amd.com>

m5: fixed destructor to deschedule the tickEvent and event


# 6677:b741b3e7164b 15-Oct-2009 Brad Beckmann <Brad.Beckmann@amd.com>

fixed MC146818 checkpointing bug and added isa serialization calls to simple_thread


# 6621:835a99bdab10 21-Aug-2009 Gabe Black <gblack@eecs.umich.edu>

RTC: Make calls to writeData update the RTCs internal representation of time.


# 6620:ade9a088bb14 20-Aug-2009 Gabe Black <gblack@eecs.umich.edu>

X86: Make the real time clock actually keep track of time.


# 6617:6d3645f68654 20-Aug-2009 Gabe Black <gblack@eecs.umich.edu>

X86: Don't insist on binary encoding for the RTC since we implement BCD.


# 5949:04ed7a1d9904 25-Feb-2009 Gabe Black <gblack@eecs.umich.edu>

Devices: Make the RTC device reflect the use of BCD in its status registers.


# 5813:624566640d7c 25-Jan-2009 Gabe Black <gblack@eecs.umich.edu>

Dev: Make the RTC device ignore writes to a read only bit.


# 5606:6da7a58b0bc8 09-Oct-2008 Nathan Binkert <nate@binkert.org>

eventq: convert all usage of events to use the new API.
For now, there is still a single global event queue, but this is
necessary for making the steps towards a parallelized m5.


# 5392:c3a45fac35f8 25-Mar-2008 Gabe Black <gblack@eecs.umich.edu>

Devices: Separate out the MC146818 RTC so both Alpha and X86 can use it.