Gabe Black has uploaded this change for review. ( https://gem5-review.googlesource.com/c/public/gem5/+/42965 )

Change subject: cpu: Narrow the dependencies of the StaticInst class.
......................................................................

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
---
M src/cpu/static_inst.hh
1 file changed, 2 insertions(+), 3 deletions(-)



diff --git a/src/cpu/static_inst.hh b/src/cpu/static_inst.hh
index 41c3dcc..b6bd17b 100644
--- a/src/cpu/static_inst.hh
+++ b/src/cpu/static_inst.hh
@@ -43,19 +43,17 @@
 #define __CPU_STATIC_INST_HH__

 #include <bitset>
+#include <cstdint>
 #include <memory>
 #include <string>

-#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
 {

--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/42965
To unsubscribe, or for help writing mail filters, visit https://gem5-review.googlesource.com/settings

Gerrit-Project: public/gem5
Gerrit-Branch: develop
Gerrit-Change-Id: Ie2e1c01b77d1776b366d29982e481d62b6a2b8cf
Gerrit-Change-Number: 42965
Gerrit-PatchSet: 1
Gerrit-Owner: Gabe Black <[email protected]>
Gerrit-MessageType: newchange
_______________________________________________
gem5-dev mailing list -- [email protected]
To unsubscribe send an email to [email protected]
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s

Reply via email to