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:
@@ -48,6 +48,9 @@ class FunctionalMemory;
|
||||
class PhysicalMemory;
|
||||
class Process;
|
||||
class System;
|
||||
namespace Kernel {
|
||||
class Statistics;
|
||||
};
|
||||
|
||||
class ExecContext
|
||||
{
|
||||
@@ -98,6 +101,8 @@ class ExecContext
|
||||
virtual AlphaITB *getITBPtr() = 0;
|
||||
|
||||
virtual AlphaDTB * getDTBPtr() = 0;
|
||||
|
||||
virtual Kernel::Statistics *getKernelStats() = 0;
|
||||
#else
|
||||
virtual Process *getProcessPtr() = 0;
|
||||
#endif
|
||||
@@ -243,6 +248,8 @@ class ProxyExecContext : public ExecContext
|
||||
AlphaITB *getITBPtr() { return actualXC->getITBPtr(); }
|
||||
|
||||
AlphaDTB *getDTBPtr() { return actualXC->getDTBPtr(); }
|
||||
|
||||
Kernel::Statistics *getKernelStats() { return actualXC->getKernelStats(); }
|
||||
#else
|
||||
Process *getProcessPtr() { return actualXC->getProcessPtr(); }
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user