From e0b065ff7c10dada97f562f13d7676253d48e793 Mon Sep 17 00:00:00 2001 From: Nathan Binkert Date: Mon, 20 Oct 2003 20:17:01 -0400 Subject: 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 --- cpu/simple_cpu/simple_cpu.cc | 59 +++++++++++++++++++------------------------- 1 file changed, 26 insertions(+), 33 deletions(-) (limited to 'cpu/simple_cpu') 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 +#include +#include #include #include #include #include #include -#include -#include -#include - -#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) -- cgit v1.2.3