Fix bug in DRAMSys Simulator

Because of the transition process to CMAKE the main simulator file was
adjusted for the paths of the simulation files.
This commit is contained in:
Matthias Jung
2020-02-26 18:08:15 +01:00
parent b39a9ef840
commit 3d0edbfc2c

View File

@@ -68,14 +68,14 @@ int sc_main(int argc, char **argv)
if (argc == 1) {
// Get path of resources:
resources = pathOfFile(argv[0])
+ string("/../../DRAMSys/library/resources/");
+ string("/../DRAMSys/library/resources/");
SimulationXML = resources + "simulations/ddr3-example.xml";
}
// Run with specific config but default resource folders:
else if (argc == 2) {
// Get path of resources:
resources = pathOfFile(argv[0])
+ string("/../../DRAMSys/library/resources/");
+ string("/../DRAMSys/library/resources/");
SimulationXML = argv[1];
}
// Run with spefific config and specific resource folder: