diff options
author | Nathan Binkert <binkertn@umich.edu> | 2003-10-20 20:17:01 -0400 |
---|---|---|
committer | Nathan Binkert <binkertn@umich.edu> | 2003-10-20 20:17:01 -0400 |
commit | e0b065ff7c10dada97f562f13d7676253d48e793 (patch) | |
tree | 12073294304144f42691b067f8c2b57ae85b927c /cpu | |
parent | 4963dbf9a95fda3f6ee0bc6b37bbe67396395b8c (diff) | |
download | gem5-e0b065ff7c10dada97f562f13d7676253d48e793.tar.xz |
Separate the stuff for SimObject from SimObject builder.
This makes testing a bit easier.
arch/alpha/alpha_memory.cc:
cpu/intr_control.cc:
cpu/memtest/memtest.cc:
cpu/simple_cpu/simple_cpu.cc:
dev/alpha_console.cc:
dev/console.cc:
dev/disk_image.cc:
dev/etherbus.cc:
dev/etherdump.cc:
dev/etherlink.cc:
dev/ethertap.cc:
dev/simple_disk.cc:
kern/tru64/tru64_system.cc:
sim/main.cc:
sim/prog.cc:
Need to include builder.hh
sort #includes
sim/sim_object.cc:
sim/sim_object.hh:
Separate the SimObjectBuilder stuff into its own file
--HG--
extra : convert_revision : e8395e0cc6ae1f180f9cd6f100795a1ac44aeed5
Diffstat (limited to 'cpu')
-rw-r--r-- | cpu/intr_control.cc | 1 | ||||
-rw-r--r-- | cpu/memtest/memtest.cc | 10 | ||||
-rw-r--r-- | cpu/simple_cpu/simple_cpu.cc | 59 |
3 files changed, 32 insertions, 38 deletions
diff --git a/cpu/intr_control.cc b/cpu/intr_control.cc index bce427eea..037b00ef4 100644 --- a/cpu/intr_control.cc +++ b/cpu/intr_control.cc @@ -31,6 +31,7 @@ #include "cpu/base_cpu.hh" #include "cpu/intr_control.hh" +#include "sim/builder.hh" #include "sim/sim_object.hh" using namespace std; diff --git a/cpu/memtest/memtest.cc b/cpu/memtest/memtest.cc index 6292911cd..e67a129d2 100644 --- a/cpu/memtest/memtest.cc +++ b/cpu/memtest/memtest.cc @@ -33,13 +33,13 @@ #include <iomanip> #include <vector> -#include "cpu/memtest/memtest.hh" #include "base/misc.hh" -#include "sim/sim_events.hh" -#include "mem/functional_mem/main_memory.hh" -#include "mem/cache/base_cache.hh" - #include "base/statistics.hh" +#include "cpu/memtest/memtest.hh" +#include "mem/cache/base_cache.hh" +#include "mem/functional_mem/main_memory.hh" +#include "sim/builder.hh" +#include "sim/sim_events.hh" #include "sim/sim_stats.hh" using namespace std; diff --git a/cpu/simple_cpu/simple_cpu.cc b/cpu/simple_cpu/simple_cpu.cc index 20790bfb6..3c9be172f 100644 --- a/cpu/simple_cpu/simple_cpu.cc +++ b/cpu/simple_cpu/simple_cpu.cc @@ -26,60 +26,53 @@ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +#include <cmath> +#include <cstdio> +#include <cstdlib> #include <iostream> #include <iomanip> #include <list> #include <sstream> #include <string> -#include <stdio.h> -#include <stdlib.h> -#include <math.h> - -#include "sim/host.hh" #include "base/cprintf.hh" +#include "base/inifile.hh" +#include "base/loader/symtab.hh" #include "base/misc.hh" -#include "cpu/full_cpu/smt.hh" - -#include "sim/annotation.hh" -#include "cpu/exec_context.hh" +#include "base/pollevent.hh" +#include "base/range.hh" +#include "base/trace.hh" #include "cpu/base_cpu.hh" -#include "sim/debug.hh" +#include "cpu/exec_context.hh" +#include "cpu/exetrace.hh" +#include "cpu/full_cpu/smt.hh" #include "cpu/simple_cpu/simple_cpu.hh" -#include "base/inifile.hh" -#include "mem/mem_interface.hh" -#include "mem/base_mem.hh" #include "cpu/static_inst.hh" +#include "mem/base_mem.hh" +#include "mem/mem_interface.hh" +#include "sim/annotation.hh" +#include "sim/builder.hh" +#include "sim/debug.hh" +#include "sim/host.hh" +#include "sim/sim_events.hh" +#include "sim/sim_object.hh" +#include "sim/sim_stats.hh" #ifdef FULL_SYSTEM +#include "base/remote_gdb.hh" +#include "dev/alpha_access.h" +#include "dev/pciareg.h" #include "mem/functional_mem/memory_control.hh" #include "mem/functional_mem/physical_memory.hh" -#include "targetarch/alpha_memory.hh" #include "sim/system.hh" +#include "targetarch/alpha_memory.hh" +#include "targetarch/vtophys.hh" #else // !FULL_SYSTEM +#include "eio/eio.hh" #include "mem/functional_mem/functional_memory.hh" #include "sim/prog.hh" -#include "eio/eio.hh" #endif // FULL_SYSTEM -#include "cpu/exetrace.hh" -#include "base/trace.hh" -#include "sim/sim_events.hh" -#include "base/pollevent.hh" -#include "sim/sim_object.hh" -#include "sim/sim_stats.hh" - -#include "base/range.hh" -#include "base/loader/symtab.hh" - -#ifdef FULL_SYSTEM -#include "targetarch/vtophys.hh" -#include "dev/pciareg.h" -#include "base/remote_gdb.hh" -#include "dev/alpha_access.h" -#endif - - using namespace std; SimpleCPU::CacheCompletionEvent::CacheCompletionEvent(SimpleCPU *_cpu) |