dev: Do not serialize timer parameters
This patch removes the intNum and clock from the serialized scalars as these are set by the Python parameters and should not be part of the checkpoint.
This commit is contained in:
parent
406891c62a
commit
9364d35b8b
2 changed files with 2 additions and 7 deletions
|
@ -224,8 +224,6 @@ void
|
||||||
Sp804::Timer::serialize(std::ostream &os)
|
Sp804::Timer::serialize(std::ostream &os)
|
||||||
{
|
{
|
||||||
DPRINTF(Checkpoint, "Serializing Arm Sp804\n");
|
DPRINTF(Checkpoint, "Serializing Arm Sp804\n");
|
||||||
SERIALIZE_SCALAR(intNum);
|
|
||||||
SERIALIZE_SCALAR(clock);
|
|
||||||
|
|
||||||
uint32_t control_serial = control;
|
uint32_t control_serial = control;
|
||||||
SERIALIZE_SCALAR(control_serial);
|
SERIALIZE_SCALAR(control_serial);
|
||||||
|
@ -249,9 +247,6 @@ Sp804::Timer::unserialize(Checkpoint *cp, const std::string §ion)
|
||||||
{
|
{
|
||||||
DPRINTF(Checkpoint, "Unserializing Arm Sp804\n");
|
DPRINTF(Checkpoint, "Unserializing Arm Sp804\n");
|
||||||
|
|
||||||
UNSERIALIZE_SCALAR(intNum);
|
|
||||||
UNSERIALIZE_SCALAR(clock);
|
|
||||||
|
|
||||||
uint32_t control_serial;
|
uint32_t control_serial;
|
||||||
UNSERIALIZE_SCALAR(control_serial);
|
UNSERIALIZE_SCALAR(control_serial);
|
||||||
control = control_serial;
|
control = control_serial;
|
||||||
|
|
|
@ -83,10 +83,10 @@ class Sp804 : public AmbaDevice
|
||||||
Sp804 *parent;
|
Sp804 *parent;
|
||||||
|
|
||||||
/** Number of interrupt to cause/clear */
|
/** Number of interrupt to cause/clear */
|
||||||
uint32_t intNum;
|
const uint32_t intNum;
|
||||||
|
|
||||||
/** Number of ticks in a clock input */
|
/** Number of ticks in a clock input */
|
||||||
Tick clock;
|
const Tick clock;
|
||||||
|
|
||||||
/** Control register as specified above */
|
/** Control register as specified above */
|
||||||
CTRL control;
|
CTRL control;
|
||||||
|
|
Loading…
Reference in a new issue