Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

24 lines (19 sloc) 0.647 kb
/****************************************/
/* cache.h */
/****************************************/
#ifndef _cache
#define _cache
#include "globals.h"
#include "queue.h"
typedef struct line line ;
struct line{
int valid ;
int tag ;
} ;
extern void init_cache(line cache[], int numlines) ;
extern bool cache_full ( line cache[], int numlines ) ;
extern status get_tag_index ( unsigned int *p_tag, unsigned int *p_index , int address, int l, int numlines) ;
extern int find_expt( int num ) ;
extern status evict_cache( line cache[], queue *p_Q ) ;
extern bool cache_full ( line cache[], int numlines ) ;
#endif
Jump to Line
Something went wrong with that request. Please try again.