ext: eliminate warnings in SST connector
authorCurtis Dunham <Curtis.Dunham@arm.com>
Fri, 2 Sep 2016 13:58:15 +0000 (14:58 +0100)
committerCurtis Dunham <Curtis.Dunham@arm.com>
Fri, 2 Sep 2016 13:58:15 +0000 (14:58 +0100)
Now compiles completely clean.

ext/sst/ExtMaster.cc
ext/sst/ExtMaster.hh
ext/sst/ExtSlave.cc
ext/sst/ExtSlave.hh
ext/sst/gem5.cc
ext/sst/gem5.hh
ext/sst/libgem5.cc
ext/sst/tests/test6_arm_4c.py

index e85c3d99db6f839f690176ed64a713d8bdaab2ca..24682485fa91cab7d69ffd86d7e2d81e1770f8b7 100644 (file)
 #undef fatal
 #endif
 
-#include <core/sst_config.h>
-
 #include <mem/packet.hh>
 
-#include <sst/core/component.h>
-#include <sst/core/params.h>
-#include <sst/core/link.h>
-#include <sst/elements/memHierarchy/memNIC.h>
+#include <elements/memHierarchy/memNIC.h>
 
 using namespace SST;
 using namespace SST::gem5;
index 4a98bddf90e69385a9393223007bcf118241e669..04e98e55f095585646310f77468c2056eaf56330 100644 (file)
@@ -48,8 +48,8 @@
 #include <list>
 #include <set>
 
-#include <sst/core/component.h>
-#include <sst/elements/memHierarchy/memEvent.h>
+#include <core/component.h>
+#include <elements/memHierarchy/memEvent.h>
 
 #include <sim/sim_object.hh>
 #include <mem/packet.hh>
index 9f29dad8bf3cee0da484e2fa938f420b21f9620c..6251ba8d915882283d4198bfd0005cbaf1d145a8 100644 (file)
 
 #include "gem5.hh"
 
-#include <core/sst_config.h>
-
-#include <sst/core/params.h>
-#include <sst/core/output.h>
-#include <sst/core/link.h>
-
 #ifdef fatal  // gem5 sets this
 #undef fatal
 #endif
index 049caa95de8fa677a884a436e1e378c76a9500d3..cef7c1e9981ad893e28bf8c19298751767075a84 100644 (file)
@@ -45,9 +45,7 @@
 #ifndef EXT_SST_EXTSLAVE_HH
 #define EXT_SST_EXTSLAVE_HH
 
-#include <sst/core/component.h>
-#include <sst/core/output.h>
-#include <sst/core/interfaces/simpleMem.h>
+#include <core/interfaces/simpleMem.h>
 
 #include <sim/sim_object.hh>
 #include <mem/packet.hh>
index 3e66a6eceb683e227052d7d734f2e9e2bbf5c308..7749d37d6cb2da8392843fd0abdff85af57e4349 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (c) 2015 ARM Limited
+// Copyright (c) 2015-2016 ARM Limited
 // All rights reserved.
 // 
 // The license below extends only to copyright in the software and shall
@@ -65,9 +65,7 @@
 #endif
 
 // More SST Headers
-#include <sst/core/params.h>
-#include <sst/core/link.h>
-#include <sst/core/timeConverter.h>
+#include <core/timeConverter.h>
 
 using namespace SST;
 using namespace SST::gem5;
@@ -76,11 +74,11 @@ gem5Component::gem5Component(ComponentId_t id, Params &params) :
     SST::Component(id)
 {
     dbg.init("@t:gem5:@p():@l " + getName() + ": ", 0, 0,
-            (Output::output_location_t)params.find_integer("comp_debug", 0));
+            (Output::output_location_t)params.find<int>("comp_debug", 0));
     info.init("gem5:" + getName() + ": ", 0, 0, Output::STDOUT);
 
     TimeConverter *clock = registerClock(
-            params.find_string("frequency", "1GHz"),
+            params.find<std::string>("frequency", "1GHz"),
             new Clock::Handler<gem5Component>(this, &gem5Component::clockTick));
 
     // This sets how many gem5 cycles we'll need to simulate per clock tick
@@ -89,7 +87,7 @@ gem5Component::gem5Component(ComponentId_t id, Params &params) :
     // Disable gem5's inform() messages.
     want_info = false;
 
-    std::string cmd = params.find_string("cmd", "");
+    std::string cmd = params.find<std::string>("cmd", "");
     if (cmd.empty()) {
         dbg.fatal(CALL_INFO, -1, "Component %s must have a 'cmd' parameter.\n",
                getName().c_str());
@@ -106,7 +104,7 @@ gem5Component::gem5Component(ComponentId_t id, Params &params) :
     }
 
     std::vector<char*> flags;
-    std::string gem5DbgFlags = params.find_string("gem5DebugFlags", "");
+    std::string gem5DbgFlags = params.find<std::string>("gem5DebugFlags", "");
     splitCommandArgs(gem5DbgFlags, flags);
     for (auto flag : flags) {
         dbg.output(CALL_INFO, "  Setting Debug Flag [%s]\n", flag);
@@ -162,7 +160,7 @@ gem5Component::finish(void)
     for (auto m : masters) {
         m->finish();
     }
-    info.output("Complete. Clocks Processed: %"PRIu64"\n", clocks_processed);
+    info.output("Complete. Clocks Processed: %" PRIu64"\n", clocks_processed);
 }
 
 bool
index f6c487a8408edd5f1fae7b038b54ce6a69208ae2..0f1bed88ded42c2dc3dc059cbe739b330158d509 100644 (file)
@@ -48,8 +48,8 @@
 #include <string>
 #include <vector>
 
-#include <sst/core/component.h>
-#include <sst/core/output.h>
+#include <core/sst_config.h>
+#include <core/component.h>
 
 #include <sim/simulate.hh>
 
index a840789e53ee254947b36cd59281d7599d723d56..93fa05b32a82a1553c9878a6f2c79a152b20bdf8 100644 (file)
@@ -44,9 +44,6 @@
 
 #include <core/sst_config.h>
 
-#include <sst/core/element.h>
-#include <sst/core/component.h>
-
 #include "gem5.hh"
 
 static
index 0974829db31489a898c00bc2da0410076bf3c12b..642760627ed02f60d26dbe7b53be4664163da533 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (c)2015 ARM Limited
+# Copyright (c) 2015-2016 ARM Limited
 # All rights reserved.
 #
 # The license below extends only to copyright in the software and shall