Actually use hits, misses and evictions in printSummary

This commit is contained in:
Adam Goldsmith 2016-04-27 22:26:04 -04:00
parent 92ae2a0a2b
commit 29e74799e3
1 changed files with 2 additions and 2 deletions

4
csim.c
View File

@ -53,7 +53,7 @@ uint8_t VERBOSE = 0; /**< If nonzero, mprintf will not print. Set in main() if -
int main(int argc, char* argv[])
{
int hits, misses, evictions;
int hits = 0, misses = 0, evictions = 0;
char buffer[20];
int set_index_bits = 0, block_bits = 0; // Not-useful input variables.
long set_indices = 0, num_lines = 0, block_size = 0; //Useful variables
@ -120,7 +120,7 @@ int main(int argc, char* argv[])
printf("%c %ld\n", op, address);
}
printSummary(0, 0, 0);
printSummary(hits, misses, evictions);
fclose(f);
free_cache(cache, set_index_bits);