From b621de5cd6ca6d925ac70d540223130d3b522947 Mon Sep 17 00:00:00 2001 From: Giacomo Travaglini Date: Tue, 14 Jul 2020 12:36:56 +0100 Subject: [PATCH] dev-arm: A SystemCounterListener doesn't have to be Serializable The class is not making use of any Serializable utility. By removing this dependency we can extend it more easilly Change-Id: Ia321b8f0deeb92adde008551eb921dcfd365e675 Signed-off-by: Giacomo Travaglini Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/39698 Reviewed-by: Andreas Sandberg Maintainer: Andreas Sandberg Tested-by: kokoro --- src/dev/arm/generic_timer.hh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/dev/arm/generic_timer.hh b/src/dev/arm/generic_timer.hh index 16d2ce31b..9a6663cd1 100644 --- a/src/dev/arm/generic_timer.hh +++ b/src/dev/arm/generic_timer.hh @@ -71,7 +71,7 @@ class GenericTimerMemParams; /// Abstract class for elements whose events depend on the counting speed /// of the System Counter -class SystemCounterListener : public Serializable +class SystemCounterListener { public: /// Called from the SystemCounter when a change in counting speed occurred @@ -174,7 +174,8 @@ class SystemCounter : public SimObject }; /// Per-CPU architected timer. -class ArchTimer : public SystemCounterListener, public Drainable +class ArchTimer : public SystemCounterListener, public Drainable, + public Serializable { protected: /// Control register. @@ -297,7 +298,7 @@ class GenericTimer : public SimObject RegVal readMiscReg(int misc_reg, unsigned cpu); protected: - class CoreTimers : public SystemCounterListener + class CoreTimers : public SystemCounterListener, public Serializable { public: CoreTimers(GenericTimer &_parent, ArmSystem &system, unsigned cpu, -- 2.30.2