From 8548d6ede54c5da4a5853fce6665d5229ab1d7f8 Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Thu, 28 Apr 2016 01:42:24 -0400 Subject: [PATCH] Move print_cache into main loop --- csim.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/csim.c b/csim.c index 8823c95..64c2e75 100644 --- a/csim.c +++ b/csim.c @@ -106,8 +106,6 @@ int main(int argc, char* argv[]) linked_line** cache = make_cache(set_indices, num_lines); - print_cache(cache, set_indices); - /* FILE READING */ FILE* f = fopen(filename, "r"); if(!f) @@ -129,6 +127,8 @@ int main(int argc, char* argv[]) return -1; } printf("%c %ld\n", op, address); + + print_cache(cache, set_indices); } printSummary(score.hits, score.misses, score.evictions);