This commit is contained in:
parent
93c948cb3a
commit
02d26b6c7a
|
|
@ -8,19 +8,19 @@ int main(int argc, char *argv[])
|
|||
{
|
||||
if (argc != 7)
|
||||
{
|
||||
throw "Para Err."
|
||||
throw "Para Err.";
|
||||
}
|
||||
|
||||
auto fileName = std::string(argv[6]);
|
||||
struct stat buffer;
|
||||
if (stat(("../traces/" + tf).c_str(), &buffer))
|
||||
if (stat(("../traces/" + argv[6]).c_str(), &buffer))
|
||||
{
|
||||
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;
|
||||
char op;
|
||||
unsigned addr;
|
||||
|
|
|
|||
|
|
@ -10,4 +10,10 @@
|
|||
#include <cstdint>
|
||||
#include <exception>
|
||||
#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