changeset b43a56850757 in /z/repo/gem5
details: http://repo.gem5.org/gem5?cmd=changeset;node=b43a56850757
description:
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.
diffstat:
src/dev/arm/timer_sp804.cc | 5 -----
src/dev/arm/timer_sp804.hh | 4 ++--
2 files changed, 2 insertions(+), 7 deletions(-)
diffs (38 lines):
diff -r 965d857ac791 -r b43a56850757 src/dev/arm/timer_sp804.cc
--- a/src/dev/arm/timer_sp804.cc Mon Jan 07 13:05:39 2013 -0500
+++ b/src/dev/arm/timer_sp804.cc Mon Jan 07 13:05:39 2013 -0500
@@ -224,8 +224,6 @@
Sp804::Timer::serialize(std::ostream &os)
{
DPRINTF(Checkpoint, "Serializing Arm Sp804\n");
- SERIALIZE_SCALAR(intNum);
- SERIALIZE_SCALAR(clock);
uint32_t control_serial = control;
SERIALIZE_SCALAR(control_serial);
@@ -249,9 +247,6 @@
{
DPRINTF(Checkpoint, "Unserializing Arm Sp804\n");
- UNSERIALIZE_SCALAR(intNum);
- UNSERIALIZE_SCALAR(clock);
-
uint32_t control_serial;
UNSERIALIZE_SCALAR(control_serial);
control = control_serial;
diff -r 965d857ac791 -r b43a56850757 src/dev/arm/timer_sp804.hh
--- a/src/dev/arm/timer_sp804.hh Mon Jan 07 13:05:39 2013 -0500
+++ b/src/dev/arm/timer_sp804.hh Mon Jan 07 13:05:39 2013 -0500
@@ -83,10 +83,10 @@
Sp804 *parent;
/** Number of interrupt to cause/clear */
- uint32_t intNum;
+ const uint32_t intNum;
/** Number of ticks in a clock input */
- Tick clock;
+ const Tick clock;
/** Control register as specified above */
CTRL control;
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev