arm: Demote PCEvent subclass pointers to PCEvent pointers.

Nothing is actually accessed through these pointers. This simplifies
their declration, and gives more flexibility when setting up those
events.

Change-Id: If857de5c8df37b6ead7eae53e3c0c6c3103938c0
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/24112
Tested-by: kokoro <noreply+kokoro@google.com>
Maintainer: Giacomo Travaglini <giacomo.travaglini@arm.com>
Reviewed-by: Bobby R. Bruce <bbruce@ucdavis.edu>
This commit is contained in:
Gabe Black
2019-12-27 14:09:17 -08:00
parent c38298d931
commit 951650156c
2 changed files with 5 additions and 5 deletions

View File

@@ -88,7 +88,7 @@ class FsFreebsd : public ArmISA::FsWorkload
* processor for the appropriate amount of time. This is not functionally
* required but does speed up simulation.
*/
FreeBSD::SkipUDelay<SkipFunc> *skipUDelay = nullptr;
PCEvent *skipUDelay = nullptr;
/** These variables store addresses of important data structures
* that are normaly kept coherent at boot with cache mainetence operations.

View File

@@ -63,9 +63,9 @@ class FsLinux : public ArmISA::FsWorkload
* PC based event to skip the dprink() call and emulate its
* functionality
*/
Linux::DebugPrintk<SkipFunc> *debugPrintk = nullptr;
PCEvent *debugPrintk = nullptr;
DumpStats *dumpStats = nullptr;
PCEvent *dumpStats = nullptr;
public:
/** Boilerplate params code */
@@ -119,14 +119,14 @@ class FsLinux : public ArmISA::FsWorkload
* processor for the appropriate amount of time. This is not functionally
* required but does speed up simulation.
*/
Linux::SkipUDelay<SkipFunc> *skipUDelay = nullptr;
PCEvent *skipUDelay = nullptr;
/** Another PC based skip event for const_udelay(). Similar to the udelay
* skip, but this function precomputes the first multiply that is done
* in the generic case since the parameter is known at compile time.
* Thus we need to do some division to get back to us.
*/
Linux::SkipUDelay<SkipFunc> *skipConstUDelay = nullptr;
PCEvent *skipConstUDelay = nullptr;
};
class DumpStats : public PCEvent