Permalink
Browse files

Tiny changes

  • Loading branch information...
1 parent 7200b5a commit 78365184cbc5a23607723cb0aea8e227c4eaf11e @gsiddardha gsiddardha committed Sep 27, 2011
Showing with 5 additions and 5 deletions.
  1. +3 −3 Cache.h
  2. +2 −2 Set.cpp
View
@@ -45,7 +45,7 @@ class Cache {
int cache_size; // Size of cache in bytes
int block_size; // Size of block in bytes
int set_size; // Size of set in bytes
- int assoc; // Associativity
+ int assoc; // Associativity
int num_words; // Number of words per block
int num_sets; // Number of sets
@@ -59,9 +59,9 @@ class Cache {
int tag_mul; // Number to be bitwise-multiplied with location to get tag index
int word_mul; // Number to be bitwise-multiplied with location to get word index
- int tag_cap_mul; // Number to be bitwise-multiplied with location to get tag index
+ int tag_cap_mul;// Number to be bitwise-multiplied with location to get tag index
- int hits; // Number of hits
+ int hits; // Number of hits
int misses[4]; // Number of misses
};
View
@@ -2,9 +2,9 @@
#include "Set.h"
Set::Set(int assoc, int block_size) {
- this->assoc = assoc;
+ this->assoc = assoc;
this->block_size = block_size;
- this->_counter = 0;
+ this->_counter = 0;
// Initialising dirty and Blocks
this->dirty = new bool[assoc];

0 comments on commit 7836518

Please sign in to comment.