Skip to content

Instantly share code, notes, and snippets.

@ArchdukeTim
Created November 30, 2017 20:22
Show Gist options
  • Save ArchdukeTim/cfac715b7222754c8790421e39b56787 to your computer and use it in GitHub Desktop.
Save ArchdukeTim/cfac715b7222754c8790421e39b56787 to your computer and use it in GitHub Desktop.
//The Structures for Lines, Sets and the cache itself///
struct Line {
int valid;
unsigned long tag;
int age;
};
struct Set {
struct Line* lines;
};
struct Cache {
struct Set* sets;
};
typedef struct Cache Cache;
typedef struct Set Set;
typedef struct Line Line;
Cache cache;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment