Created
November 30, 2017 20:22
-
-
Save ArchdukeTim/cfac715b7222754c8790421e39b56787 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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