alpha: Move system virtProxy to Alpha only
authorAndreas Hansson <andreas.hansson@arm.com>
Wed, 4 Sep 2013 17:22:55 +0000 (13:22 -0400)
committerAndreas Hansson <andreas.hansson@arm.com>
Wed, 4 Sep 2013 17:22:55 +0000 (13:22 -0400)
This patch moves the system virtual port proxy to the Alpha system
only to make the resurrection of the NOISA slightly less
painful. Alpha is the only ISA that is actually using it.

src/arch/alpha/system.cc
src/arch/alpha/system.hh
src/sim/system.cc
src/sim/system.hh

index f8e65015a71aa728e413bca572a98d8445b09478..3ebc02b64b333e6046f76946a76407761e423af1 100644 (file)
@@ -45,7 +45,7 @@
 using namespace AlphaISA;
 
 AlphaSystem::AlphaSystem(Params *p)
-    : System(p), intrFreq(0)
+    : System(p), intrFreq(0), virtProxy(getSystemPort(), p->cache_line_size)
 {
     consoleSymtab = new SymbolTable;
     palSymtab = new SymbolTable;
index bbf281c39eb4285d12f299180cbb584f4ad2ba16..11a5e90a4c57450d19ef772ae507079a2fbc6bc4 100644 (file)
@@ -38,6 +38,7 @@
 #include "base/loader/symtab.hh"
 #include "cpu/pc_event.hh"
 #include "kern/system_events.hh"
+#include "mem/fs_translating_port_proxy.hh"
 #include "params/AlphaSystem.hh"
 #include "sim/sim_object.hh"
 #include "sim/system.hh"
@@ -91,6 +92,11 @@ class AlphaSystem : public System
   protected:
     Tick intrFreq;
 
+    /**
+     * Proxy used to copy arguments directly into kernel memory.
+     */
+    FSTranslatingPortProxy virtProxy;
+
     const Params *params() const { return (const Params *)_params; }
 
 
index f9799d26f9fffebb08f617234e285f4ff65b2b61..24f9dfbada59ccf773a566715f1bd5799f18ea89 100644 (file)
@@ -79,7 +79,6 @@ System::System(Params *p)
       pagePtr(0),
       init_param(p->init_param),
       physProxy(_systemPort, p->cache_line_size),
-      virtProxy(_systemPort, p->cache_line_size),
       loadAddrMask(p->load_addr_mask),
       nextPID(0),
       physmem(name() + ".physmem", p->memories),
index 6e44d0ab554e4337caa59c7a39e8de35434102cc..5058e7b26fbe991f575f1575f8a9276dab90f3af 100644 (file)
@@ -57,9 +57,9 @@
 #include "cpu/pc_event.hh"
 #include "enums/MemoryMode.hh"
 #include "kern/system_events.hh"
-#include "mem/fs_translating_port_proxy.hh"
 #include "mem/mem_object.hh"
 #include "mem/port.hh"
+#include "mem/port_proxy.hh"
 #include "mem/physical.hh"
 #include "params/System.hh"
 
@@ -211,7 +211,6 @@ class System : public MemObject
     /** Port to physical memory used for writing object files into ram at
      * boot.*/
     PortProxy physProxy;
-    FSTranslatingPortProxy virtProxy;
 
     /** kernel symbol table */
     SymbolTable *kernelSymtab;