made traceplayer generic, so that different kind of traceplayers are supported
This commit is contained in:
@@ -11,9 +11,7 @@
|
||||
#include "../common/Utils.h"
|
||||
using namespace std;
|
||||
using namespace tinyxml2;
|
||||
using namespace simulation;
|
||||
|
||||
namespace simulation {
|
||||
|
||||
SimulationManager::SimulationManager(string resources) :
|
||||
silent(false), resources(resources)
|
||||
@@ -118,17 +116,17 @@ void SimulationManager::checkPaths()
|
||||
|
||||
void SimulationManager::runSimulation(string traceName, DramSetup dramSetup, vector<Device> traceSetup)
|
||||
{
|
||||
int pid = fork();
|
||||
int status = 0;
|
||||
if (pid == 0)
|
||||
{
|
||||
// int pid = fork();
|
||||
// int status = 0;
|
||||
// if (pid == 0)
|
||||
// {
|
||||
Simulation* simulation = new Simulation("sim", resources, traceName, dramSetup, traceSetup);
|
||||
simulation->start();
|
||||
delete simulation;
|
||||
_Exit(0);
|
||||
}
|
||||
// _Exit(0);
|
||||
//}
|
||||
|
||||
waitpid(pid, &status, 0);
|
||||
//waitpid(pid, &status, 0);
|
||||
}
|
||||
|
||||
void SimulationManager::startTraceAnalyzer()
|
||||
@@ -182,6 +180,3 @@ void SimulationBatch::print()
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
/* namespace simulation */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user