summaryrefslogtreecommitdiff
path: root/src/kern
diff options
context:
space:
mode:
authorBrandon Potter <brandon.potter@amd.com>2016-11-09 14:27:37 -0600
committerBrandon Potter <brandon.potter@amd.com>2016-11-09 14:27:37 -0600
commit7a8dda49a4ec33be17bbd101ebd68e02562b9c3d (patch)
tree98b3bb80b66ebe424af78671c604bf0483f3db2d /src/kern
parent63bb17e4bd1d37aa22a87a9614957ce1302f95a9 (diff)
downloadgem5-7a8dda49a4ec33be17bbd101ebd68e02562b9c3d.tar.xz
style: [patch 1/22] use /r/3648/ to reorganize includes
Diffstat (limited to 'src/kern')
-rw-r--r--src/kern/linux/linux.cc3
-rw-r--r--src/kern/linux/printk.cc3
-rw-r--r--src/kern/operatingsystem.cc3
-rw-r--r--src/kern/system_events.cc3
4 files changed, 8 insertions, 4 deletions
diff --git a/src/kern/linux/linux.cc b/src/kern/linux/linux.cc
index 8214aeb97..ef5b4417f 100644
--- a/src/kern/linux/linux.cc
+++ b/src/kern/linux/linux.cc
@@ -28,12 +28,13 @@
* Authors: Ali Saidi
*/
+#include "kern/linux/linux.hh"
+
#include <cstdio>
#include <string>
#include "cpu/thread_context.hh"
#include "debug/SyscallVerbose.hh"
-#include "kern/linux/linux.hh"
#include "sim/process.hh"
#include "sim/system.hh"
diff --git a/src/kern/linux/printk.cc b/src/kern/linux/printk.cc
index c2cf60964..adc2009df 100644
--- a/src/kern/linux/printk.cc
+++ b/src/kern/linux/printk.cc
@@ -29,13 +29,14 @@
* Ali Saidi
*/
+#include "kern/linux/printk.hh"
+
#include <sys/types.h>
#include <algorithm>
#include "base/trace.hh"
#include "cpu/thread_context.hh"
-#include "kern/linux/printk.hh"
#include "sim/arguments.hh"
using namespace std;
diff --git a/src/kern/operatingsystem.cc b/src/kern/operatingsystem.cc
index ce4092c4a..1ecc94c15 100644
--- a/src/kern/operatingsystem.cc
+++ b/src/kern/operatingsystem.cc
@@ -29,9 +29,10 @@
*/
-#include "base/misc.hh"
#include "kern/operatingsystem.hh"
+#include "base/misc.hh"
+
int
OperatingSystem::openSpecialFile(std::string path, LiveProcess *process,
ThreadContext *tc)
diff --git a/src/kern/system_events.cc b/src/kern/system_events.cc
index 3ee7a099a..7ac8b57da 100644
--- a/src/kern/system_events.cc
+++ b/src/kern/system_events.cc
@@ -29,13 +29,14 @@
* Nathan Binkert
*/
+#include "kern/system_events.hh"
+
#include "arch/isa_traits.hh"
#include "arch/utility.hh"
#include "base/trace.hh"
#include "config/the_isa.hh"
#include "cpu/thread_context.hh"
#include "debug/PCEvent.hh"
-#include "kern/system_events.hh"
using namespace TheISA;