From 0ea794bcf453093f83c21a56333d78ba1b8dae33 Mon Sep 17 00:00:00 2001 From: Ali Saidi Date: Mon, 8 Nov 2010 13:58:22 -0600 Subject: sim: Use forward declarations for ports. Virtual ports need TLB data which means anything touching a file in the arch directory rebuilds any file that includes system.hh which in everything. --- src/sim/system.hh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/sim/system.hh') diff --git a/src/sim/system.hh b/src/sim/system.hh index cc92bba09..11a4b007a 100644 --- a/src/sim/system.hh +++ b/src/sim/system.hh @@ -48,7 +48,6 @@ #if FULL_SYSTEM #include "kern/system_events.hh" -#include "mem/vport.hh" #endif class BaseCPU; @@ -58,6 +57,8 @@ class PhysicalMemory; #if FULL_SYSTEM class Platform; +class FunctionalPort; +class VirtualPort; #endif class GDBListener; class BaseRemoteGDB; @@ -108,8 +109,8 @@ class System : public SimObject /** Port to physical memory used for writing object files into ram at * boot.*/ - FunctionalPort functionalPort; - VirtualPort virtPort; + FunctionalPort *functionalPort; + VirtualPort *virtPort; /** kernel symbol table */ SymbolTable *kernelSymtab; -- cgit v1.2.3