Move kernel stats out of CPU and into XC.
arch/alpha/ev5.cc:
Move kernel stats out of CPU and into XC. Also be sure to check if the kernel stats exist prior to using them.
--HG--
extra : convert_revision : 565cd7026410fd7d8586f953d9b328c2e67a9473
This commit is contained in:
@@ -53,6 +53,10 @@ class FunctionProfile;
|
||||
class ProfileNode;
|
||||
class MemoryController;
|
||||
|
||||
namespace Kernel {
|
||||
class Statistics;
|
||||
};
|
||||
|
||||
#else // !FULL_SYSTEM
|
||||
|
||||
#include "sim/process.hh"
|
||||
@@ -147,6 +151,9 @@ class CPUExecContext
|
||||
|
||||
void profileSample();
|
||||
|
||||
Kernel::Statistics *getKernelStats() { return kernelStats; }
|
||||
|
||||
Kernel::Statistics *kernelStats;
|
||||
#else
|
||||
Process *process;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user