This commit is contained in:
parent
93c948cb3a
commit
02d26b6c7a
|
|
@ -8,19 +8,19 @@ int main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
if (argc != 7)
|
if (argc != 7)
|
||||||
{
|
{
|
||||||
throw "Para Err."
|
throw "Para Err.";
|
||||||
}
|
}
|
||||||
|
|
||||||
auto fileName = std::string(argv[6]);
|
auto fileName = std::string(argv[6]);
|
||||||
struct stat buffer;
|
struct stat buffer;
|
||||||
if (stat(("../traces/" + tf).c_str(), &buffer))
|
if (stat(("../traces/" + argv[6]).c_str(), &buffer))
|
||||||
{
|
{
|
||||||
throw "traces file Err.";
|
throw "traces file Err.";
|
||||||
}
|
}
|
||||||
|
|
||||||
auto cache = new Cache(char *argv[]);
|
auto cache = new Cache(argv[]);
|
||||||
|
|
||||||
ifstream trace("../traces/" + p.TraceFile());
|
ifstream trace("../traces/" + fileName);
|
||||||
string line;
|
string line;
|
||||||
char op;
|
char op;
|
||||||
unsigned addr;
|
unsigned addr;
|
||||||
|
|
|
||||||
|
|
@ -11,3 +11,9 @@
|
||||||
#include <exception>
|
#include <exception>
|
||||||
#include <fstream>
|
#include <fstream>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
#include <cstdlib>
|
||||||
|
#include <sstream>
|
||||||
|
#include <stdexcept>
|
||||||
|
#include <stdlib.h>
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <sys/stat.h>
|
||||||
Loading…
Reference in New Issue