diff options
author | Ali Saidi <Ali.Saidi@ARM.com> | 2012-03-09 09:59:26 -0500 |
---|---|---|
committer | Ali Saidi <Ali.Saidi@ARM.com> | 2012-03-09 09:59:26 -0500 |
commit | 3ce2d0fad04201b168dd9847a5120c80408f6498 (patch) | |
tree | 76c86f659e55295c3b9d85b3d424bf8fa3b35765 /src/arch/alpha/linux/system.hh | |
parent | ec1ef24895de75e8408398492ee8190866650bb5 (diff) | |
download | gem5-3ce2d0fad04201b168dd9847a5120c80408f6498.tar.xz |
System: Move code in initState() back into constructor whenever possible.
The change to port proxies recently moved code out of the constructor into
initState(). This is needed for code that loads data into memory, however
for code that setups symbol tables, kernel based events, etc this is the wrong
thing to do as that code is only called when a checkpoint isn't being restored
from.
Diffstat (limited to 'src/arch/alpha/linux/system.hh')
-rw-r--r-- | src/arch/alpha/linux/system.hh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/arch/alpha/linux/system.hh b/src/arch/alpha/linux/system.hh index 5436a27b2..345c17bb7 100644 --- a/src/arch/alpha/linux/system.hh +++ b/src/arch/alpha/linux/system.hh @@ -123,6 +123,12 @@ class LinuxAlphaSystem : public AlphaSystem /** Grab the PCBB of the idle process when it starts */ IdleStartEvent *idleStartEvent; + protected: + /** Setup all the function events. Must be done after init() for Alpha since + * fixFuncEvent() requires a function port + */ + virtual void setupFuncEvents(); + public: typedef LinuxAlphaSystemParams Params; LinuxAlphaSystem(Params *p); |