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:
@@ -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.
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user