gem5/src/dev/arm
Andreas Sandberg 76cd4393c0 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.
2015-07-07 09:51:03 +01:00
..
a9scu.cc mem: Remove redundant Packet::allocate calls 2014-12-02 06:07:41 -05:00
a9scu.hh AddrRange: Transition from Range<T> to AddrRange 2012-09-19 06:15:44 -04:00
abstract_nvm.hh arm, dev: Add a NAND flash timing model 2015-04-23 13:37:49 -04:00
AbstractNVM.py arm, dev: Add a NAND flash timing model 2015-04-23 13:37:49 -04:00
amba_device.cc dev, arm: Include PIO size in AmbaDmaDevice constructor 2015-06-09 09:21:12 -04:00
amba_device.hh dev, arm: Include PIO size in AmbaDmaDevice constructor 2015-06-09 09:21:12 -04:00
amba_fake.cc mem: Remove redundant Packet::allocate calls 2014-12-02 06:07:41 -05:00
amba_fake.hh dev/arm: get rid of AmbaDev namespace 2013-07-11 21:56:39 -05:00
base_gic.cc arm: Wire up the GIC with the platform in the base class 2015-02-16 03:34:18 -05:00
base_gic.hh arm: Add a 'clear PPI' method to gic_pl390 2013-10-17 10:20:45 -05:00
energy_ctrl.cc sim: Refactor the serialization base class 2015-07-07 09:51:03 +01:00
energy_ctrl.hh sim: Refactor the serialization base class 2015-07-07 09:51:03 +01:00
EnergyCtrl.py energy: Memory-mapped Energy Controller component 2014-09-20 17:18:23 -04:00
flash_device.cc sim: Refactor the serialization base class 2015-07-07 09:51:03 +01:00
flash_device.hh sim: Refactor the serialization base class 2015-07-07 09:51:03 +01:00
FlashDevice.py arm, dev: Add a NAND flash timing model 2015-04-23 13:37:49 -04:00
generic_timer.cc sim: Refactor the serialization base class 2015-07-07 09:51:03 +01:00
generic_timer.hh sim: Refactor the serialization base class 2015-07-07 09:51:03 +01:00
Gic.py arm: Add a GICv2m device 2015-03-19 04:06:17 -04:00
gic_pl390.cc sim: Refactor the serialization base class 2015-07-07 09:51:03 +01:00
gic_pl390.hh sim: Refactor the serialization base class 2015-07-07 09:51:03 +01:00
gic_v2m.cc arm: Add a GICv2m device 2015-03-19 04:06:17 -04:00
gic_v2m.hh arm: Add a GICv2m device 2015-03-19 04:06:17 -04:00
hdlcd.cc sim: Refactor the serialization base class 2015-07-07 09:51:03 +01:00
hdlcd.hh sim: Refactor the serialization base class 2015-07-07 09:51:03 +01:00
kmi.cc sim: Refactor the serialization base class 2015-07-07 09:51:03 +01:00
kmi.hh sim: Refactor the serialization base class 2015-07-07 09:51:03 +01:00
pl011.cc sim: Refactor the serialization base class 2015-07-07 09:51:03 +01:00
pl011.hh sim: Refactor the serialization base class 2015-07-07 09:51:03 +01:00
pl111.cc sim: Refactor the serialization base class 2015-07-07 09:51:03 +01:00
pl111.hh sim: Refactor the serialization base class 2015-07-07 09:51:03 +01:00
realview.cc arm: Fixes based on UBSan and static analysis 2014-11-14 03:53:51 -05:00
realview.hh dev, arm: Add support for linux generic pci host driver 2014-09-03 07:43:04 -04:00
RealView.py arm, dev: Add support for a memory mapped generic timer 2015-05-23 13:46:56 +01:00
rtc_pl031.cc sim: Refactor the serialization base class 2015-07-07 09:51:03 +01:00
rtc_pl031.hh sim: Refactor the serialization base class 2015-07-07 09:51:03 +01:00
rv_ctrl.cc sim: Refactor the serialization base class 2015-07-07 09:51:03 +01:00
rv_ctrl.hh sim: Refactor the serialization base class 2015-07-07 09:51:03 +01:00
SConscript arm, dev: Add a UFS device 2015-04-23 13:37:50 -04:00
timer_cpulocal.cc sim: Refactor the serialization base class 2015-07-07 09:51:03 +01:00
timer_cpulocal.hh sim: Refactor the serialization base class 2015-07-07 09:51:03 +01:00
timer_sp804.cc sim: Refactor the serialization base class 2015-07-07 09:51:03 +01:00
timer_sp804.hh sim: Refactor the serialization base class 2015-07-07 09:51:03 +01:00
ufs_device.cc sim: Refactor the serialization base class 2015-07-07 09:51:03 +01:00
ufs_device.hh sim: Refactor the serialization base class 2015-07-07 09:51:03 +01:00
UFSHostDevice.py arm, dev: Add a UFS device 2015-04-23 13:37:50 -04:00
vgic.cc sim: Refactor the serialization base class 2015-07-07 09:51:03 +01:00
vgic.hh sim: Refactor the serialization base class 2015-07-07 09:51:03 +01:00