diff options
author | Gabe Black <gabeblack@google.com> | 2019-04-27 19:51:20 -0700 |
---|---|---|
committer | Gabe Black <gabeblack@google.com> | 2019-04-30 03:49:40 +0000 |
commit | eea1fb6fc887e523f23cd3141869da59e7047c55 (patch) | |
tree | 4b82d9aa743f48c18e9373ffe19254e89012550a /src/sim/pseudo_inst.cc | |
parent | f9b72476fd948cde713f145834fba81574b0fde0 (diff) | |
download | gem5-eea1fb6fc887e523f23cd3141869da59e7047c55.tar.xz |
arch: cpu: Track kernel stats using the base ISA agnostic type.
Then cast to the ISA specific type when necessary. This removes
(mostly) an ISA specific aspect to some of the interfaces. The ISA
specific version of the kernel stats still needs to be constructed and
stored in a few places which means that kernel_stats.hh still needs to
be a switching arch header, for instance.
In the future, I'd like to make the kernel its own object like the
Process objects in SE mode, and then it would be able to instantiate
and maintain its own stats.
Change-Id: I8309d49019124f6bea1482aaea5b5b34e8c97433
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/18429
Tested-by: kokoro <noreply+kokoro@google.com>
Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com>
Maintainer: Andreas Sandberg <andreas.sandberg@arm.com>
Diffstat (limited to 'src/sim/pseudo_inst.cc')
-rw-r--r-- | src/sim/pseudo_inst.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sim/pseudo_inst.cc b/src/sim/pseudo_inst.cc index dc37a8c71..8ffb13e3b 100644 --- a/src/sim/pseudo_inst.cc +++ b/src/sim/pseudo_inst.cc @@ -53,7 +53,6 @@ #include <gem5/asm/generic/m5ops.h> -#include "arch/kernel_stats.hh" #include "arch/pseudo_inst.hh" #include "arch/utility.hh" #include "arch/vtophys.hh" @@ -68,6 +67,7 @@ #include "debug/Quiesce.hh" #include "debug/WorkItems.hh" #include "dev/net/dist_iface.hh" +#include "kern/kernel_stats.hh" #include "params/BaseCPU.hh" #include "sim/full_system.hh" #include "sim/initparam_keys.hh" |