From 7a8dda49a4ec33be17bbd101ebd68e02562b9c3d Mon Sep 17 00:00:00 2001 From: Brandon Potter Date: Wed, 9 Nov 2016 14:27:37 -0600 Subject: style: [patch 1/22] use /r/3648/ to reorganize includes --- src/cpu/kvm/base.cc | 5 ++--- src/cpu/kvm/perfevent.cc | 2 +- src/cpu/kvm/timer.cc | 8 +++++--- src/cpu/kvm/vm.cc | 5 +++-- src/cpu/kvm/x86_cpu.cc | 7 ++++--- 5 files changed, 15 insertions(+), 12 deletions(-) (limited to 'src/cpu/kvm') diff --git a/src/cpu/kvm/base.cc b/src/cpu/kvm/base.cc index ddf80dbaa..723feda44 100644 --- a/src/cpu/kvm/base.cc +++ b/src/cpu/kvm/base.cc @@ -37,6 +37,8 @@ * Authors: Andreas Sandberg */ +#include "cpu/kvm/base.hh" + #include #include #include @@ -48,7 +50,6 @@ #include "arch/mmapped_ipr.hh" #include "arch/utility.hh" -#include "cpu/kvm/base.hh" #include "debug/Checkpoint.hh" #include "debug/Drain.hh" #include "debug/Kvm.hh" @@ -58,8 +59,6 @@ #include "sim/process.hh" #include "sim/system.hh" -#include - /* Used by some KVM macros */ #define PAGE_SIZE pageSize diff --git a/src/cpu/kvm/perfevent.cc b/src/cpu/kvm/perfevent.cc index acc2af04b..5738b8eca 100644 --- a/src/cpu/kvm/perfevent.cc +++ b/src/cpu/kvm/perfevent.cc @@ -37,11 +37,11 @@ * Authors: Andreas Sandberg */ +#include #include #include #include #include -#include #include #include diff --git a/src/cpu/kvm/timer.cc b/src/cpu/kvm/timer.cc index cb48046f7..03b31bd3f 100644 --- a/src/cpu/kvm/timer.cc +++ b/src/cpu/kvm/timer.cc @@ -37,15 +37,17 @@ * Authors: Andreas Sandberg */ +#include "cpu/kvm/timer.hh" + +#include +#include + #include #include #include -#include -#include #include "base/misc.hh" #include "base/trace.hh" -#include "cpu/kvm/timer.hh" #include "debug/KvmTimer.hh" /* According to timer_create(2), the value SIGEV_THREAD_ID can be used diff --git a/src/cpu/kvm/vm.cc b/src/cpu/kvm/vm.cc index 39bce32f4..d3ab8c45a 100644 --- a/src/cpu/kvm/vm.cc +++ b/src/cpu/kvm/vm.cc @@ -38,17 +38,18 @@ * Authors: Andreas Sandberg */ +#include "cpu/kvm/vm.hh" + +#include #include #include #include #include -#include #include #include #include -#include "cpu/kvm/vm.hh" #include "debug/Kvm.hh" #include "params/KvmVM.hh" #include "sim/system.hh" diff --git a/src/cpu/kvm/x86_cpu.cc b/src/cpu/kvm/x86_cpu.cc index f8f66af2f..bdbdadf71 100644 --- a/src/cpu/kvm/x86_cpu.cc +++ b/src/cpu/kvm/x86_cpu.cc @@ -28,18 +28,19 @@ * Authors: Andreas Sandberg */ +#include "cpu/kvm/x86_cpu.hh" + #include #include #include #include -#include "arch/x86/regs/msr.hh" +#include "arch/registers.hh" #include "arch/x86/cpuid.hh" +#include "arch/x86/regs/msr.hh" #include "arch/x86/utility.hh" -#include "arch/registers.hh" #include "cpu/kvm/base.hh" -#include "cpu/kvm/x86_cpu.hh" #include "debug/Drain.hh" #include "debug/Kvm.hh" #include "debug/KvmContext.hh" -- cgit v1.2.3