summaryrefslogtreecommitdiff
path: root/src/kern
diff options
context:
space:
mode:
authorBrandon Potter <brandon.potter@amd.com>2016-11-09 14:27:40 -0600
committerBrandon Potter <brandon.potter@amd.com>2016-11-09 14:27:40 -0600
commita928a438b8a005e5b6059bc5db0687bf64abcfa6 (patch)
tree4a69371c4f8efdfe784bce80a63e58f8ace665cc /src/kern
parent93d8e6b898a70a3f6dba9da385d5933683bf325f (diff)
downloadgem5-a928a438b8a005e5b6059bc5db0687bf64abcfa6.tar.xz
style: [patch 3/22] reduce include dependencies in some headers
Used cppclean to help identify useless includes and removed them. This involved erroneously included headers, but also cases where forward declarations could have been used rather than a full include.
Diffstat (limited to 'src/kern')
-rw-r--r--src/kern/linux/linux.cc1
-rw-r--r--src/kern/linux/linux.hh2
2 files changed, 1 insertions, 2 deletions
diff --git a/src/kern/linux/linux.cc b/src/kern/linux/linux.cc
index ef5b4417f..6618fdbd9 100644
--- a/src/kern/linux/linux.cc
+++ b/src/kern/linux/linux.cc
@@ -33,7 +33,6 @@
#include <cstdio>
#include <string>
-#include "cpu/thread_context.hh"
#include "debug/SyscallVerbose.hh"
#include "sim/process.hh"
#include "sim/system.hh"
diff --git a/src/kern/linux/linux.hh b/src/kern/linux/linux.hh
index 783341948..52a3bcd7b 100644
--- a/src/kern/linux/linux.hh
+++ b/src/kern/linux/linux.hh
@@ -36,9 +36,9 @@
#include <string>
#include "kern/operatingsystem.hh"
+#include "sim/process.hh"
class ThreadContext;
-class LiveProcess;
///
/// This class encapsulates the types, structures, constants,