From 10b0aceeff7bd1c72342aa339536af92fc2d2833 Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Mon, 15 Mar 2021 01:31:26 -0700 Subject: [PATCH] cpu: Narrow the dependencies of the StaticInst class. Include only the minimal number of headers to make StaticInst subclasses easier to test with unit tests. Change-Id: Ie2e1c01b77d1776b366d29982e481d62b6a2b8cf Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/42965 Maintainer: Gabe Black Tested-by: kokoro Reviewed-by: Daniel Carvalho --- src/cpu/static_inst.hh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/cpu/static_inst.hh b/src/cpu/static_inst.hh index ed45b58e8f..ebc5529f36 100644 --- a/src/cpu/static_inst.hh +++ b/src/cpu/static_inst.hh @@ -43,19 +43,17 @@ #define __CPU_STATIC_INST_HH__ #include +#include #include #include -#include "arch/registers.hh" #include "arch/types.hh" #include "base/logging.hh" #include "base/refcnt.hh" -#include "base/types.hh" #include "config/the_isa.hh" #include "cpu/op_class.hh" #include "cpu/reg_class.hh" #include "cpu/static_inst_fwd.hh" -#include "cpu/thread_context.hh" #include "enums/StaticInstFlags.hh" #include "sim/byteswap.hh" @@ -63,6 +61,7 @@ class Packet; class ExecContext; +class ThreadContext; namespace Loader {